summaryrefslogtreecommitdiffstats
path: root/clang/tools/libclang/CIndexDiagnostic.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2010-10-12 00:50:20 +0000
committerDouglas Gregor <dgregor@apple.com>2010-10-12 00:50:20 +0000
commit7bb8af613cc78ddf049d44ce3a28a992788df281 (patch)
tree3f8da12531f6f6b7eaff524675faf97714bfa444 /clang/tools/libclang/CIndexDiagnostic.cpp
parentdb3bcc99105f45d56d244ea52792e937e8493583 (diff)
downloadbcm5719-llvm-7bb8af613cc78ddf049d44ce3a28a992788df281.tar.gz
bcm5719-llvm-7bb8af613cc78ddf049d44ce3a28a992788df281.zip
When we load an ASTUnit from command-line arguments, hold on to the
diagnostics produced by the driver itself. Previously, we were allowing these to either be dropped or to slip through to stderr. Fixes <rdar://problem/7595339>. llvm-svn: 116285
Diffstat (limited to 'clang/tools/libclang/CIndexDiagnostic.cpp')
-rw-r--r--clang/tools/libclang/CIndexDiagnostic.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/clang/tools/libclang/CIndexDiagnostic.cpp b/clang/tools/libclang/CIndexDiagnostic.cpp
index 85f451e8554..0766548418e 100644
--- a/clang/tools/libclang/CIndexDiagnostic.cpp
+++ b/clang/tools/libclang/CIndexDiagnostic.cpp
@@ -56,10 +56,6 @@ CXString clang_formatDiagnostic(CXDiagnostic Diagnostic, unsigned Options) {
CXDiagnosticSeverity Severity = clang_getDiagnosticSeverity(Diagnostic);
- // Ignore diagnostics that should be ignored.
- if (Severity == CXDiagnostic_Ignored)
- return createCXString("");
-
llvm::SmallString<256> Str;
llvm::raw_svector_ostream Out(Str);
@@ -101,9 +97,9 @@ CXString clang_formatDiagnostic(CXDiagnostic Diagnostic, unsigned Options) {
if (PrintedRange)
Out << ":";
}
+
+ Out << " ";
}
-
- Out << " ";
}
/* Print warning/error/etc. */
OpenPOWER on IntegriCloud