aboutsummaryrefslogtreecommitdiff
path: root/include/clang/Frontend/SerializedDiagnosticPrinter.h
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2011-12-07 05:52:12 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2011-12-07 05:52:12 +0000
commit29f2787b6da552018a7716f18f5bd8f67bd6edb5 (patch)
tree59d30fc036a92926c58876d497b1ece1e63ce5b4 /include/clang/Frontend/SerializedDiagnosticPrinter.h
parent68478b0cc1ff03c0d13ceca6800c5becf08791e7 (diff)
Make changes to SDiagsWriter to make it work in combination with the ARC migrator:
-Allow it to be used with multiple BeginSourceFile/EndSourceFile calls; for this introduce a "finish" callback method in the DiagnosticConsumer. SDiagsWriter finishes up the serialization file inside this method. -Make it independent of any particular DiagnosticsEngine; make it use the SourceManager of the Diagnostic object. -Ignore null source ranges. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@146020 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Frontend/SerializedDiagnosticPrinter.h')
-rw-r--r--include/clang/Frontend/SerializedDiagnosticPrinter.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/include/clang/Frontend/SerializedDiagnosticPrinter.h b/include/clang/Frontend/SerializedDiagnosticPrinter.h
index af4390fb12..c4f2322141 100644
--- a/include/clang/Frontend/SerializedDiagnosticPrinter.h
+++ b/include/clang/Frontend/SerializedDiagnosticPrinter.h
@@ -52,8 +52,7 @@ enum RecordIDs {
/// This allows wrapper tools for Clang to get diagnostics from Clang
/// (via libclang) without needing to parse Clang's command line output.
///
-DiagnosticConsumer *create(llvm::raw_ostream *OS,
- DiagnosticsEngine &Diags);
+DiagnosticConsumer *create(llvm::raw_ostream *OS);
} // end serialized_diags namespace
} // end clang namespace