Home
last modified time | relevance | path

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

/llvm-project-15.0.7/clang/lib/Tooling/Refactoring/
H A 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()
H A 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()
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()
380 const SelectedASTNode &ASTSelection) { in create() argument
[all …]
H A DCMakeLists.txt4 ASTSelection.cpp
/llvm-project-15.0.7/clang-tools-extra/clangd/refactor/tweaks/
H A 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()
H A DExpandAutoType.cpp91 if (auto *Node = Inputs.ASTSelection.commonAncestor()) { in prepare()
138 Inputs.ASTSelection.commonAncestor()->getDeclContext()); in apply()
H A DAddUsing.cpp138 UsingFinder(Usings, &Inputs.ASTSelection.commonAncestor()->getDeclContext(), in findInsertionPoint()
181 &Inputs.ASTSelection.commonAncestor()->getDeclContext(); in findInsertionPoint()
244 auto *Node = Inputs.ASTSelection.commonAncestor(); in prepare()
H A DObjCLocalizeStringLiteral.cpp49 const SelectionTree::Node *N = Inputs.ASTSelection.commonAncestor(); in REGISTER_TWEAK()
H A DRawStringLiteral.cpp75 const SelectionTree::Node *N = Inputs.ASTSelection.commonAncestor(); in prepare()
H A DObjCMemberwiseInitializer.cpp197 const SelectionTree::Node *N = Inputs.ASTSelection.commonAncestor(); in REGISTER_TWEAK()
267 const SelectionTree::Node *N = Inputs.ASTSelection.commonAncestor(); in apply()
H A DSwapIfBranches.cpp51 for (const SelectionTree::Node *N = Inputs.ASTSelection.commonAncestor(); in REGISTER_TWEAK()
H A DAnnotateHighlightings.cpp41 for (auto *N = Inputs.ASTSelection.commonAncestor(); N && !CommonDecl; in REGISTER_TWEAK()
H A DSpecialMembers.cpp104 if (auto *N = Inputs.ASTSelection.commonAncestor()) in prepare()
H A DRemoveUsingNamespace.cpp106 auto *CA = Inputs.ASTSelection.commonAncestor(); in prepare()
H A DPopulateSwitch.cpp86 const SelectionTree::Node *CA = Sel.ASTSelection.commonAncestor(); in REGISTER_TWEAK()
H A DMemberwiseConstructor.cpp49 if (auto *N = Inputs.ASTSelection.commonAncestor()) in prepare()
H A DDefineOutline.cpp383 Source = getSelectedFunction(Sel.ASTSelection.commonAncestor()); in prepare()
H A DDefineInline.cpp400 const SelectionTree::Node *SelNode = Sel.ASTSelection.commonAncestor(); in prepare()
H A DExtractVariable.cpp510 computeExtractedExpr(Inputs.ASTSelection.commonAncestor())) in REGISTER_TWEAK()
H A DExtractFunction.cpp867 const Node *CommonAnc = Inputs.ASTSelection.commonAncestor(); in prepare()
/llvm-project-15.0.7/clang-tools-extra/clangd/refactor/
H A DTweak.cpp63 SelectionTree ASTSelection, in Selection() argument
66 SelectionEnd(RangeEnd), ASTSelection(std::move(ASTSelection)), FS(FS) { in Selection()
H A DTweak.h51 unsigned RangeEnd, SelectionTree ASTSelection,
67 SelectionTree ASTSelection; member
/llvm-project-15.0.7/llvm/utils/gn/secondary/clang/lib/Tooling/Refactoring/
H A DBUILD.gn17 "ASTSelection.cpp",
/llvm-project-15.0.7/clang/include/clang/Tooling/Refactoring/
H A DASTSelection.h134 create(SourceRange SelectionRange, const SelectedASTNode &ASTSelection);
/llvm-project-15.0.7/clang/docs/tools/
H A Dclang-formatted-files.txt270 clang/include/clang/Tooling/Refactoring/ASTSelection.h
579 clang/lib/Tooling/Refactoring/ASTSelection.cpp