Home
last modified time | relevance | path

Searched refs:Parents (Results 1 – 21 of 21) sorted by relevance

/freebsd/contrib/llvm-project/clang/lib/Tooling/Refactoring/
H A DASTSelection.cpp253 llvm::SmallVector<SelectedASTNode::ReferenceType, 8> Parents; member
293 const Stmt *Parent = Parents[Parents.size() - 1].get().Node.get<Stmt>(); in canonicalize()
299 for (; (ParentIndex + 1) <= Parents.size() && isa<ImplicitCastExpr>(Parent); in canonicalize()
302 Parents[Parents.size() - ParentIndex - 1].get().Node.get<Stmt>(); in canonicalize()
310 Node = Parents[Parents.size() - ParentIndex]; in canonicalize()
312 Parents.pop_back(); in canonicalize()
398 return CodeRangeASTSelection(Selected.Node, Selected.Parents, in create()
409 Selected.Parents.push_back(Selected.Node); in create()
410 return CodeRangeASTSelection(Selected.Node, Selected.Parents, in create()
424 for (const auto &Parent : llvm::reverse(Parents)) { in isInFunctionLikeBodyOfCode()
[all …]
/freebsd/contrib/llvm-project/clang/include/clang/Tooling/Refactoring/
H A DASTSelection.h102 ArrayRef<SelectedASTNode::ReferenceType> getParents() { return Parents; } in getParents()
139 ArrayRef<SelectedASTNode::ReferenceType> Parents, in CodeRangeASTSelection() argument
141 : SelectedNode(SelectedNode), Parents(Parents), in CodeRangeASTSelection()
148 llvm::SmallVector<SelectedASTNode::ReferenceType, 8> Parents; variable
/freebsd/contrib/llvm-project/clang/lib/Tooling/Refactoring/Rename/
H A DUSRLocFinder.cpp372 auto Parents = Context.getParents(Loc); in VisitTypeLoc() local
374 if (!Parents.empty()) { in VisitTypeLoc()
379 if (const auto *NSL = Parents[0].get<NestedNameSpecifierLoc>()) { in VisitTypeLoc()
384 if (const auto *TL = Parents[0].get<TypeLoc>()) in VisitTypeLoc()
483 auto Parents = Context.getParents(Node); in getClosestAncestorDecl() local
485 if (Parents.size() != 1) in getClosestAncestorDecl()
487 if (ASTNodeKind::getFromNodeKind<Decl>().isBaseOf(Parents[0].getNodeKind())) in getClosestAncestorDecl()
488 return Parents[0].template get<Decl>(); in getClosestAncestorDecl()
489 return getClosestAncestorDecl(Parents[0]); in getClosestAncestorDecl()
495 auto Parents = Context.getParents(Loc); in getParentTypeLoc() local
[all …]
/freebsd/contrib/llvm-project/clang/lib/AST/
H A DParentMapContext.cpp27 void ParentMapContext::clear() { Parents.reset(); } in clear()
378 void addParent(MapNodeTy MapNode, MapTy *Parents) { in addParent() argument
392 auto &NodeOrVector = (*Parents)[MapNode]; in addParent()
426 MapTy *Parents) { in TraverseNode() argument
429 addParent(MapNode, Parents); in TraverseNode()
485 if (!Parents) in getParents()
488 Parents = std::make_unique<ParentMap>(ASTCtx); in getParents()
489 return Parents->getParents(getTraversalKind(), Node); in getParents()
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
H A DErrnoChecker.cpp74 const DynTypedNodeList Parents = ParentCtx.getParents(*S); in isInCondition() local
75 if (Parents.empty()) in isInCondition()
77 const auto *ParentS = Parents[0].get<Stmt>(); in isInCondition()
H A DDeadStoresChecker.cpp135 ParentMap& Parents; member in __anonfa4b2eb10211::DeadStoreObs
149 : cfg(cfg), Ctx(ctx), BR(br), Checker(checker), AC(ac), Parents(parents), in DeadStoreObs()
350 DeadStoreKind dsk = Parents.isConsumedExpr(B) in observeStmt()
361 const Stmt *parent = Parents.getParentIgnoreParenCasts(U); in observeStmt()
H A DArrayBoundChecker.cpp805 const DynTypedNodeList Parents = ParentCtx.getParents(*S); in isInAddressOf() local
806 if (Parents.empty()) in isInAddressOf()
808 S = Parents[0].get<Stmt>(); in isInAddressOf()
/freebsd/contrib/llvm-project/llvm/lib/DebugInfo/DWARF/
H A DDWARFUnit.cpp419 std::vector<uint32_t> Parents; in extractDIEsToVector() local
428 Parents.push_back(UINT32_MAX); in extractDIEsToVector()
430 Parents.push_back(0); in extractDIEsToVector()
435 assert(Parents.size() > 0 && "Empty parents stack"); in extractDIEsToVector()
436 assert((Parents.back() == UINT32_MAX || Parents.back() <= Dies.size()) && in extractDIEsToVector()
441 Parents.back())) in extractDIEsToVector()
474 Parents.push_back(Dies.size() - 1); in extractDIEsToVector()
482 Parents.pop_back(); in extractDIEsToVector()
490 } while (Parents.size() > 1); in extractDIEsToVector()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/AsmPrinter/
H A DDIEHash.cpp84 SmallVector<const DIE *, 1> Parents; in addParentContext() local
87 Parents.push_back(Cur); in addParentContext()
95 for (const DIE *Die : llvm::reverse(Parents)) { in addParentContext()
H A DDwarfUnit.cpp716 SmallVector<const DIScope *, 1> Parents; in getParentContextString() local
718 Parents.push_back(Context); in getParentContextString()
729 for (const DIScope *Ctx : llvm::reverse(Parents)) { in getParentContextString()
/freebsd/contrib/llvm-project/clang/lib/ASTMatchers/
H A DASTMatchFinder.cpp1170 DynTypedNodeList Parents{ArrayRef<DynTypedNode>()}; // after loop: size != 1 in matchesAnyAncestorOf() local
1190 Parents = ActiveASTContext->getParents(Node); in matchesAnyAncestorOf()
1193 if (Parents.size() != 1) in matchesAnyAncestorOf()
1197 Node = *Parents.begin(); in matchesAnyAncestorOf()
1206 if (Parents.empty()) { in matchesAnyAncestorOf()
1225 assert(Parents.size() > 1); in matchesAnyAncestorOf()
1229 std::deque<DynTypedNode> Queue(Parents.begin(), Parents.end()); in matchesAnyAncestorOf()
/freebsd/contrib/llvm-project/clang/include/clang/AST/
H A DParentMapContext.h72 std::unique_ptr<ParentMap> Parents; variable
/freebsd/contrib/llvm-project/llvm/lib/DWARFLinker/Parallel/
H A DSyntheticTypeNameBuilder.cpp211 SmallVector<UnitEntryPairTy, 10> Parents; in addParentName() local
213 Parents.push_back(*UnitEntryPair); in addParentName()
227 for (UnitEntryPairTy Parent : reverse(Parents)) { in addParentName()
/freebsd/contrib/llvm-project/llvm/include/llvm/DebugInfo/LogicalView/Core/
H A DLVOptions.h169 Parents, // --report=parents enumerator
410 REPORT_OPTION(Parents);
/freebsd/contrib/llvm-project/clang/lib/ExtractAPI/Serialization/
H A DSymbolGraphSerializer.cpp604 Array generateParentContexts(const SmallVectorImpl<SymbolReference> &Parents, in generateParentContexts() argument
608 for (const auto &Parent : Parents) { in generateParentContexts()
/freebsd/contrib/llvm-project/clang/include/clang/ASTMatchers/
H A DASTMatchers.h8388 const auto &Parents = Finder->getASTContext().getParents(Node); in AST_MATCHER_P() local
8390 llvm::SmallVector<DynTypedNode, 8> Stack(Parents.begin(), Parents.end()); in AST_MATCHER_P()
8438 const auto &Parents = Finder->getASTContext().getParents(Node); in AST_MATCHER_P() local
8440 llvm::SmallVector<DynTypedNode, 8> Stack(Parents.begin(), Parents.end()); in AST_MATCHER_P()
/freebsd/contrib/llvm-project/llvm/tools/llvm-debuginfo-analyzer/
H A DOptions.cpp256 clEnumValN(LVReportKind::Parents, "parents",
/freebsd/contrib/llvm-project/clang/utils/TableGen/
H A DClangDiagnosticsEmitter.cpp379 const std::vector<const Record *> &Parents = in compute() local
382 all_of(Parents, [&](const Record *R) { return groupInPedantic(R); }); in compute()
387 if (Parents.size() > 0 && AllParentsInPedantic) in compute()
/freebsd/sys/contrib/device-tree/Bindings/display/msm/
H A Ddsi.txt25 - assigned-clocks: Parents of "byte" and "pixel" for the given platform.
/freebsd/contrib/llvm-project/llvm/include/llvm/Support/
H A DVirtualFileSystem.h918 llvm::SmallVector<Entry *, 32> Parents; member
/freebsd/contrib/llvm-project/llvm/lib/Support/
H A DVirtualFileSystem.cpp2289 for (Entry *Parent : Parents) in getPath()
2327 Result->Parents = std::move(Entries); in lookupPath()