Print notes for expressions as well as errors

and warnings.

llvm-svn: 117947
This commit is contained in:
Sean Callanan 2010-11-01 20:28:09 +00:00
parent 9aaf7f66fc
commit 57bbc6ecc6
1 changed files with 6 additions and 1 deletions

View File

@ -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;
}