]> granicus.if.org Git - clang/commit
Added virtual method DiagnosticClient::IncludeInDiagnosticCounts(). This is used...
authorTed Kremenek <kremenek@apple.com>
Fri, 23 Jan 2009 20:28:53 +0000 (20:28 +0000)
committerTed Kremenek <kremenek@apple.com>
Fri, 23 Jan 2009 20:28:53 +0000 (20:28 +0000)
commitcabe66811fe43835b8c5a0854552768fc53261e3
tree0ce092634dcc21912dac2b2f972ab3146415fb58
parentd9fb9726613aba37553fcdb85d1ed0726f94b0e8
Added virtual method DiagnosticClient::IncludeInDiagnosticCounts().  This is used by Diagnostics to determine if a diagnostic sent to a given DiagnosticClient should be included in the count of diagnostics.  The default implementation of this method returns 'true'.

Implemented DiagCollector::IncludeInDiagnosticCounts() to return 'false' so that the batching of diagnostics for use with BugReporter doesn't mess up the count of real diagnostics.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@62873 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Analysis/PathSensitive/BugReporter.h
include/clang/Basic/Diagnostic.h
lib/Analysis/BugReporter.cpp
lib/Basic/Diagnostic.cpp