diff options
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2010-11-18 20:06:46 +0000 |
---|---|---|
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2010-11-18 20:06:46 +0000 |
commit | f2224d89a6ae65a3839529e26d0f6d025d83d6bb (patch) | |
tree | 31801a351dd849d50a1922a2326db3c828d96ffb /lib/Checker/PathDiagnostic.cpp | |
parent | 33e4e70c8c0a17e0ccb7465d96556b077a68ecb1 (diff) |
Since multiple diagnostics can share one diagnostic client, have the client keeping track
of the total number of warnings/errors reported.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@119731 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Checker/PathDiagnostic.cpp')
-rw-r--r-- | lib/Checker/PathDiagnostic.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Checker/PathDiagnostic.cpp b/lib/Checker/PathDiagnostic.cpp index 1ddc08ee43..0f0dddc6d7 100644 --- a/lib/Checker/PathDiagnostic.cpp +++ b/lib/Checker/PathDiagnostic.cpp @@ -84,6 +84,8 @@ PathDiagnostic::PathDiagnostic(llvm::StringRef bugtype, llvm::StringRef desc, void PathDiagnosticClient::HandleDiagnostic(Diagnostic::Level DiagLevel, const DiagnosticInfo &Info) { + // Default implementation (Warnings/errors count). + DiagnosticClient::HandleDiagnostic(DiagLevel, Info); // Create a PathDiagnostic with a single piece. |