Lines Matching full:declaration

235     DECLARATION   = 2        # We have seen a declaration which might not be done  variable in state
246 "DECLARATION",
575 # of the declaration.
599 # declaration, we want to not be fooled by any white space inside
614 # type declaration.
704 struct_members = KernRe(r'(struct|union)' # 0: declaration type
707 r'([^\{\}]*)' # 3: Contents of declaration
709 r'([^\{\};]*)(;)') # 5: Remaining stuff after declaration
769 # At the end of the s_id loop, replace the original declaration with
781 # Format the struct declaration into a standard form for inclusion in the
784 def format_struct_decl(self, declaration): argument
788 declaration = KernRe(r'([\{;])').sub(r'\1\n', declaration)
789 declaration = KernRe(r'\}\s+;').sub('};', declaration)
794 while r.search(declaration):
795 declaration = r.sub(r'\1,\n\2', declaration)
800 def_args = declaration.split('\n')
802 declaration = ""
809 declaration += "\t" * level
810 declaration += "\t" + clause + "\n"
813 return declaration
821 # Do the basic parse to get the pieces of the declaration.
845 declaration = members
855 definition=self.format_struct_decl(declaration),
932 Stores a data declaration inside self.entries array.
943 self.emit_message(ln, f'Unknown declaration type: {self.entry.decl_type}')
1162 # Otherwise we're looking for a normal kerneldoc declaration line.
1167 # Test for data declaration
1200 self.state = state.DECLARATION
1280 STATE_DECLARATION: We've seen the beginning of a declaration
1290 # A blank line means that we have moved out of the declaration
1297 # Otherwise we have more of the declaration section to soak up.
1502 # Handle special declaration syntaxes
1526 # To distinguish preprocessor directive from regular declaration later.
1530 # Split the declaration on any of { } or ;, and accumulate pieces
1550 # We hit the end of the line while still in the declaration; put
1610 state.DECLARATION: process_decl,