Lines Matching +full:check +full:- +full:patch

7 # the COPYING file in the top-level directory.
35 def provided_identifiers(self) -> Iterable[RequiredIdentifier]:
60 def merge(self, other: 'TypeIdentifiers') -> Optional['TypeIdentifiers']:
61 """Check if identifiers match, return new identifier with complete list"""
66 def __str__(self) -> str:
71 def check_consistency(self) -> List[str]:
72 """Check if identifiers are consistent with each other,
98 def provided_identifiers(self) -> Iterable[RequiredIdentifier]:
118 # - lines starting with space or tab
119 # - empty lines
120 # - preprocessor directives
121 # - comments
137 def make_structname(self) -> str:
144 def strip_typedef(self) -> Patch:
145 """generate patch that will strip typedef from the struct declaration
153 def make_simple_typedef(self) -> str:
158 def move_typedef(self, position) -> Iterator[Patch]:
161 yield Patch(position, position, self.make_simple_typedef())
163 def split_typedef(self) -> Iterator[Patch]:
164 """Split into struct definition + typedef in-place"""
170 def gen_patches(self) -> Iterator[Patch]:
176 def gen_patches(self) -> Iterable[Patch]:
182 # patch only if handling the first typedef
196 def gen_patches(self) -> Iterable[Patch]:
206 def gen_patches(self) -> Iterator[Patch]:
214 def typedefs(file: FileInfo) -> Iterable[TypedefMatch]:
219 def find_typedef(f: FileInfo, name: Optional[str]) -> Optional[TypedefMatch]:
250 def checker(self) -> CheckerMacroName:
255 def typedefname(self) -> Optional[str]:
258 def find_typedef(self) -> Optional[TypedefMatch]:
261 def sanity_check(self) -> None:
264 self.warn("type check macro not parsed completely: %s", self.name)
270 def find_matching_macros(self) -> List['TypeCheckMacro']:
271 """Find other check macros that generate the same macro names
283 def merge_ids(self, matches: List['TypeCheckMacro']) -> Optional[TypeIdentifiers]:
300 def required_identifiers(self) -> Iterable[RequiredIdentifier]:
311 def type_identifiers(self) -> Optional[TypeIdentifiers]:
324 # - we need to remove the suffix from the macro name
325 # - depending on the macro type, we know the class type name, or
335 uppercase = self.name[:-len(expected_suffix)]
339 def gen_patches(self) -> Iterable[Patch]:
361 DBG("skipping %s (will patch when handling %s)", self.name, matches[0].name)
367 DBG("type identifier mismatch, won't patch %s", self.name)
449 def required_identifiers(self) -> Iterable[RequiredIdentifier]:
454 def gen_patches(self) -> Iterable[Patch]:
470 def instancetype(self) -> Optional[str]:
474 def classtype(self) -> Optional[str]:
478 def typename(self) -> Optional[str]:
484 def typename(self) -> str:
488 def uppercase(self) -> str:
503 def required_identifiers(self) -> Iterable[RequiredIdentifier]:
516 def required_identifiers(self) -> Iterable[RequiredIdentifier]:
528 def required_identifiers(self) -> Iterable[RequiredIdentifier]:
539 def required_identifiers(self) -> Iterable[RequiredIdentifier]:
553 def required_identifiers(self) -> Iterable[RequiredIdentifier]:
568 def required_identifiers(self) -> Iterable[RequiredIdentifier]:
577 def gen_patches(self) -> Iterable[Patch]:
605 def find_conflicts(self, uppercase: str, checkers: List[TypeDeclaration]) -> bool:
637 fields: Dict[str, Optional[str]]) -> Iterable[Patch]:
647 fields: Dict[str, Optional[str]]) -> Iterable[Patch]:
675 fields: Dict[str, Optional[str]]) -> Iterable[Patch]:
740 def classtype(self) -> Optional[str]:
745 def find_typename_uppercase(files: FileList, typename: str) -> Optional[str]:
754 def find_type_checkers(files:FileList, name:str, group:str='uppercase') -> Iterable[TypeCheckerDecl…
763 def provided_identifiers(self) -> Iterable[RequiredIdentifier]:
782 - Move typedefs and defines when necessary
783 - Add missing #include lines when necessary
787 def gen_patches(self) -> Iterator[Patch]:
832 # symbol defined. check if all users are after its definition:
860 def gen_patches(self) -> Iterable[Patch]: