[cfe-commits] r49656 - /cfe/trunk/include/clang/Basic/Diagnostic.h
Ted Kremenek
kremenek at apple.com
Mon Apr 14 10:37:32 PDT 2008
Author: kremenek
Date: Mon Apr 14 12:37:31 2008
New Revision: 49656
URL: http://llvm.org/viewvc/llvm-project?rev=49656&view=rev
Log:
Added version of "getClient()" for class Diagnostic that returns a non-const
reference to the DiagnosticClient. This is useful for DiagnosticClients
that have internal state when processing diagnostics.
Modified:
cfe/trunk/include/clang/Basic/Diagnostic.h
Modified: cfe/trunk/include/clang/Basic/Diagnostic.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Basic/Diagnostic.h?rev=49656&r1=49655&r2=49656&view=diff
==============================================================================
--- cfe/trunk/include/clang/Basic/Diagnostic.h (original)
+++ cfe/trunk/include/clang/Basic/Diagnostic.h Mon Apr 14 12:37:31 2008
@@ -82,6 +82,9 @@
//===--------------------------------------------------------------------===//
// Diagnostic characterization methods, used by a client to customize how
//
+
+ DiagnosticClient &getClient() { return Client; };
+
const DiagnosticClient &getClient() const { return Client; };
/// setWarningsAsErrors - When set to true, any warnings reported are issued
More information about the cfe-commits
mailing list