Added ported VerifyDiagnosticConsumer from clang