Home
last modified time | relevance | path

Searched refs:SelectionRange (Results 1 – 17 of 17) sorted by relevance

/llvm-project-15.0.7/clang/unittests/Tooling/
H A DASTSelectionTest.cpp30 Optional<FileRange> SelectionRange; member in __anon6b093b3f0111::SelectionFinderVisitor
31 llvm::function_ref<void(SourceRange SelectionRange,
37 Optional<FileRange> SelectionRange, in SelectionFinderVisitor() argument
38 llvm::function_ref<void(SourceRange SelectionRange, in SelectionFinderVisitor() argument
41 : Location(Location), SelectionRange(SelectionRange), Consumer(Consumer) { in SelectionFinderVisitor()
49 if (SelectionRange) { in VisitTranslationUnitDecl()
50 SelRange = SourceRange(SelectionRange->first.translate(SM), in VisitTranslationUnitDecl()
51 SelectionRange->second.translate(SM)); in VisitTranslationUnitDecl()
68 llvm::function_ref<void(SourceRange SelectionRange, in findSelectedASTNodesWithRange() argument
73 SelectionFinderVisitor Visitor(Location, SelectionRange, Consumer); in findSelectedASTNodesWithRange()
[all …]
/llvm-project-15.0.7/clang/lib/Tooling/Refactoring/
H A DASTSelection.cpp183 SourceRange SelectionRange) { in findSelectedASTNodes() argument
184 assert(SelectionRange.isValid() && in findSelectedASTNodes()
185 SourceLocation::isPairOfFileLocations(SelectionRange.getBegin(), in findSelectedASTNodes()
186 SelectionRange.getEnd()) && in findSelectedASTNodes()
189 Context.getSourceManager().getFileID(SelectionRange.getBegin()); in findSelectedASTNodes()
190 assert(Context.getSourceManager().getFileID(SelectionRange.getEnd()) == in findSelectedASTNodes()
194 ASTSelectionFinder Visitor(SelectionRange, TargetFile, Context); in findSelectedASTNodes()
379 CodeRangeASTSelection::create(SourceRange SelectionRange, in create() argument
382 if (SelectionRange.getBegin() == SelectionRange.getEnd()) in create()
/llvm-project-15.0.7/clang/include/clang/Tooling/Refactoring/
H A DRefactoringRuleContext.h41 SourceRange getSelectionRange() const { return SelectionRange; } in getSelectionRange()
43 void setSelectionRange(SourceRange R) { SelectionRange = R; } in setSelectionRange()
75 SourceRange SelectionRange; variable
H A DASTSelection.h71 SourceRange SelectionRange);
134 create(SourceRange SelectionRange, const SelectedASTNode &ASTSelection);
/llvm-project-15.0.7/clang-tools-extra/clangd/
H A DSemanticSelection.cpp110 llvm::Expected<SelectionRange> getSemanticRanges(ParsedAST &AST, Position Pos) { in getSemanticRanges()
145 SelectionRange Empty; in getSemanticRanges()
151 SelectionRange Head; in getSemanticRanges()
153 SelectionRange *Tail = &Head; in getSemanticRanges()
156 Tail->parent = std::make_unique<SelectionRange>(); in getSemanticRanges()
H A DSemanticSelection.h27 llvm::Expected<SelectionRange> getSemanticRanges(ParsedAST &AST, Position Pos);
H A DProtocol.h1725 struct SelectionRange { struct
1734 std::unique_ptr<SelectionRange> parent; argument
1736 llvm::json::Value toJSON(const SelectionRange &);
H A DClangdServer.h355 Callback<std::vector<SelectionRange>> CB);
H A DClangdLSPServer.h161 Callback<std::vector<SelectionRange>>);
H A DClangdServer.cpp912 Callback<std::vector<SelectionRange>> CB) { in semanticRanges()
917 std::vector<SelectionRange> Result; in semanticRanges()
H A DClangdLSPServer.cpp1439 Callback<std::vector<SelectionRange>> Reply) { in onSelectionRange()
1443 llvm::Expected<std::vector<SelectionRange>> Ranges) mutable { in onSelectionRange()
H A DProtocol.cpp1418 llvm::json::Value toJSON(const SelectionRange &Out) { in toJSON()
/llvm-project-15.0.7/clang-tools-extra/clangd/unittests/
H A DSemanticSelectionTests.cpp31 std::vector<Range> gatherRanges(const SelectionRange &SR) { in gatherRanges()
33 for (const SelectionRange *S = &SR; S; S = S->parent.get()) in gatherRanges()
H A DSyncAPI.cpp145 llvm::Expected<std::vector<SelectionRange>>
148 llvm::Optional<llvm::Expected<std::vector<SelectionRange>>> Result; in runSemanticRanges()
H A DSyncAPI.h61 llvm::Expected<std::vector<SelectionRange>>
/llvm-project-15.0.7/clang/lib/Tooling/Refactoring/Rename/
H A DRenamingAction.cpp67 SourceRange SelectionRange, std::string NewName) { in initiate() argument
69 getNamedDeclAt(Context.getASTContext(), SelectionRange.getBegin()); in initiate()
72 SelectionRange.getBegin(), diag::err_refactor_selection_no_symbol); in initiate()
/llvm-project-15.0.7/clang/include/clang/Tooling/Refactoring/Rename/
H A DRenamingAction.h51 SourceRange SelectionRange,