llvm-project/clang/lib/Tooling
Yitzhak Mandelbaum 9c54f6154f [libTooling] Add function to determine associated text of a declaration.
Summary:
This patch adds `getAssociatedRange` which, for a given decl, computes preceding
and trailing text that would conceptually be associated with the decl by the
reader. This includes comments, whitespace, and separators like ';'.

Reviewers: gribozavr

Subscribers: cfe-commits

Tags: #clang

Differential Revision: https://reviews.llvm.org/D72153
2020-02-25 16:37:20 -05:00
..
ASTDiff Remove clang::ast_type_traits namespace in favor of clang 2020-02-13 10:46:47 -08:00
Core Make llvm::StringRef to std::string conversions explicit. 2020-01-28 23:25:25 +01:00
DependencyScanning [Support] On Windows, ensure hardware_concurrency() extends to all CPU sockets and all NUMA groups 2020-02-14 10:24:22 -05:00
Inclusions Make llvm::StringRef to std::string conversions explicit. 2020-01-28 23:25:25 +01:00
Refactoring [clang-rename] Add the USR of incomplete decl to the USRSet. 2020-02-25 16:56:35 +01:00
Syntax Fix build after D72746 2020-02-06 08:55:19 +01:00
Transformer [libTooling] Add function to determine associated text of a declaration. 2020-02-25 16:37:20 -05:00
AllTUsExecution.cpp [Support] On Windows, ensure hardware_concurrency() extends to all CPU sockets and all NUMA groups 2020-02-14 10:24:22 -05:00
ArgumentsAdjusters.cpp Strength reduce vectors into arrays. NFCI. 2020-02-17 15:37:35 +01:00
CMakeLists.txt [clang][Tooling] Add support for .rsp files in compile_commands.json 2019-12-04 15:13:12 +01:00
CommonOptionsParser.cpp [Clang] Migrate llvm::make_unique to std::make_unique 2019-08-14 23:04:18 +00:00
CompilationDatabase.cpp Make llvm::StringRef to std::string conversions explicit. 2020-01-28 23:25:25 +01:00
Execution.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
ExpandResponseFilesCompilationDatabase.cpp [clang][Tooling] Fix potential UB in ExpandResponseFilesCompilationDatabase 2019-12-09 12:24:23 +01:00
FileMatchTrie.cpp Make llvm::StringRef to std::string conversions explicit. 2020-01-28 23:25:25 +01:00
FixIt.cpp [LibTooling] Add "SourceCode" library for functions relating to source-code manipulation. 2019-04-05 14:05:03 +00:00
GuessTargetAndModeCompilationDatabase.cpp [Clang] Migrate llvm::make_unique to std::make_unique 2019-08-14 23:04:18 +00:00
InterpolatingCompilationDatabase.cpp Make llvm::StringRef to std::string conversions explicit. 2020-01-28 23:25:25 +01:00
JSONCompilationDatabase.cpp Make llvm::StringRef to std::string conversions explicit. 2020-01-28 23:25:25 +01:00
Refactoring.cpp [clang] Adopt new FileManager error-returning APIs 2019-08-01 21:31:56 +00:00
RefactoringCallbacks.cpp Make llvm::StringRef to std::string conversions explicit. 2020-01-28 23:25:25 +01:00
StandaloneExecution.cpp [Clang] Migrate llvm::make_unique to std::make_unique 2019-08-14 23:04:18 +00:00
Tooling.cpp [libTooling] Add option for `buildAST` to report diagnostics. 2020-02-18 09:11:51 -05:00