Home
last modified time | relevance | path

Searched refs:DeclarationMatcher (Results 1 – 25 of 29) sorted by relevance

12

/llvm-project-15.0.7/clang-tools-extra/clang-tidy/performance/
H A DInefficientVectorOperationCheck.h37 void addMatcher(const ast_matchers::DeclarationMatcher &TargetRecordDecl,
39 const ast_matchers::DeclarationMatcher &AppendMethodDecl,
H A DInefficientVectorOperationCheck.cpp92 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 DASTMatchersNarrowingTest.cpp199 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 DASTMatchersInternalTest.cpp26 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 DASTMatchersNodeTest.cpp32 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 DASTMatchersTraversalTest.cpp23 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 DDeclPrinterTest.cpp48 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 DNamedDeclPrinterTest.cpp67 const DeclarationMatcher &NodeMatch, StringRef ExpectedPrinted, in PrintedDeclMatches()
80 const DeclarationMatcher &NodeMatch, in PrintedNamedDeclMatches()
H A DTypePrinterTest.cpp38 const DeclarationMatcher &NodeMatch, in PrintedTypeMatches()
H A DStmtPrinterTest.cpp36 DeclarationMatcher FunctionBodyMatcher(StringRef ContainingFunction) { in FunctionBodyMatcher()
H A DASTImporterFixtures.h329 DeclarationMatcher ImportPredicate) in ImportAction()
/llvm-project-15.0.7/clang/lib/StaticAnalyzer/Checkers/
H A DRunLoopAutoreleaseLeakChecker.cpp166 DeclarationMatcher GroupM = decl(hasDescendant(RunLoopInAutorelease)); in checkTempObjectsInSamePool()
182 DeclarationMatcher GroupM = functionDecl( in checkTempObjectsInNoPool()
H A DOSObjectCStyleCast.cpp76 static decltype(auto) hasTypePointingTo(DeclarationMatcher DeclM) { in hasTypePointingTo()
/llvm-project-15.0.7/clang/include/clang/Analysis/FlowSensitive/Models/
H A DUncheckedOptionalAccessModel.h51 static ast_matchers::DeclarationMatcher optionalClassDecl();
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/bugprone/
H A DUnhandledSelfAssignmentCheck.cpp74 DeclarationMatcher AdditionalMatcher = cxxMethodDecl(); in registerMatchers()
H A DForwardingReferenceOverloadCheck.cpp71 DeclarationMatcher FindOverload = in registerMatchers()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/utils/
H A DNamespaceAliaser.cpp58 DeclarationMatcher ConflictMatcher = namedDecl(hasName(Abbreviation)); in createAlias()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/modernize/
H A DLoopConvertCheck.cpp76 static const DeclarationMatcher initToZeroMatcher() { in initToZeroMatcher()
157 DeclarationMatcher InitDeclMatcher = in makeIteratorLoopMatcher()
164 DeclarationMatcher EndDeclMatcher = in makeIteratorLoopMatcher()
278 DeclarationMatcher EndDeclMatcher = in makePseudoArrayLoopMatcher()
H A DUseAutoCheck.cpp168 DeclarationMatcher standardIterator() { in standardIterator()
/llvm-project-15.0.7/clang/lib/ASTMatchers/
H A DGtestMatchers.cpp39 static DeclarationMatcher getComparisonDecl(GtestCmp Cmp) { in getComparisonDecl()
/llvm-project-15.0.7/clang/include/clang/ASTMatchers/
H A DASTMatchFinder.h154 void addMatcher(const DeclarationMatcher &NodeMatch,
/llvm-project-15.0.7/clang/lib/Analysis/FlowSensitive/Models/
H A DUncheckedOptionalAccessModel.cpp40 DeclarationMatcher optionalClass() { in optionalClass()
701 ast_matchers::DeclarationMatcher
/llvm-project-15.0.7/clang/unittests/Tooling/
H A DSourceCodeBuildersTest.cpp50 static DeclarationMatcher wrapMatcher(const StatementMatcher &Matcher) { in wrapMatcher()
/llvm-project-15.0.7/clang/lib/Analysis/
H A DRetainSummaryManager.cpp143 DeclarationMatcher SubclassM = in isSubclass()
150 DeclarationMatcher sameClassM = in isExactClass()
/llvm-project-15.0.7/clang/unittests/ASTMatchers/Dynamic/
H A DRegistryTest.cpp321 DeclarationMatcher ClassHasAnyDirectBase = in TEST_F()

12