|
reference, declaration → definition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced
|
Declarations
tools/clang/include/clang/ASTMatchers/ASTMatchers.h 2921 hasAncestor;
References
tools/clang/include/clang/ASTMatchers/ASTMatchers.h 5277 return decl(anyOf(IsInstantiation, hasAncestor(IsInstantiation)));
5296 hasAncestor(decl(anyOf(cxxRecordDecl(isTemplateInstantiation()),
tools/clang/lib/ASTMatchers/Dynamic/Registry.cpp 236 REGISTER_MATCHER(hasAncestor);
tools/clang/lib/Analysis/ExprMutationAnalyzer.cpp 162 hasAncestor(typeLoc(unless(
163 hasAncestor(unaryExprOrTypeTraitExpr())))),
164 hasAncestor(expr(anyOf(
tools/clang/lib/StaticAnalyzer/Checkers/RunLoopAutoreleaseLeakChecker.cpp 159 hasAncestor(autoreleasePoolStmt().bind(OtherStmtAutoreleasePoolBind)));
177 auto NoPoolM = unless(hasAncestor(autoreleasePoolStmt()));
tools/clang/tools/extra/clang-change-namespace/ChangeNamespace.cpp 388 allOf(hasAncestor(namespaceDecl(hasName(FullOldNs)).bind("ns_decl")),
391 IsInMovedNs, unless(hasAncestor(namespaceDecl(hasName(Prefix)))));
432 hasAncestor(namespaceDecl()),
434 isImplicit(), hasAncestor(namespaceDecl(isAnonymous())),
435 hasAncestor(cxxRecordDecl()),
455 hasAncestor(isImplicit()),
456 hasAncestor(UsingShadowDeclInClass),
457 hasAncestor(functionDecl(isDefaulted())))),
458 hasAncestor(decl().bind("dc")))
476 hasAncestor(decl(IsInMovedNs).bind("dc")),
479 unless(anyOf(hasAncestor(isImplicit()),
480 hasAncestor(UsingShadowDeclInClass),
481 hasAncestor(functionDecl(isDefaulted())),
482 hasAncestor(typeLoc(loc(qualType(hasDeclaration(
504 hasAncestor(namespaceDecl(isAnonymous())),
505 hasAncestor(cxxRecordDecl()))),
507 Finder->addMatcher(expr(hasAncestor(decl().bind("dc")), IsInMovedNs,
508 unless(hasAncestor(isImplicit())),
516 unless(anyOf(IsInMovedNs, hasAncestor(namespaceDecl(isAnonymous())))));
517 Finder->addMatcher(declRefExpr(IsInMovedNs, hasAncestor(decl().bind("dc")),
525 unless(anyOf(isScoped(), IsInMovedNs, hasAncestor(cxxRecordDecl()),
526 hasAncestor(namespaceDecl(isAnonymous())))))));
528 declRefExpr(IsInMovedNs, hasAncestor(decl().bind("dc")),
tools/clang/tools/extra/clang-include-fixer/find-all-symbols/FindAllSymbols.cpp 118 auto IsInSpecialization = hasAncestor(
tools/clang/tools/extra/clang-move/Move.cpp 600 declRefExpr(to(HelperFuncOrVar), hasAncestor(decl().bind("dc")))
606 hasAncestor(decl().bind("dc"))),
tools/clang/tools/extra/clang-tidy/abseil/RedundantStrcatCallsCheck.cpp 39 callExpr(CallToStrcat, unless(hasAncestor(CallToEither))).bind("StrCat"),
tools/clang/tools/extra/clang-tidy/abseil/TimeSubtractionCheck.cpp 162 "arg", match(expr(hasAncestor(
tools/clang/tools/extra/clang-tidy/abseil/UpgradeDurationConversionsCheck.cpp 143 hasAncestor(decl(anyOf(classTemplateDecl(), functionTemplateDecl())));
tools/clang/tools/extra/clang-tidy/bugprone/DanglingHandleCheck.cpp 160 unless(hasAncestor(lambdaExpr())))
tools/clang/tools/extra/clang-tidy/bugprone/ForwardDeclarationNamespaceCheck.cpp 30 auto IsInSpecialization = hasAncestor(
36 unless(isImplicit()), unless(hasAncestor(cxxRecordDecl())),
tools/clang/tools/extra/clang-tidy/bugprone/IntegerDivisionCheck.cpp 39 hasAncestor(
41 unless(hasAncestor(
43 hasAncestor(castExpr(equalsBoundNode("FloatCast")))))))
tools/clang/tools/extra/clang-tidy/bugprone/LambdaFunctionNameCheck.cpp 63 Finder->addMatcher(predefinedExpr(hasAncestor(lambdaExpr())).bind("E"),
tools/clang/tools/extra/clang-tidy/bugprone/NotNullTerminatedResultCheck.cpp 532 hasAncestor(compoundStmt(hasDescendant(binaryOperator(
663 anyOf(hasAncestor(cxxMemberCallExpr().bind(SrcExprName)),
692 unless(hasAncestor(compoundStmt(
780 unless(hasAncestor(castExpr(unless(implicitCastExpr())))))
tools/clang/tools/extra/clang-tidy/bugprone/SizeofContainerCheck.cpp 30 unless(hasAncestor(binaryOperator(
tools/clang/tools/extra/clang-tidy/bugprone/TerminatingContinueCheck.cpp 29 continueStmt(hasAncestor(stmt(anyOf(forStmt(), whileStmt(),
32 hasAncestor(doWithFalse))
tools/clang/tools/extra/clang-tidy/bugprone/ThrowKeywordMissingCheck.cpp 31 unless(anyOf(hasAncestor(stmt(
33 hasAncestor(varDecl()),
34 allOf(hasAncestor(CtorInitializerList),
35 unless(hasAncestor(cxxCatchStmt()))))))
tools/clang/tools/extra/clang-tidy/bugprone/UnhandledSelfAssignmentCheck.cpp 54 ofClass(cxxRecordDecl(unless(hasAncestor(classTemplateDecl())))),
62 ofClass(cxxRecordDecl(hasAncestor(classTemplateDecl()))),
tools/clang/tools/extra/clang-tidy/bugprone/UseAfterMoveCheck.cpp 78 return anyOf(hasAncestor(typeLoc()),
79 hasAncestor(declRefExpr(
383 anyOf(hasAncestor(lambdaExpr().bind("containing-lambda")),
384 hasAncestor(functionDecl().bind("containing-func"))),
tools/clang/tools/extra/clang-tidy/cert/StaticObjectExceptionCheck.cpp 29 hasAncestor(functionDecl()))),
tools/clang/tools/extra/clang-tidy/cppcoreguidelines/AvoidGotoCheck.cpp 37 stmt(anyOf(forStmt(hasAncestor(Loop)), cxxForRangeStmt(hasAncestor(Loop)),
37 stmt(anyOf(forStmt(hasAncestor(Loop)), cxxForRangeStmt(hasAncestor(Loop)),
38 whileStmt(hasAncestor(Loop)), doStmt(hasAncestor(Loop))));
38 whileStmt(hasAncestor(Loop)), doStmt(hasAncestor(Loop))));
40 Finder->addMatcher(gotoStmt(anyOf(unless(hasAncestor(NestedLoop)),
tools/clang/tools/extra/clang-tidy/cppcoreguidelines/ProBoundsArrayToPointerDecayCheck.cpp 29 return stmt(hasAncestor(cxxForRangeStmt(
tools/clang/tools/extra/clang-tidy/cppcoreguidelines/ProBoundsConstantArrayIndexCheck.cpp 52 hasIndex(expr().bind("index")), unless(hasAncestor(isImplicit())))
tools/clang/tools/extra/clang-tidy/google/AvoidCStyleCastsCheck.cpp 110 if (!match(expr(hasAncestor(linkageSpecDecl())), *CastExpr, *Result.Context)
tools/clang/tools/extra/clang-tidy/google/FunctionNamingCheck.cpp 105 hasAncestor(namespaceDecl()), isMain(), isImplicit(),
tools/clang/tools/extra/clang-tidy/google/IntegerTypesCheck.cpp 67 unless(hasAncestor(callExpr(
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/modernize/AvoidCArraysCheck.cpp 56 hasAncestor(functionDecl(isExternC())))))
tools/clang/tools/extra/clang-tidy/modernize/UseNullptrCheck.cpp 46 unless(hasAncestor(explicitCastExpr())))
tools/clang/tools/extra/clang-tidy/modernize/UseUncaughtExceptionsCheck.cpp 39 unless(hasAncestor(initListExpr())))
44 Finder->addMatcher(callExpr(hasAncestor(initListExpr()),
tools/clang/tools/extra/clang-tidy/objc/SuperSelfCheck.cpp 84 hasAncestor(objcMethodDecl(
tools/clang/tools/extra/clang-tidy/performance/InefficientStringConcatenationCheck.cpp 64 hasAncestor(stmt(anyOf(cxxForRangeStmt(),
tools/clang/tools/extra/clang-tidy/performance/UnnecessaryValueParamCheck.cpp 37 unless(hasAncestor(callExpr()))),
47 unless(hasAncestor(stmt(anyOf(forStmt(), cxxForRangeStmt(),
tools/clang/tools/extra/clang-tidy/readability/ContainerSizeEmptyCheck.cpp 65 unless(hasAncestor(cxxMethodDecl(
97 unless(hasAncestor(
tools/clang/tools/extra/clang-tidy/readability/ImplicitBoolConversionCheck.cpp 298 unless(hasAncestor(functionTemplateDecl())))
328 unless(hasAncestor(functionTemplateDecl()))),
tools/clang/tools/extra/clang-tidy/readability/UppercaseLiteralSuffixCheck.cpp 203 hasAncestor(isImplicit()),
204 hasAncestor(substNonTypeTemplateParmExpr())))),
tools/clang/tools/extra/clang-tidy/utils/ASTUtils.cpp 23 "function", match(stmt(hasAncestor(functionDecl().bind("function"))),
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/ASTContextParentMapTest.cpp 79 hasAncestor(cxxRecordDecl(isTemplateInstantiation())),
80 hasAncestor(cxxRecordDecl(unless(isTemplateInstantiation())))))));
112 varDecl(hasName("y"), hasAncestor(functionDecl(
tools/clang/unittests/AST/ASTImporterTest.cpp 816 unless(hasAncestor(translationUnitDecl(has(typeAliasDecl()))))));
831 unless(hasAncestor(translationUnitDecl(has(varDecl(
1104 functionTemplateDecl(hasAncestor(translationUnitDecl(
1110 classTemplateDecl(hasAncestor(translationUnitDecl(
5213 functionDecl(hasName("foo"), hasAncestor(cxxRecordDecl(hasName("A"))));
5215 functionDecl(hasName("foo"), hasAncestor(cxxRecordDecl(hasName("B"))));
5217 functionDecl(hasName("foo"), hasAncestor(cxxRecordDecl(hasName("C"))));
tools/clang/unittests/AST/OMPStructuredBlockTest.cpp 361 hasAncestor(ompExecutableDirective(ompSectionsDirective())),
362 unless(hasAncestor(ompExecutableDirective(ompSectionDirective()))))
tools/clang/unittests/ASTMatchers/ASTMatchersNarrowingTest.cpp 276 forEach(fieldDecl(hasAncestor(forStmt()))));
2264 hasAncestor(namespaceDecl(hasName("filesystem"),
2366 unless(hasAncestor(stmt(hasDescendant(cxxMemberCallExpr(
2382 unless(hasAncestor(stmt(hasDescendant(cxxMemberCallExpr(
tools/clang/unittests/ASTMatchers/ASTMatchersTraversalTest.cpp 2046 functionDecl(decl().bind("x"), hasAncestor(recordDecl(hasName("::A")))),
2053 ifStmt(stmt().bind("x"), hasAncestor(recordDecl(hasName("::A")))),
2108 recordDecl(hasName("C"), hasAncestor(recordDecl(hasName("A"))))));
2114 recordDecl(hasName("C"), hasAncestor(recordDecl(hasName("X"))))));
2121 hasAncestor(recordDecl(hasName("A"))))))));
2127 integerLiteral(equals(42), hasAncestor(ifStmt()))));
2133 integerLiteral(equals(42), hasAncestor(functionDecl(hasName("f"))))));
2139 fieldDecl(hasAncestor(recordDecl(hasAncestor(recordDecl().bind("r"))))),
2139 fieldDecl(hasAncestor(recordDecl(hasAncestor(recordDecl().bind("r"))))),
2146 fieldDecl(hasAncestor(
2149 hasAncestor(recordDecl())))
2164 hasAncestor(functionDecl(hasParameter(
2174 hasAncestor(recordDecl(hasName("A"))))));
2182 hasAncestor(recordDecl(hasName("A")))))))));
2204 hasAncestor(cxxRecordDecl(isTemplateInstantiation())),
2205 hasAncestor(cxxRecordDecl(unless(isTemplateInstantiation())))))));
2213 declRefExpr(to(decl(hasAncestor(decl()))))));
2221 memberExpr(member(hasAncestor(decl())))));
2228 memberExpr(member(hasAncestor(decl())))));
2235 declRefExpr(to(decl(hasAncestor(decl()))))));
2245 declRefExpr(to(decl(hasAncestor(decl()))))));
2252 declRefExpr(to(decl(hasAncestor(decl()))))));
tools/clang/unittests/Analysis/ExprMutationAnalyzerTest.cpp 51 return expr(Matcher, hasAncestor(compoundStmt().bind("stmt"))).bind("expr");