aboutsummaryrefslogtreecommitdiff
path: root/include/clang/Frontend/TextDiagnosticBuffer.h
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-11-30 08:41:34 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-11-30 08:41:34 +0000
commitc238955f09f3bce9386e6553d5d12f79e8cc2b08 (patch)
treeaad8d6035755e9cec81c54a6900da1aa0936252e /include/clang/Frontend/TextDiagnosticBuffer.h
parent43030a79db7f1aa465b03fc3904e31127feebd7f (diff)
Add TextDiagnosticBuffer::FlushDiagnostics, for forwarding the buffered diagnostics to a different diagnostics engine.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@90125 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Frontend/TextDiagnosticBuffer.h')
-rw-r--r--include/clang/Frontend/TextDiagnosticBuffer.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/clang/Frontend/TextDiagnosticBuffer.h b/include/clang/Frontend/TextDiagnosticBuffer.h
index 4e907e1965..380a1dd224 100644
--- a/include/clang/Frontend/TextDiagnosticBuffer.h
+++ b/include/clang/Frontend/TextDiagnosticBuffer.h
@@ -41,6 +41,10 @@ public:
virtual void HandleDiagnostic(Diagnostic::Level DiagLevel,
const DiagnosticInfo &Info);
+
+ /// FlushDiagnostics - Flush the buffered diagnostics to an given
+ /// diagnostic engine.
+ void FlushDiagnostics(Diagnostic &Diags) const;
};
} // end namspace clang