diff options
author | Ted Kremenek <kremenek@apple.com> | 2008-04-14 17:37:31 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2008-04-14 17:37:31 +0000 |
commit | 2bf78fba7a37a42d4295999706053fdf4c9625e2 (patch) | |
tree | f83718afef39f83b080c92c3ffbdea7cea4d5a1c /include/clang/Basic | |
parent | e5cd857f7e71d5789df25d5046d104b93cf2a71c (diff) |
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
Diffstat (limited to 'include/clang/Basic')
-rw-r--r-- | include/clang/Basic/Diagnostic.h | 3 |
1 files changed, 3 insertions, 0 deletions
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 |