|
reference, declaration → definition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced
|
Declarations
tools/clang/include/clang/ASTMatchers/ASTMatchers.h 310 extern const internal::VariadicAllOfMatcher<Decl> decl;
References
tools/clang/include/clang/ASTMatchers/ASTMatchers.h 5275 auto IsInstantiation = decl(anyOf(cxxRecordDecl(isTemplateInstantiation()),
5277 return decl(anyOf(IsInstantiation, hasAncestor(IsInstantiation)));
5296 hasAncestor(decl(anyOf(cxxRecordDecl(isTemplateInstantiation()),
tools/clang/lib/ASTMatchers/Dynamic/Registry.cpp 196 REGISTER_MATCHER(decl);
tools/clang/lib/StaticAnalyzer/Checkers/ObjCAutoreleaseWriteChecker.cpp 196 auto MatcherM = decl(anyOf(
tools/clang/lib/StaticAnalyzer/Checkers/PointerIterationChecker.cpp 66 auto matchUnorderedIterWithPointers() -> decltype(decl()) {
79 return decl(forEachDescendant(PointerIterM));
tools/clang/lib/StaticAnalyzer/Checkers/PointerSortingChecker.cpp 69 auto matchSortWithPointers() -> decltype(decl()) {
92 return decl(forEachDescendant(PointerSortM));
tools/clang/lib/StaticAnalyzer/Checkers/RunLoopAutoreleaseLeakChecker.cpp 166 DeclarationMatcher GroupM = decl(hasDescendant(RunLoopInAutorelease));
tools/clang/tools/extra/clang-change-namespace/ChangeNamespace.cpp 442 usingDecl(hasAnyUsingShadowDecl(decl()), hasParent(cxxRecordDecl()));
458 hasAncestor(decl().bind("dc")))
466 Finder->addMatcher(usingDecl(IsInMovedNs, hasAnyUsingShadowDecl(decl()),
476 hasAncestor(decl(IsInMovedNs).bind("dc")),
483 decl(equalsBoundNode("from_decl"))))))))))
507 Finder->addMatcher(expr(hasAncestor(decl().bind("dc")), IsInMovedNs,
517 Finder->addMatcher(declRefExpr(IsInMovedNs, hasAncestor(decl().bind("dc")),
528 declRefExpr(IsInMovedNs, hasAncestor(decl().bind("dc")),
tools/clang/tools/extra/clang-include-fixer/find-all-symbols/FindAllSymbols.cpp 119 decl(anyOf(cxxRecordDecl(isExplicitTemplateSpecialization()),
tools/clang/tools/extra/clang-move/Move.cpp 525 hasParent(decl(anyOf(namespaceDecl(), translationUnitDecl()))),
526 hasDeclContext(decl(anyOf(namespaceDecl(), translationUnitDecl()))));
541 hasParent(decl(anyOf(namespaceDecl(), translationUnitDecl()))), InOldCC);
600 declRefExpr(to(HelperFuncOrVar), hasAncestor(decl().bind("dc")))
606 hasAncestor(decl().bind("dc"))),
tools/clang/tools/extra/clang-tidy/abseil/StrCatAppendCheck.cpp 65 hasArgument(0, declRefExpr(to(decl().bind("LHS")))),
tools/clang/tools/extra/clang-tidy/abseil/UpgradeDurationConversionsCheck.cpp 143 hasAncestor(decl(anyOf(classTemplateDecl(), functionTemplateDecl())));
tools/clang/tools/extra/clang-tidy/bugprone/ForwardDeclarationNamespaceCheck.cpp 31 decl(anyOf(cxxRecordDecl(isExplicitTemplateSpecialization()),
35 hasParent(decl(anyOf(namespaceDecl(), translationUnitDecl()))),
tools/clang/tools/extra/clang-tidy/bugprone/InaccurateEraseCheck.cpp 38 tagType(hasDeclaration(decl(isInStdNamespace())))));
tools/clang/tools/extra/clang-tidy/bugprone/MisplacedOperatorInStrlenInAllocCheck.cpp 60 Finder->addMatcher(callExpr(callee(decl(anyOf(Alloc0Func, Alloc0FuncPtr))),
64 Finder->addMatcher(callExpr(callee(decl(anyOf(Alloc1Func, Alloc1FuncPtr))),
tools/clang/tools/extra/clang-tidy/bugprone/NotNullTerminatedResultCheck.cpp 662 allOf(to(decl().bind(SrcVarDeclName)),
tools/clang/tools/extra/clang-tidy/cert/DontModifyStdNamespaceCheck.cpp 26 has(decl(unless(anyOf(
tools/clang/tools/extra/clang-tidy/google/GlobalNamesInHeadersCheck.cpp 41 Finder->addMatcher(decl(anyOf(usingDecl(), usingDirectiveDecl()),
tools/clang/tools/extra/clang-tidy/google/UpgradeGoogletestCaseCheck.cpp 196 unless(hasAncestor(decl(isImplicit()))), LocationFilter)
237 hasAncestor(decl(anyOf(classTemplateDecl(), functionTemplateDecl())));
tools/clang/tools/extra/clang-tidy/misc/UniqueptrResetReleaseCheck.cpp 31 decl().bind("left_class"))))),
38 decl().bind("right_class")))))))))
tools/clang/tools/extra/clang-tidy/misc/UnusedParametersCheck.cpp 33 functionDecl(isDefinition(), hasBody(stmt()), hasAnyParameter(decl()))
tools/clang/tools/extra/clang-tidy/modernize/MakeSmartPtrCheck.cpp 85 cxxConstructExpr(hasDeclaration(decl(unless(isPublic())))))));
tools/clang/tools/extra/clang-tidy/modernize/UseAutoCheck.cpp 213 return decl(
tools/clang/tools/extra/clang-tidy/performance/InefficientAlgorithmCheck.cpp 50 hasDeclaration(decl().bind("IneffContObj")),
tools/clang/tools/extra/clang-tidy/performance/InefficientStringConcatenationCheck.cpp 52 hasDeclaration(decl().bind("lhsStrT")))
55 hasDeclaration(decl(equalsBoundNode("lhsStrT"))))))),
tools/clang/tools/extra/clang-tidy/performance/UnnecessaryValueParamCheck.cpp 45 match(decl(forEachDescendant(declRefExpr(
86 decl().bind("param"));
91 unless(isInstantiated()), decl().bind("functionDecl")),
tools/clang/tools/extra/clang-tidy/readability/DeleteNullPointerCheck.cpp 24 to(decl(equalsBoundNode("deletedPointer"))))))))
33 declRefExpr(to(decl().bind("deletedPointer"))),
tools/clang/tools/extra/clang-tidy/readability/RedundantSmartptrGetCheck.cpp 24 pointsTo(decl(OnClass).bind("ptr_to_ptr"))))))
tools/clang/tools/extra/clang-tidy/readability/RedundantStringCStrCheck.cpp 126 cxxMemberCallExpr(on(StringExpr), callee(decl(cxxMethodDecl(hasAnyName(
134 callee(decl(cxxMethodDecl(hasName("compare")))),
141 callee(decl(cxxMethodDecl(hasAnyName(
151 callee(decl(cxxMethodDecl(hasName("insert")))),
tools/clang/tools/extra/clang-tidy/readability/SimplifyBooleanExprCheck.cpp 462 auto VarAssign = declRefExpr(hasDeclaration(decl().bind(IfAssignVarId)));
464 auto MemAssign = memberExpr(hasDeclaration(decl().bind(IfAssignVarId)));
tools/clang/tools/extra/clang-tidy/utils/DeclRefExprUtils.cpp 85 match(decl(forEachDescendant(expr(
97 Matches = match(decl(forEachDescendant(callExpr(UsedAsConstRefOrValueArg))),
101 match(decl(forEachDescendant(cxxConstructExpr(UsedAsConstRefOrValueArg))),
132 decl(forEachDescendant(
146 decl(hasDescendant(
160 decl(hasDescendant(
tools/clang/tools/extra/clang-tidy/utils/NamespaceAliaser.cpp 62 !match(functionDecl(hasAncestor(decl(has(ConflictMatcher)))), *Function,
tools/clang/tools/extra/clang-tidy/utils/UsingInserter.cpp 52 !match(stmt(hasAncestor(decl(has(usingDecl(hasAnyUsingShadowDecl(
tools/clang/unittests/AST/ASTTypeTraitsTest.cpp 129 EXPECT_TRUE(Verifier.match("void f() {}", decl()));
tools/clang/unittests/ASTMatchers/ASTMatchersInternalTest.cpp 105 Finder.addMatcher(decl(), &Callback);
127 Finder.addMatcher(decl(), &VerifyCallback);
153 Finder.addMatcher(decl(), &VerifyCallback);
tools/clang/unittests/ASTMatchers/ASTMatchersNarrowingTest.cpp 252 decl(hasDescendant(typeLoc().bind("x")), has(decl()));
252 decl(hasDescendant(typeLoc().bind("x")), has(decl()));
262 decl(hasDescendant(VD), hasDescendant(RD))));
264 decl(hasDescendant(RD), hasDescendant(VD))));
267 decl(anyOf(hasDescendant(RD), hasDescendant(VD)))));
285 decl(hasAttr(clang::attr::WarnUnused))));
287 decl(hasAttr(clang::attr::WarnUnused))));
2300 decl(allOf(recordDecl(hasName("::X::Y")).bind("record"),
2301 hasParent(decl(has(decl(equalsBoundNode("record")))))))));
2301 hasParent(decl(has(decl(equalsBoundNode("record")))))))));
2304 decl(allOf(recordDecl(hasName("::X")).bind("record"),
2305 has(decl(equalsBoundNode("record")))))));
2352 forEachDescendant(declRefExpr(to(decl(equalsBoundNode("d")))))),
tools/clang/unittests/ASTMatchers/ASTMatchersNodeTest.cpp 23 EXPECT_TRUE(Finder.addDynamicMatcher(decl(), nullptr));
34 EXPECT_TRUE(notMatches("", decl(usingDecl())));
36 decl(usingDecl())));
109 hasDeclContext(decl(hasDeclContext(translationUnitDecl()))))));
1560 "", match(decl(hasParent(
1561 decl(has(decl(equalsNode(TypedNode)))).bind(""))),
1561 decl(has(decl(equalsNode(TypedNode)))).bind(""))),
1570 "", match(fieldDecl(hasParent(decl(has(fieldDecl(
tools/clang/unittests/ASTMatchers/ASTMatchersTraversalTest.cpp 62 EXPECT_TRUE(matches("class D{};", decl(hasDeclContext(decl()))));
62 EXPECT_TRUE(matches("class D{};", decl(hasDeclContext(decl()))));
67 decl(hasDescendant(loc(builtinType())))));
246 hasType(typedefType(hasDeclaration(decl()))))));
714 declRefExpr(to(decl(equalsBoundNode("v")))), parmVarDecl())))),
831 refersToDeclaration(decl())))));
844 refersToDeclaration(decl())))));
1923 isDefinition(), decl().bind("x"), hasName("C"));
1966 "class X { int a; };", recordDecl(decl().bind("x"), has(fieldDecl())),
2003 decl().bind("x"),
2008 cxxRecordDecl(decl().bind("x"), hasMethod(hasName("g"))),
2012 recordDecl(decl().bind("x"),
2022 functionDecl(decl().bind("x"), hasAnyParameter(hasName("y"))),
2026 functionDecl(decl().bind("x"),
2032 usingDecl(decl().bind("x"), hasAnyUsingShadowDecl(hasTargetDecl(
2037 cxxRecordDecl(decl().bind("x"), isDerivedFrom("::A")),
2042 cxxRecordDecl(decl().bind("x"), isDerivedFrom("C")),
2046 functionDecl(decl().bind("x"), hasAncestor(recordDecl(hasName("::A")))),
2057 recordDecl(hasName("::A"), decl().bind("x"), unless(hasName("fooble"))),
2061 cxxConstructorDecl(hasName("::A::A"), decl().bind("x"),
2069 recordDecl(hasName("C"), forEachDescendant(decl().bind("decl"))),
2073 recordDecl(hasName("C"), forEachDescendant(decl().bind("decl"))),
2095 findAll(decl(anyOf(recordDecl(hasName("::A")).bind("v"),
2147 decl(
2213 declRefExpr(to(decl(hasAncestor(decl()))))));
2213 declRefExpr(to(decl(hasAncestor(decl()))))));
2221 memberExpr(member(hasAncestor(decl())))));
2228 memberExpr(member(hasAncestor(decl())))));
2235 declRefExpr(to(decl(hasAncestor(decl()))))));
2235 declRefExpr(to(decl(hasAncestor(decl()))))));
2245 declRefExpr(to(decl(hasAncestor(decl()))))));
2245 declRefExpr(to(decl(hasAncestor(decl()))))));
2252 declRefExpr(to(decl(hasAncestor(decl()))))));
2252 declRefExpr(to(decl(hasAncestor(decl()))))));
2411 decl(hasDescendant(nestedNameSpecifier(specifiesType(
2454 decl(hasDescendant(loc(nestedNameSpecifier(specifiesType(
2487 "X", decl(hasDescendant(recordDecl(hasName("X::Y")).bind("Y"))),
2492 "X", decl(hasDescendant(recordDecl(hasName("X::Z")).bind("Z"))),
tools/clang/unittests/StaticAnalyzer/Reusables.h 24 auto Matches = match(decl(hasDescendant(What.bind("root"))),
tools/clang/unittests/Tooling/RangeSelectorTest.cpp 101 decl(hasDescendant(cxxCtorInitializer(isBaseInitializer())
tools/clang/unittests/Tooling/StencilTest.cpp 92 hasDeclaration(decl(hasDescendant(cxxCtorInitializer(