]> granicus.if.org Git - clang/commitdiff
Added version of "getClient()" for class Diagnostic that returns a non-const
authorTed Kremenek <kremenek@apple.com>
Mon, 14 Apr 2008 17:37:31 +0000 (17:37 +0000)
committerTed Kremenek <kremenek@apple.com>
Mon, 14 Apr 2008 17:37:31 +0000 (17:37 +0000)
reference to the DiagnosticClient.  This is useful for DiagnosticClients
that have internal state when processing diagnostics.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@49656 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Basic/Diagnostic.h

index 2b6528b86899ef183ad9fa4aa9b70d1745c6ddcc..4307955b2cf7c37ed2edc36558cbb184d886d11f 100644 (file)
@@ -82,6 +82,9 @@ public:
   //===--------------------------------------------------------------------===//
   //  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