llvm-project/clang/lib/Tooling
Yitzhak Mandelbaum ff2743bf04 [libTooling] In Transformer, allow atomic changes to span multiple files.
Summary:
Currently, all changes returned by a single application of a rule must fit in
one atomic change and therefore must apply to one file. However, there are
patterns in which a single rule will want to modify multiple files; for example,
a header and implementation to change a declaration and its definition. This
patch relaxes Transformer, libTooling's interpreter of RewriteRules, to support
multiple changes.

Reviewers: gribozavr

Subscribers: mgrang, jfb, cfe-commits

Tags: #clang

Differential Revision: https://reviews.llvm.org/D80239
2020-05-26 09:17:35 -04:00
..
ASTDiff Avoid SourceManager.h include in RawCommentList.h, add missing incs 2020-02-27 13:49:40 -08:00
Core [AST] Remove DeclCXX.h dep on ASTContext.h 2020-04-06 10:09:01 -07: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 Avoid including FileManager.h from SourceManager.h 2020-03-11 13:53:12 -07:00
Refactoring Avoid SourceManager.h include in RawCommentList.h, add missing incs 2020-02-27 13:49:40 -08:00
Syntax Add support for binary operators in Syntax Trees 2020-05-26 12:25:58 +02:00
Transformer [libTooling] In Transformer, allow atomic changes to span multiple files. 2020-05-26 09:17:35 -04:00
AllTUsExecution.cpp Prune TargetInfo.h include from ParsedAttr.h, NFC 2020-03-11 20:47:11 -07:00
ArgumentsAdjusters.cpp Strip -showIncludes in getClangStripDependencyFileAdjuster() 2020-04-27 11:20:08 -07:00
CMakeLists.txt [OpenMP] "UnFix" layering problem with FrontendOpenMP 2020-04-07 14:41:18 -05:00
CommonOptionsParser.cpp [Clang] Migrate llvm::make_unique to std::make_unique 2019-08-14 23:04:18 +00:00
CompilationDatabase.cpp [Tooling] Drop leading/trailing whitespace from compile_flags.txt lines 2020-05-19 11:20:02 +02: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 Remove unused Endian.h includes, NFC 2020-03-11 15:45:34 -07: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 Fix syntax error 2020-04-09 13:46:23 -07: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