| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/performance/ |
| H A D | InefficientVectorOperationCheck.h | 37 void addMatcher(const ast_matchers::DeclarationMatcher &TargetRecordDecl, 39 const ast_matchers::DeclarationMatcher &AppendMethodDecl,
|
| H A D | InefficientVectorOperationCheck.cpp | 92 const DeclarationMatcher &TargetRecordDecl, StringRef VarDeclName, in addMatcher() 93 StringRef VarDeclStmtName, const DeclarationMatcher &AppendMethodDecl, in addMatcher()
|
| /llvm-project-15.0.7/clang/unittests/ASTMatchers/ |
| H A D | ASTMatchersNarrowingTest.cpp | 199 DeclarationMatcher YHasClassX = in TEST_P() 211 DeclarationMatcher Recursive = in TEST_P() 292 DeclarationMatcher NotClassX = in TEST_P() 308 DeclarationMatcher NamedNotRecord = in TEST_P() 334 DeclarationMatcher ZDescendantClassX = in TEST_P() 388 DeclarationMatcher CannotMemoize = in TEST_P() 444 DeclarationMatcher XOrYOrZOrU = in TEST_P() 926 DeclarationMatcher IsZDerivedFromX = in TEST_P() 952 DeclarationMatcher ZIsDerivedFromX = in TEST_P() 1337 DeclarationMatcher( in TEST_P() [all …]
|
| H A D | ASTMatchersInternalTest.cpp | 26 DeclarationMatcher HasEmptyName = recordDecl(hasName("")); in TEST() 33 DeclarationMatcher HasEmptyName = recordDecl(matchesName("")); in TEST() 161 DeclarationMatcher HasClassB = just(has(recordDecl(hasName("B")).bind("b"))); in TEST() 182 DeclarationMatcher HasClassB = in TEST()
|
| H A D | ASTMatchersNodeTest.cpp | 32 DeclarationMatcher NamedX = namedDecl(hasName("X")); in TEST_P() 45 DeclarationMatcher NamedX = namedDecl(hasName("X")); in TEST_P() 52 DeclarationMatcher NamedX = namedDecl(matchesName("::X")); in TEST_P() 60 DeclarationMatcher StartsWithNo = namedDecl(matchesName("::no")); in TEST_P() 63 DeclarationMatcher Abc = namedDecl(matchesName("a.*b.*c")); in TEST_P() 78 DeclarationMatcher NamedX = namedDecl(matchesName("::X")); in TEST_P() 83 DeclarationMatcher StartsWithNo = namedDecl(matchesName("::no")); in TEST_P() 92 DeclarationMatcher StartsWithKIgnoreCase = in TEST_P() 142 DeclarationMatcher ClassX = classTemplateDecl(hasName("X")); in TEST_P() 151 DeclarationMatcher ClassX = classTemplateDecl(hasName("X")); in TEST_P() [all …]
|
| H A D | ASTMatchersTraversalTest.cpp | 23 TEST(DeclarationMatcher, hasMethod) { in TEST() argument 30 TEST(DeclarationMatcher, ClassDerivedFromDependentTemplateSpecialization) { in TEST() argument 40 TEST(DeclarationMatcher, hasDeclContext) { in TEST() argument 328 DeclarationMatcher ClassHasBaseClassX = in TEST() 335 DeclarationMatcher ClassX = recordDecl(hasName("X")); in TEST() 344 DeclarationMatcher ClassX = recordDecl(hasName("X")); in TEST() 352 DeclarationMatcher ClassX = recordDecl(hasName("X")); in TEST() 354 DeclarationMatcher ClassHasBaseClassX = in TEST() 842 DeclarationMatcher IntParam = parmVarDecl(hasType(isInteger())).bind("param"); in TEST() 4690 DeclarationMatcher MatchesInit = varDecl(hasInitializer(anything())); in TEST() [all …]
|
| /llvm-project-15.0.7/clang/unittests/AST/ |
| H A D | DeclPrinterTest.cpp | 48 const DeclarationMatcher &NodeMatch, in PrintedDeclMatches() 69 PrintedDeclCXX98Matches(StringRef Code, const DeclarationMatcher &NodeMatch, in PrintedDeclCXX98Matches() 91 const DeclarationMatcher &NodeMatch, in PrintedDeclCXX11Matches() 103 const DeclarationMatcher &NodeMatch, in PrintedDeclCXX11nonMSCMatches() 114 PrintedDeclCXX17Matches(StringRef Code, const DeclarationMatcher &NodeMatch, in PrintedDeclCXX17Matches() 123 PrintedDeclC11Matches(StringRef Code, const DeclarationMatcher &NodeMatch, in PrintedDeclC11Matches() 132 PrintedDeclObjCMatches(StringRef Code, const DeclarationMatcher &NodeMatch, in PrintedDeclObjCMatches()
|
| H A D | NamedDeclPrinterTest.cpp | 67 const DeclarationMatcher &NodeMatch, StringRef ExpectedPrinted, in PrintedDeclMatches() 80 const DeclarationMatcher &NodeMatch, in PrintedNamedDeclMatches()
|
| H A D | TypePrinterTest.cpp | 38 const DeclarationMatcher &NodeMatch, in PrintedTypeMatches()
|
| H A D | StmtPrinterTest.cpp | 36 DeclarationMatcher FunctionBodyMatcher(StringRef ContainingFunction) { in FunctionBodyMatcher()
|
| H A D | ASTImporterFixtures.h | 329 DeclarationMatcher ImportPredicate) in ImportAction()
|
| /llvm-project-15.0.7/clang/lib/StaticAnalyzer/Checkers/ |
| H A D | RunLoopAutoreleaseLeakChecker.cpp | 166 DeclarationMatcher GroupM = decl(hasDescendant(RunLoopInAutorelease)); in checkTempObjectsInSamePool() 182 DeclarationMatcher GroupM = functionDecl( in checkTempObjectsInNoPool()
|
| H A D | OSObjectCStyleCast.cpp | 76 static decltype(auto) hasTypePointingTo(DeclarationMatcher DeclM) { in hasTypePointingTo()
|
| /llvm-project-15.0.7/clang/include/clang/Analysis/FlowSensitive/Models/ |
| H A D | UncheckedOptionalAccessModel.h | 51 static ast_matchers::DeclarationMatcher optionalClassDecl();
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/bugprone/ |
| H A D | UnhandledSelfAssignmentCheck.cpp | 74 DeclarationMatcher AdditionalMatcher = cxxMethodDecl(); in registerMatchers()
|
| H A D | ForwardingReferenceOverloadCheck.cpp | 71 DeclarationMatcher FindOverload = in registerMatchers()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/utils/ |
| H A D | NamespaceAliaser.cpp | 58 DeclarationMatcher ConflictMatcher = namedDecl(hasName(Abbreviation)); in createAlias()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/modernize/ |
| H A D | LoopConvertCheck.cpp | 76 static const DeclarationMatcher initToZeroMatcher() { in initToZeroMatcher() 157 DeclarationMatcher InitDeclMatcher = in makeIteratorLoopMatcher() 164 DeclarationMatcher EndDeclMatcher = in makeIteratorLoopMatcher() 278 DeclarationMatcher EndDeclMatcher = in makePseudoArrayLoopMatcher()
|
| H A D | UseAutoCheck.cpp | 168 DeclarationMatcher standardIterator() { in standardIterator()
|
| /llvm-project-15.0.7/clang/lib/ASTMatchers/ |
| H A D | GtestMatchers.cpp | 39 static DeclarationMatcher getComparisonDecl(GtestCmp Cmp) { in getComparisonDecl()
|
| /llvm-project-15.0.7/clang/include/clang/ASTMatchers/ |
| H A D | ASTMatchFinder.h | 154 void addMatcher(const DeclarationMatcher &NodeMatch,
|
| /llvm-project-15.0.7/clang/lib/Analysis/FlowSensitive/Models/ |
| H A D | UncheckedOptionalAccessModel.cpp | 40 DeclarationMatcher optionalClass() { in optionalClass() 701 ast_matchers::DeclarationMatcher
|
| /llvm-project-15.0.7/clang/unittests/Tooling/ |
| H A D | SourceCodeBuildersTest.cpp | 50 static DeclarationMatcher wrapMatcher(const StatementMatcher &Matcher) { in wrapMatcher()
|
| /llvm-project-15.0.7/clang/lib/Analysis/ |
| H A D | RetainSummaryManager.cpp | 143 DeclarationMatcher SubclassM = in isSubclass() 150 DeclarationMatcher sameClassM = in isExactClass()
|
| /llvm-project-15.0.7/clang/unittests/ASTMatchers/Dynamic/ |
| H A D | RegistryTest.cpp | 321 DeclarationMatcher ClassHasAnyDirectBase = in TEST_F()
|