]> granicus.if.org Git - clang/commit
Emit -verify diagnostics even when we have a fatal error.
authorJordan Rose <jordan_rose@apple.com>
Wed, 11 Jul 2012 16:50:36 +0000 (16:50 +0000)
committerJordan Rose <jordan_rose@apple.com>
Wed, 11 Jul 2012 16:50:36 +0000 (16:50 +0000)
commitc6d64a26c28bbeee50e06c94c4f4c08e610327b7
treebdaf1e7360cdd97c0e27d3a33062c902c42f3728
parent85663e7b40097b2f162f58ba9f4dae2d0f24f648
Emit -verify diagnostics even when we have a fatal error.

Previously we'd halt at the fatal error as expected, but not actually emit
any -verify-related diagnostics. This lets us catch cases that emit a
/different/ fatal error from the one we expected.

This is implemented by adding a "force emit" mode to DiagnosticBuilder, which
will cause diagnostics to immediately be emitted regardless of current
suppression. Needless to say this should probably be used /very/ sparingly.

Patch by Andy Gibbs! Tests for all of Andy's -verify patches coming soon.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@160053 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/Diagnostic.h
include/clang/Basic/DiagnosticIDs.h
lib/Basic/Diagnostic.cpp
lib/Basic/DiagnosticIDs.cpp
lib/Frontend/VerifyDiagnosticConsumer.cpp