forked from OSchip/llvm-project
Revert r222363: "[clang-tidy] Count errors in ClangTidyDiagnosticConsumer"
This was causing clang-tidy invocations that would previously pass despite source errors to fail. llvm-svn: 222390
This commit is contained in:
parent
d93189b80a
commit
b4986e5a44
|
@ -277,9 +277,6 @@ void ClangTidyDiagnosticConsumer::finalizeLastError() {
|
|||
|
||||
void ClangTidyDiagnosticConsumer::HandleDiagnostic(
|
||||
DiagnosticsEngine::Level DiagLevel, const Diagnostic &Info) {
|
||||
// Count warnings/errors.
|
||||
DiagnosticConsumer::HandleDiagnostic(DiagLevel, Info);
|
||||
|
||||
if (DiagLevel == DiagnosticsEngine::Note) {
|
||||
assert(!Errors.empty() &&
|
||||
"A diagnostic note can only be appended to a message.");
|
||||
|
|
|
@ -6,7 +6,7 @@ struct A {
|
|||
virtual void f() {}
|
||||
virtual void g() {}
|
||||
};
|
||||
// CHECK-NOT: warning:
|
||||
// CHECK-NOT: warning
|
||||
struct B : public A {
|
||||
void placeholder_for_f() {}
|
||||
// CHECK-SANITY: [[@LINE-1]]:8: warning: Annotate this
|
||||
|
|
Loading…
Reference in New Issue