forked from OSchip/llvm-project
Print notes for expressions as well as errors
and warnings. llvm-svn: 117947
This commit is contained in:
parent
9aaf7f66fc
commit
57bbc6ecc6
|
@ -324,6 +324,11 @@ ClangExpressionParser::Parse (Stream &stream)
|
||||||
stream.Printf("error: %s\n", (*diag_iterator).second.c_str());
|
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;
|
return num_errors;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue