Home
last modified time | relevance | path

Searched refs:getParents (Results 1 – 25 of 40) sorted by relevance

12

/external/llvm-project/clang/include/clang/AST/
DParentMapContext.h53 template <typename NodeT> DynTypedNodeList getParents(const NodeT &Node);
55 DynTypedNodeList getParents(const DynTypedNode &Node);
127 inline DynTypedNodeList ParentMapContext::getParents(const NodeT &Node) { in getParents() function
128 return getParents(DynTypedNode::create(Node)); in getParents()
132 inline DynTypedNodeList ASTContext::getParents(const NodeT &Node) { in getParents() function
133 return getParentMapContext().getParents(Node); in getParents()
137 inline DynTypedNodeList ASTContext::getParents(const DynTypedNode &Node) { in getParents() function
138 return getParentMapContext().getParents(Node); in getParents()
/external/llvm-project/clang/unittests/AST/
DASTContextParentMapTest.cpp93 EXPECT_THAT(Ctx.getParents(Bar), ElementsAre(DynTypedNode::create(Foo))); in TEST()
94 EXPECT_THAT(Ctx.getParents(Foo), ElementsAre(DynTypedNode::create(TU))); in TEST()
98 EXPECT_THAT(Ctx.getParents(Bar), ElementsAre(DynTypedNode::create(Foo))); in TEST()
99 EXPECT_THAT(Ctx.getParents(Foo), ElementsAre()); in TEST()
103 EXPECT_THAT(Ctx.getParents(Bar), ElementsAre(DynTypedNode::create(Foo))); in TEST()
104 EXPECT_THAT(Ctx.getParents(Foo), ElementsAre(DynTypedNode::create(TU))); in TEST()
/external/llvm-project/clang/lib/StaticAnalyzer/Checkers/WebKit/
DUncountedLocalVarsChecker.cpp36 auto parent = ASTCtx.getParents(*Var); in isDeclaredInForOrIf()
40 DynTypedNodeList grandParent = ASTCtx.getParents(*DS); in isDeclaredInForOrIf()
85 for (DynTypedNodeList guardianAncestors = ctx.getParents(*MaybeGuardian); in isGuardedScopeEmbeddedInGuardianScope()
87 guardianAncestors = ctx.getParents( in isGuardedScopeEmbeddedInGuardianScope()
107 for (DynTypedNodeList guardedVarAncestors = ctx.getParents(*Guarded); in isGuardedScopeEmbeddedInGuardianScope()
109 guardedVarAncestors = ctx.getParents( in isGuardedScopeEmbeddedInGuardianScope()
/external/llvm-project/clang-tools-extra/clang-tidy/readability/
DMagicNumbersCheck.cpp40 return llvm::any_of(Result.Context->getParents(Node), in isUsedToInitializeAConstant()
52 return llvm::any_of(Result.Context->getParents(Node), in isUsedToDefineABitField()
139 Result.Context->getParents(ExprResult), in isConstant()
148 Result.Context->getParents(Parent), in isConstant()
221 llvm::any_of(Result.Context->getParents(Literal), in isBitFieldWidth()
DRedundantDeclarationCheck.cpp58 for (const auto &Parent : Result.Context->getParents(*Prev)) in check()
DUseAnyOfAllOfCheck.cpp24 DynTypedNodeList Parents = Finder->getASTContext().getParents(Node); in AST_MATCHER_P()
DImplicitBoolConversionCheck.cpp105 Parent = Context.getParents(*Parent)[0].get<Stmt>(); in fixGenericExprCastToBool()
228 for (const auto &N : Context.getParents(*Q.front())) { in isCastAllowedInCondition()
DMisleadingIndentationCheck.cpp21 auto parents = Context->getParents(*If); in getPrecedingIf()
DMakeMemberFunctionConstCheck.cpp62 DynTypedNodeList Parents = Ctxt.getParents(*E); in getParent()
/external/llvm-project/clang/unittests/Tooling/
DASTSelectionTest.cpp726 SelectedCode->getParents(); in TEST()
747 SelectedCode->getParents(); in TEST()
801 SelectedCode->getParents(); in TEST()
829 SelectedCode->getParents(); in TEST()
859 SelectedCode->getParents(); in TEST()
887 SelectedCode->getParents(); in TEST()
936 SelectedCode->getParents(); in TEST()
960 SelectedCode->getParents(); in TEST()
1078 SelectedCode->getParents()[SelectedCode->getParents().size() - 1] in TEST()
/external/llvm-project/clang/lib/AST/
DParentMapContext.cpp116 DynTypedNodeList getParents(TraversalKind TK, const DynTypedNode &Node) { in getParents() function in ParentMapContext::ParentMap
328 DynTypedNodeList ParentMapContext::getParents(const DynTypedNode &Node) { in getParents() function in ParentMapContext
333 return Parents->getParents(getTraversalKind(), Node); in getParents()
/external/llvm-project/clang/unittests/CrossTU/
DCrossTranslationUnitTest.cpp49 Ctx.getParentMapContext().getParents<Decl>(*FD); in HandleTranslationUnit()
116 Ctx.getParentMapContext().getParents<Decl>(*FD); in HandleTranslationUnit()
118 Ctx.getParentMapContext().getParents<Decl>(*NewFD); in HandleTranslationUnit()
/external/llvm-project/clang-tools-extra/clang-tidy/utils/
DExprSequence.cpp33 DynTypedNodeList Parents = Context->getParents(*S); in getParentStmts()
45 Parents = Context->getParents(Node); in getParentStmts()
/external/llvm-project/clang-tools-extra/clang-tidy/cppcoreguidelines/
DProBoundsArrayToPointerDecayCheck.cpp39 DynTypedNodeList Parents = Finder->getASTContext().getParents(*E); in AST_MATCHER_P()
/external/llvm-project/clang/include/clang/Tooling/Refactoring/
DASTSelection.h101 ArrayRef<SelectedASTNode::ReferenceType> getParents() { return Parents; } in getParents() function
/external/clang/utils/TableGen/
DClangDiagnosticsEmitter.cpp56 const std::vector<Record*> &getParents(const Record *Group) { in getParents() function in __anon0cdd291e0111::DiagGroupParentMap
71 const std::vector<Record*> &Parents = DiagGroupParents.getParents(Group); in getCategoryFromDiagGroup()
345 const std::vector<Record*> &Parents = DiagGroupParents.getParents(Group); in isSubGroupOfGroup()
388 const std::vector<Record*> &Parents = DiagGroupParents.getParents(Group); in markGroup()
447 const std::vector<Record*> &Parents = DiagGroupParents.getParents(Group); in compute()
/external/llvm-project/clang/lib/Tooling/Refactoring/Rename/
DUSRLocFinder.cpp354 auto Parents = Context.getParents(Loc); in VisitTypeLoc()
465 auto Parents = Context.getParents(Node); in getClosestAncestorDecl()
477 auto Parents = Context.getParents(Loc); in getParentTypeLoc()
/external/llvm-project/clang-tools-extra/clang-tidy/bugprone/
DMultipleStatementMacroCheck.cpp25 auto Parents = Result.Context->getParents(*S); in nextStmt()
DSuspiciousMissingCommaCheck.cpp27 auto Parents = Ctx->getParents(*Lit); in isConcatenatedLiteralsOnPurpose()
/external/llvm-project/clang/utils/TableGen/
DClangDiagnosticsEmitter.cpp56 const std::vector<Record*> &getParents(const Record *Group) { in getParents() function in __anon80066e6c0111::DiagGroupParentMap
71 const std::vector<Record*> &Parents = DiagGroupParents.getParents(Group); in getCategoryFromDiagGroup()
329 const std::vector<Record*> &Parents = DiagGroupParents.getParents(Group); in isSubGroupOfGroup()
374 const std::vector<Record*> &Parents = DiagGroupParents.getParents(Group); in markGroup()
433 const std::vector<Record*> &Parents = DiagGroupParents.getParents(Group); in compute()
/external/llvm-project/clang/lib/ASTMatchers/
DASTMatchFinder.cpp774 for (const auto &Parent : ActiveASTContext->getParents(Node)) { in matchesParentOf()
839 Parents = ActiveASTContext->getParents(Node); in matchesAnyAncestorOf()
886 for (const auto &Parent : ActiveASTContext->getParents(Queue.front())) { in matchesAnyAncestorOf()
/external/opencensus-java/contrib/spring_sleuth_v1x/src/main/java/io/opencensus/contrib/spring/sleuth/v1x/
DOpenCensusSleuthTracer.java177 if (savedSpan != null && span.getParents().contains(savedSpan.getSpanId())) { in close()
/external/llvm-project/clang-tools-extra/clang-tidy/modernize/
DUseNullptrCheck.cpp420 const auto &Parents = Context.getParents(Start); in findContainingAncestor()
DMakeSmartPtrCheck.cpp268 for (const auto &Node : Ctx->getParents(*E)) { in replaceNew()
/external/clang/lib/ASTMatchers/
DASTMatchFinder.cpp652 const auto &Parents = ActiveASTContext->getParents(Node); in matchesAncestorOfRecursively()
681 ActiveASTContext->getParents(Queue.front())) { in matchesAncestorOfRecursively()

12