Searched refs:SelectedASTNode (Results 1 – 6 of 6) sorted by relevance
/external/llvm-project/clang/include/clang/Tooling/Refactoring/ |
D | ASTSelection.h | 51 struct SelectedASTNode { struct 54 std::vector<SelectedASTNode> Children; argument 56 SelectedASTNode(const DynTypedNode &Node, SourceSelectionKind SelectionKind) 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, 101 ArrayRef<SelectedASTNode::ReferenceType> getParents() { return Parents; } in getParents() 134 create(SourceRange SelectionRange, const SelectedASTNode &ASTSelection); 137 CodeRangeASTSelection(SelectedASTNode::ReferenceType SelectedNode, in CodeRangeASTSelection() [all …]
|
D | RefactoringRuleContext.h | 65 void setASTSelection(std::unique_ptr<SelectedASTNode> Node) { in setASTSelection() 83 std::unique_ptr<SelectedASTNode> ASTNodeSelection;
|
D | RefactoringActionRuleRequirements.h | 62 Expected<SelectedASTNode> evaluate(RefactoringRuleContext &Context) const;
|
/external/llvm-project/clang/unittests/Tooling/ |
D | ASTSelectionTest.cpp | 32 Optional<SelectedASTNode>)> 39 Optional<SelectedASTNode>)> in SelectionFinderVisitor() 69 Optional<SelectedASTNode>)> in findSelectedASTNodesWithRange() 79 llvm::function_ref<void(Optional<SelectedASTNode>)> Consumer, in findSelectedASTNodes() 84 [&](SourceRange, Optional<SelectedASTNode> Selection) { in findSelectedASTNodes() 90 void checkNodeImpl(bool IsTypeMatched, const SelectedASTNode &Node, in checkNodeImpl() 97 void checkDeclName(const SelectedASTNode &Node, StringRef Name) { in checkDeclName() 104 const SelectedASTNode &checkNode( in checkNode() 105 const SelectedASTNode &StmtNode, SourceSelectionKind SelectionKind, in checkNode() 115 const SelectedASTNode &checkNode( in checkNode() [all …]
|
/external/llvm-project/clang/lib/Tooling/Refactoring/ |
D | ASTSelection.cpp | 49 SelectedASTNode(DynTypedNode::create(*Context.getTranslationUnitDecl()), in ASTSelectionFinder() 53 Optional<SelectedASTNode> getSelectedASTNode() { in getSelectedASTNode() 55 SelectedASTNode Result = std::move(SelectionStack.back()); in getSelectedASTNode() 97 SelectedASTNode(DynTypedNode::create(*D), SelectionKind)); in TraverseDecl() 125 SelectedASTNode(DynTypedNode::create(*S), SelectionKind)); in TraverseStmt() 133 SelectedASTNode Node = std::move(SelectionStack.back()); in popAndAddToSelectionIfSelected() 172 std::vector<SelectedASTNode> SelectionStack; 181 Optional<SelectedASTNode> 215 static void dump(const SelectedASTNode &Node, llvm::raw_ostream &OS, in dump() 230 void SelectedASTNode::dump(llvm::raw_ostream &OS) const { ::dump(*this, OS); } in dump() [all …]
|
D | ASTSelectionRequirements.cpp | 15 Expected<SelectedASTNode> 23 Optional<SelectedASTNode> Selection = in evaluate() 34 Expected<SelectedASTNode> ASTSelection = in evaluate() 38 std::unique_ptr<SelectedASTNode> StoredSelection = in evaluate() 39 std::make_unique<SelectedASTNode>(std::move(*ASTSelection)); in evaluate()
|