21 #include "llvm/Support/FileSystem.h"
22 #include "llvm/Support/Path.h"
23 #include "llvm/Support/raw_os_ostream.h"
30 std::shared_ptr<PCHContainerOperations> PCHContainerOps)
31 :
ClangTool(Compilations, SourcePaths, PCHContainerOps) {}
45 &*DiagOpts, &DiagnosticPrinter,
false);
47 Rewriter Rewrite(Sources, DefaultLangOptions);
50 llvm::errs() <<
"Skipped some replacements.\n";
53 return saveRewrittenFiles(Rewrite);
60 int RefactoringTool::saveRewrittenFiles(
Rewriter &Rewrite) {
Defines the clang::FileManager interface and associated types.
Defines the SourceManager interface.
Keeps track of the various options that can be enabled, which controls the dialect of C or C++ that i...
Concrete class used by the front-end to report problems and issues.
The result type of a method or function.
bool overwriteChangedFiles()
Options for controlling the compiler diagnostics engine.
Used for handling and querying diagnostic IDs.
This class handles loading and caching of source files into memory.