mirror of
https://github.com/intel/llvm.git
synced 2026-01-20 01:58:44 +08:00
Print notes for expressions as well as errors
and warnings. llvm-svn: 117947
This commit is contained in:
@@ -308,7 +308,7 @@ ClangExpressionParser::Parse (Stream &stream)
|
||||
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 @@ ClangExpressionParser::Parse (Stream &stream)
|
||||
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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user