Home
last modified time | relevance | path

Searched refs:SelectedASTNode (Results 1 – 5 of 5) sorted by relevance

/freebsd-14.2/contrib/llvm-project/clang/include/clang/Tooling/Refactoring/
H A DASTSelection.h52 struct SelectedASTNode { struct
55 std::vector<SelectedASTNode> Children; argument
59 SelectedASTNode(SelectedASTNode &&) = default;
60 SelectedASTNode &operator=(SelectedASTNode &&) = default; argument
64 using ReferenceType = std::reference_wrapper<const SelectedASTNode>; argument
102 ArrayRef<SelectedASTNode::ReferenceType> getParents() { return Parents; } in getParents()
135 create(SourceRange SelectionRange, const SelectedASTNode &ASTSelection);
138 CodeRangeASTSelection(SelectedASTNode::ReferenceType SelectedNode, in CodeRangeASTSelection()
139 ArrayRef<SelectedASTNode::ReferenceType> Parents, in CodeRangeASTSelection()
146 SelectedASTNode::ReferenceType SelectedNode;
[all …]
H A DRefactoringRuleContext.h65 void setASTSelection(std::unique_ptr<SelectedASTNode> Node) { in setASTSelection()
83 std::unique_ptr<SelectedASTNode> ASTNodeSelection;
H A DRefactoringActionRuleRequirements.h62 Expected<SelectedASTNode> evaluate(RefactoringRuleContext &Context) const;
/freebsd-14.2/contrib/llvm-project/clang/lib/Tooling/Refactoring/
H A DASTSelection.cpp54 std::optional<SelectedASTNode> getSelectedASTNode() { in getSelectedASTNode()
56 SelectedASTNode Result = std::move(SelectionStack.back()); in getSelectedASTNode()
98 SelectedASTNode(DynTypedNode::create(*D), SelectionKind)); in TraverseDecl()
126 SelectedASTNode(DynTypedNode::create(*S), SelectionKind)); in TraverseStmt()
134 SelectedASTNode Node = std::move(SelectionStack.back()); in popAndAddToSelectionIfSelected()
173 std::vector<SelectedASTNode> SelectionStack;
182 std::optional<SelectedASTNode>
252 SelectedASTNode::ReferenceType Node;
253 llvm::SmallVector<SelectedASTNode::ReferenceType, 8> Parents;
342 const SelectedASTNode &ASTSelection, in findDeepestWithKind()
[all …]
H A DASTSelectionRequirements.cpp16 Expected<SelectedASTNode>
24 std::optional<SelectedASTNode> Selection = in evaluate()
35 Expected<SelectedASTNode> ASTSelection = in evaluate()
39 std::unique_ptr<SelectedASTNode> StoredSelection = in evaluate()
40 std::make_unique<SelectedASTNode>(std::move(*ASTSelection)); in evaluate()