From: Ted Kremenek Date: Mon, 14 Apr 2008 17:37:31 +0000 (+0000) Subject: Added version of "getClient()" for class Diagnostic that returns a non-const X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2bf78fba7a37a42d4295999706053fdf4c9625e2;p=clang 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. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@49656 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/Basic/Diagnostic.h b/include/clang/Basic/Diagnostic.h index 2b6528b868..4307955b2c 100644 --- a/include/clang/Basic/Diagnostic.h +++ b/include/clang/Basic/Diagnostic.h @@ -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