Lines Matching full:definition
164 """Split into struct definition + typedef in-place"""
823 u.warn("definition of %s %s not found in file", i.type, i.name)
832 # symbol defined. check if all users are after its definition:
834 definition = ul.definitions[0]
835 DBG("handling repositioning of %r", definition)
837 if earliest.start() > definition.start():
838 DBG("%r is OK", definition)
841 DBG("%r needs to be moved", definition)
842 if isinstance(definition, SimpleTypedefMatch) \
843 or isinstance(definition, ConstantDefine):
845 yield definition.make_removal_patch()
846 yield earliest.prepend(definition.group(0))
847 elif isinstance(definition, FullStructTypedefMatch) \
848 and definition.group('structname'):
851 yield from definition.move_typedef(earliest.start())
853 … definition.warn("definition of %s %s needs to be moved earlier in the file", i.type, i.name)
854 earliest.warn("definition of %s %s is used here", i.type, i.name)