]> granicus.if.org Git - clang/commit
clang-cl: print diagnostics as "error(clang): foo" in /fallback mode
authorHans Wennborg <hans@hanshq.net>
Tue, 24 Sep 2013 00:08:55 +0000 (00:08 +0000)
committerHans Wennborg <hans@hanshq.net>
Tue, 24 Sep 2013 00:08:55 +0000 (00:08 +0000)
commit89e32745123c02159fa1d1f19f96bdd4173029f0
treeb2e1a18c22cc8a06a69c9be5d82cffe1b1c3915c
parent06b52b41a98fff69c1c68baf24316eafd8d5a47b
clang-cl: print diagnostics as "error(clang): foo" in /fallback mode

This solves two problems:

1) MSBuild will not flag the build as unsuccessful just because we print
   an error in the output, since "error(clang):" doesn't seem to match
   the regex it's using.

2) It becomes more clear that the diagnostic is coming from clang as
   supposed to cl.exe.

Differential Revision: http://llvm-reviews.chandlerc.com/D1735

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@191250 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/DiagnosticOptions.def
include/clang/Frontend/TextDiagnostic.h
lib/Driver/Tools.cpp
lib/Frontend/CompilerInvocation.cpp
lib/Frontend/TextDiagnostic.cpp
lib/Frontend/TextDiagnosticPrinter.cpp
test/Driver/cl-fallback.c
test/Misc/diag-format.c