| /llvm-project-15.0.7/clang/unittests/Tooling/ |
| H A D | ASTSelectionTest.cpp | 30 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 D | ASTSelection.cpp | 183 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 D | RefactoringRuleContext.h | 41 SourceRange getSelectionRange() const { return SelectionRange; } in getSelectionRange() 43 void setSelectionRange(SourceRange R) { SelectionRange = R; } in setSelectionRange() 75 SourceRange SelectionRange; variable
|
| H A D | ASTSelection.h | 71 SourceRange SelectionRange); 134 create(SourceRange SelectionRange, const SelectedASTNode &ASTSelection);
|
| /llvm-project-15.0.7/clang-tools-extra/clangd/ |
| H A D | SemanticSelection.cpp | 110 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 D | SemanticSelection.h | 27 llvm::Expected<SelectionRange> getSemanticRanges(ParsedAST &AST, Position Pos);
|
| H A D | Protocol.h | 1725 struct SelectionRange { struct 1734 std::unique_ptr<SelectionRange> parent; argument 1736 llvm::json::Value toJSON(const SelectionRange &);
|
| H A D | ClangdServer.h | 355 Callback<std::vector<SelectionRange>> CB);
|
| H A D | ClangdLSPServer.h | 161 Callback<std::vector<SelectionRange>>);
|
| H A D | ClangdServer.cpp | 912 Callback<std::vector<SelectionRange>> CB) { in semanticRanges() 917 std::vector<SelectionRange> Result; in semanticRanges()
|
| H A D | ClangdLSPServer.cpp | 1439 Callback<std::vector<SelectionRange>> Reply) { in onSelectionRange() 1443 llvm::Expected<std::vector<SelectionRange>> Ranges) mutable { in onSelectionRange()
|
| H A D | Protocol.cpp | 1418 llvm::json::Value toJSON(const SelectionRange &Out) { in toJSON()
|
| /llvm-project-15.0.7/clang-tools-extra/clangd/unittests/ |
| H A D | SemanticSelectionTests.cpp | 31 std::vector<Range> gatherRanges(const SelectionRange &SR) { in gatherRanges() 33 for (const SelectionRange *S = &SR; S; S = S->parent.get()) in gatherRanges()
|
| H A D | SyncAPI.cpp | 145 llvm::Expected<std::vector<SelectionRange>> 148 llvm::Optional<llvm::Expected<std::vector<SelectionRange>>> Result; in runSemanticRanges()
|
| H A D | SyncAPI.h | 61 llvm::Expected<std::vector<SelectionRange>>
|
| /llvm-project-15.0.7/clang/lib/Tooling/Refactoring/Rename/ |
| H A D | RenamingAction.cpp | 67 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 D | RenamingAction.h | 51 SourceRange SelectionRange,
|