Home
last modified time | relevance | path

Searched refs:DeclMatcher (Results 1 – 5 of 5) sorted by relevance

/llvm-project-15.0.7/clang/unittests/AST/
H A DDeclMatcher.h21 class DeclMatcher : public MatchFinder::MatchCallback {
41 using LastDeclMatcher = DeclMatcher<NodeType, DeclMatcherKind::Last>;
43 using FirstDeclMatcher = DeclMatcher<NodeType, DeclMatcherKind::First>;
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/misc/
H A DUnusedUsingDeclsCheck.cpp23 clang::ast_matchers::internal::Matcher<NamedDecl>, DeclMatcher) { in AST_MATCHER_P() argument
25 return DeclMatcher.matches(*TD, Finder, Builder); in AST_MATCHER_P()
43 auto DeclMatcher = hasDeclaration(namedDecl().bind("used")); in registerMatchers() local
44 Finder->addMatcher(loc(templateSpecializationType(DeclMatcher)), this); in registerMatchers()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/cppcoreguidelines/
H A DPreferMemberInitializerCheck.cpp76 auto DeclMatcher = declRefExpr( in isSafeAssignment() local
79 return match(expr(anyOf(MemberMatcher, DeclMatcher, in isSafeAssignment()
81 hasDescendant(DeclMatcher))), in isSafeAssignment()
/llvm-project-15.0.7/clang-tools-extra/clang-change-namespace/
H A DChangeNamespace.cpp421 auto DeclMatcher = namedDecl( in registerMatchers() local
440 loc(qualType(hasDeclaration(DeclMatcher.bind("from_decl")))), in registerMatchers()
442 hasDeclaration(DeclMatcher), in registerMatchers()
468 specifiesType(hasDeclaration(DeclMatcher.bind("from_decl"))))), in registerMatchers()
/llvm-project-15.0.7/clang/lib/Sema/
H A DSemaStmt.cpp1819 class DeclMatcher : public EvaluatedExprVisitor<DeclMatcher> { class
1824 typedef EvaluatedExprVisitor<DeclMatcher> Inherited;
1826 DeclMatcher(Sema &S, DeclSetVector &Decls, Stmt *Statement) : in DeclMatcher() function in __anonb6e159cd0d11::DeclMatcher
1924 if (DeclMatcher(S, Decls, Second).FoundDeclInUse() || in CheckForLoopConditionalStatement()
1925 DeclMatcher(S, Decls, Third).FoundDeclInUse() || in CheckForLoopConditionalStatement()
1926 DeclMatcher(S, Decls, Body).FoundDeclInUse()) in CheckForLoopConditionalStatement()