Home
last modified time | relevance | path

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

/freebsd-12.1/contrib/llvm/tools/clang/include/clang/Tooling/Refactoring/
H A DASTSelection.h50 struct SelectedASTNode { struct
53 std::vector<SelectedASTNode> Children; argument
55 SelectedASTNode(const ast_type_traits::DynTypedNode &Node, in SelectedASTNode() function
58 SelectedASTNode(SelectedASTNode &&) = default;
59 SelectedASTNode &operator=(SelectedASTNode &&) = default; argument
63 using ReferenceType = std::reference_wrapper<const SelectedASTNode>; argument
70 Optional<SelectedASTNode> findSelectedASTNodes(const ASTContext &Context,
137 CodeRangeASTSelection(SelectedASTNode::ReferenceType SelectedNode, in CodeRangeASTSelection()
138 ArrayRef<SelectedASTNode::ReferenceType> Parents, in CodeRangeASTSelection()
145 SelectedASTNode::ReferenceType SelectedNode;
[all …]
H A DRefactoringRuleContext.h66 void setASTSelection(std::unique_ptr<SelectedASTNode> Node) { in setASTSelection()
84 std::unique_ptr<SelectedASTNode> ASTNodeSelection;
H A DRefactoringActionRuleRequirements.h63 Expected<SelectedASTNode> evaluate(RefactoringRuleContext &Context) const;
/freebsd-12.1/contrib/llvm/tools/clang/lib/Tooling/Refactoring/
H A DASTSelection.cpp55 Optional<SelectedASTNode> getSelectedASTNode() { in getSelectedASTNode()
57 SelectedASTNode Result = std::move(SelectionStack.back()); in getSelectedASTNode()
99 SelectedASTNode(DynTypedNode::create(*D), SelectionKind)); in TraverseDecl()
127 SelectedASTNode(DynTypedNode::create(*S), SelectionKind)); in TraverseStmt()
135 SelectedASTNode Node = std::move(SelectionStack.back()); in popAndAddToSelectionIfSelected()
174 std::vector<SelectedASTNode> SelectionStack;
183 Optional<SelectedASTNode>
253 SelectedASTNode::ReferenceType Node;
254 llvm::SmallVector<SelectedASTNode::ReferenceType, 8> Parents;
343 const SelectedASTNode &ASTSelection, in findDeepestWithKind()
[all …]
H A DASTSelectionRequirements.cpp15 Expected<SelectedASTNode>
23 Optional<SelectedASTNode> Selection = in evaluate()
34 Expected<SelectedASTNode> ASTSelection = in evaluate()
38 std::unique_ptr<SelectedASTNode> StoredSelection = in evaluate()
39 llvm::make_unique<SelectedASTNode>(std::move(*ASTSelection)); in evaluate()