summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend
diff options
context:
space:
mode:
authorHans Wennborg <hans@hanshq.net>2019-02-19 16:58:25 +0000
committerHans Wennborg <hans@hanshq.net>2019-02-19 16:58:25 +0000
commit27a7885228df4e449215679d1a063ddea00b6a27 (patch)
treee898715dca180c91a13f40780b5ef643a51aa0b4 /clang/lib/Frontend
parenta94e6d70f14f903b47d361161bd2b6bbbe071f85 (diff)
downloadbcm5719-llvm-27a7885228df4e449215679d1a063ddea00b6a27.tar.gz
bcm5719-llvm-27a7885228df4e449215679d1a063ddea00b6a27.zip
Remove extraneous space in MSVC-style diagnostic output
There was an extra space between the file location and the diagnostic message: /tmp/a.c(1,12): warning: unused parameter 'unused' the tests didn't catch this due to FileCheck not running in --strict-whitespace mode. Reported by Marco: http://lists.llvm.org/pipermail/cfe-dev/2019-February/061326.html Differential revision: https://reviews.llvm.org/D58377 llvm-svn: 354351
Diffstat (limited to 'clang/lib/Frontend')
-rw-r--r--clang/lib/Frontend/TextDiagnostic.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Frontend/TextDiagnostic.cpp b/clang/lib/Frontend/TextDiagnostic.cpp
index 0f7fb501ea3..719e77e03b8 100644
--- a/clang/lib/Frontend/TextDiagnostic.cpp
+++ b/clang/lib/Frontend/TextDiagnostic.cpp
@@ -837,7 +837,7 @@ void TextDiagnostic::emitDiagnosticLoc(FullSourceLoc Loc, PresumedLoc PLoc,
if (LangOpts.MSCompatibilityVersion &&
!LangOpts.isCompatibleWithMSVC(LangOptions::MSVC2015))
OS << ' ';
- OS << ": ";
+ OS << ':';
break;
}
OpenPOWER on IntegriCloud