Lines Matching full:declaration
232 DECLARATION = 2 # We have seen a declaration which might not be done
243 "DECLARATION",
554 # of the declaration.
578 # declaration, we want to not be fooled by any white space inside
593 # type declaration.
683 struct_members = KernRe(r'(struct|union)' # 0: declaration type
686 r'([^\{\}]*)' # 3: Contents of declaration
688 r'([^\{\};]*)(;)') # 5: Remaining stuff after declaration
748 # At the end of the s_id loop, replace the original declaration with
760 # Format the struct declaration into a standard form for inclusion in the
763 def format_struct_decl(self, declaration):
767 declaration = KernRe(r'([\{;])').sub(r'\1\n', declaration)
768 declaration = KernRe(r'\}\s+;').sub('};', declaration)
773 while r.search(declaration):
774 declaration = r.sub(r'\1,\n\2', declaration)
779 def_args = declaration.split('\n')
781 declaration = ""
788 declaration += "\t" * level
789 declaration += "\t" + clause + "\n"
792 return declaration
800 # Do the basic parse to get the pieces of the declaration.
824 declaration = members
834 definition=self.format_struct_decl(declaration),
911 Stores a data declaration inside self.entries array.
922 self.emit_message(ln, f'Unknown declaration type: {self.entry.decl_type}')
1141 # Otherwise we're looking for a normal kerneldoc declaration line.
1146 # Test for data declaration
1179 self.state = state.DECLARATION
1259 STATE_DECLARATION: We've seen the beginning of a declaration
1269 # A blank line means that we have moved out of the declaration
1276 # Otherwise we have more of the declaration section to soak up.
1481 # Handle special declaration syntaxes
1505 # To distinguish preprocessor directive from regular declaration later.
1509 # Split the declaration on any of { } or ;, and accumulate pieces
1529 # We hit the end of the line while still in the declaration; put
1589 state.DECLARATION: process_decl,