[PATCH] Initial attempt to restructure libTooling and move parts out that don't need to depend on lib/AST.
Manuel Klimek
klimek at google.com
Mon Oct 27 21:18:51 PDT 2014
================
Comment at: lib/Tooling/Core/Replacement.cpp:257-262
@@ +256,8 @@
+
+std::string applyAllReplacements(StringRef Code, const Replacements &Replaces) {
+ FileManager Files((FileSystemOptions()));
+ DiagnosticsEngine Diagnostics(
+ IntrusiveRefCntPtr<DiagnosticIDs>(new DiagnosticIDs),
+ new DiagnosticOptions);
+ SourceManager SourceMgr(Diagnostics, Files);
+ Rewriter Rewrite(SourceMgr, LangOptions());
----------------
Am I missing something or did you also cut the dependency on TextDiagnosticPrinter?
http://reviews.llvm.org/D5973
More information about the cfe-commits
mailing list