[Lldb-commits] [lldb] r117947 - /lldb/trunk/source/Expression/ClangExpressionParser.cpp
Sean Callanan
scallanan at apple.com
Mon Nov 1 13:28:09 PDT 2010
Author: spyffe
Date: Mon Nov 1 15:28:09 2010
New Revision: 117947
URL: http://llvm.org/viewvc/llvm-project?rev=117947&view=rev
Log:
Print notes for expressions as well as errors
and warnings.
Modified:
lldb/trunk/source/Expression/ClangExpressionParser.cpp
Modified: lldb/trunk/source/Expression/ClangExpressionParser.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Expression/ClangExpressionParser.cpp?rev=117947&r1=117946&r2=117947&view=diff
==============================================================================
--- lldb/trunk/source/Expression/ClangExpressionParser.cpp (original)
+++ lldb/trunk/source/Expression/ClangExpressionParser.cpp Mon Nov 1 15:28:09 2010
@@ -308,7 +308,7 @@
TextDiagnosticBuffer::const_iterator diag_iterator;
int num_errors = 0;
-
+
for (diag_iterator = diag_buf->warn_begin();
diag_iterator != diag_buf->warn_end();
++diag_iterator)
@@ -324,6 +324,11 @@
stream.Printf("error: %s\n", (*diag_iterator).second.c_str());
}
+ for (diag_iterator = diag_buf->note_begin();
+ diag_iterator != diag_buf->note_end();
+ ++diag_iterator)
+ stream.Printf("note: %s\n", (*diag_iterator).second.c_str());
+
return num_errors;
}
More information about the lldb-commits
mailing list