diff options
author | Hans Wennborg <hans@hanshq.net> | 2013-09-24 00:08:55 +0000 |
---|---|---|
committer | Hans Wennborg <hans@hanshq.net> | 2013-09-24 00:08:55 +0000 |
commit | 89e32745123c02159fa1d1f19f96bdd4173029f0 (patch) | |
tree | b2e1a18c22cc8a06a69c9be5d82cffe1b1c3915c /include/clang/Frontend/TextDiagnostic.h | |
parent | 06b52b41a98fff69c1c68baf24316eafd8d5a47b (diff) |
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
Diffstat (limited to 'include/clang/Frontend/TextDiagnostic.h')
-rw-r--r-- | include/clang/Frontend/TextDiagnostic.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/clang/Frontend/TextDiagnostic.h b/include/clang/Frontend/TextDiagnostic.h index 656aa57e6e..c8d01b0b15 100644 --- a/include/clang/Frontend/TextDiagnostic.h +++ b/include/clang/Frontend/TextDiagnostic.h @@ -51,7 +51,8 @@ public: /// TextDiagnostic logic requires. static void printDiagnosticLevel(raw_ostream &OS, DiagnosticsEngine::Level Level, - bool ShowColors); + bool ShowColors, + bool CLFallbackMode = false); /// \brief Pretty-print a diagnostic message to a raw_ostream. /// |