Home
last modified time | relevance | path

Searched refs:ASTSelection (Results 1 – 20 of 20) sorted by relevance

/external/llvm-project/clang/lib/Tooling/Refactoring/
DASTSelectionRequirements.cpp34 Expected<SelectedASTNode> ASTSelection = in evaluate() local
36 if (!ASTSelection) in evaluate()
37 return ASTSelection.takeError(); in evaluate()
39 std::make_unique<SelectedASTNode>(std::move(*ASTSelection)); in evaluate()
DASTSelection.cpp341 const SelectedASTNode &ASTSelection, in findDeepestWithKind() argument
345 if (ASTSelection.Node.get<DeclStmt>()) { in findDeepestWithKind()
348 for (const auto &Child : ASTSelection.Children) { in findDeepestWithKind()
351 std::cref(ASTSelection), {ParentStack.begin(), ParentStack.end()}}); in findDeepestWithKind()
356 if (!hasAnyDirectChildrenWithKind(ASTSelection, Kind)) { in findDeepestWithKind()
359 std::cref(ASTSelection), {ParentStack.begin(), ParentStack.end()}}); in findDeepestWithKind()
364 ParentStack.push_back(std::cref(ASTSelection)); in findDeepestWithKind()
365 for (const auto &Child : ASTSelection.Children) in findDeepestWithKind()
371 const SelectedASTNode &ASTSelection, in findDeepestWithKind() argument
375 findDeepestWithKind(ASTSelection, MatchingNodes, Kind, ParentStack); in findDeepestWithKind()
[all …]
DCMakeLists.txt4 ASTSelection.cpp
/external/llvm-project/clang-tools-extra/clangd/refactor/
DTweak.cpp50 SelectionTree ASTSelection) in Selection() argument
52 SelectionEnd(RangeEnd), ASTSelection(std::move(ASTSelection)) { in Selection()
DTweak.h51 unsigned RangeEnd, SelectionTree ASTSelection);
66 SelectionTree ASTSelection; member
/external/llvm-project/clang-tools-extra/clangd/refactor/tweaks/
DDumpAST.cpp37 for (auto N = Inputs.ASTSelection.commonAncestor(); N && !Node; in prepare()
91 return Effect::showMessage(llvm::to_string(Inputs.ASTSelection)); in apply()
139 if (auto *Node = Inputs.ASTSelection.commonAncestor()) in prepare()
DExpandAutoType.cpp87 if (auto *Node = Inputs.ASTSelection.commonAncestor()) { in prepare()
126 Inputs.ASTSelection.commonAncestor()->getDeclContext()); in apply()
DAddUsing.cpp136 UsingFinder(Usings, &Inputs.ASTSelection.commonAncestor()->getDeclContext(), in findInsertionPoint()
179 &Inputs.ASTSelection.commonAncestor()->getDeclContext(); in findInsertionPoint()
242 auto *Node = Inputs.ASTSelection.commonAncestor(); in prepare()
DObjCLocalizeStringLiteral.cpp53 const SelectionTree::Node *N = Inputs.ASTSelection.commonAncestor(); in REGISTER_TWEAK()
DAnnotateHighlightings.cpp40 for (auto N = Inputs.ASTSelection.commonAncestor(); N && !CommonDecl; in REGISTER_TWEAK()
DRawStringLiteral.cpp83 const SelectionTree::Node *N = Inputs.ASTSelection.commonAncestor(); in prepare()
DSwapIfBranches.cpp54 for (const SelectionTree::Node *N = Inputs.ASTSelection.commonAncestor(); in REGISTER_TWEAK()
DRemoveUsingNamespace.cpp109 auto *CA = Inputs.ASTSelection.commonAncestor(); in prepare()
DPopulateSwitch.cpp87 const SelectionTree::Node *CA = Sel.ASTSelection.commonAncestor(); in REGISTER_TWEAK()
DDefineOutline.cpp374 Source = getSelectedFunction(Sel.ASTSelection.commonAncestor()); in prepare()
DDefineInline.cpp407 const SelectionTree::Node *SelNode = Sel.ASTSelection.commonAncestor(); in prepare()
DExtractVariable.cpp471 computeExtractedExpr(Inputs.ASTSelection.commonAncestor())) in REGISTER_TWEAK()
DExtractFunction.cpp736 const Node *CommonAnc = Inputs.ASTSelection.commonAncestor(); in prepare()
/external/llvm-project/llvm/utils/gn/secondary/clang/lib/Tooling/Refactoring/
DBUILD.gn17 "ASTSelection.cpp",
/external/llvm-project/clang/include/clang/Tooling/Refactoring/
DASTSelection.h134 create(SourceRange SelectionRange, const SelectedASTNode &ASTSelection);