make the 'to match this' diagnostic a note.
llvm-svn: 59921
diff --git a/clang/lib/Lex/PPExpressions.cpp b/clang/lib/Lex/PPExpressions.cpp
index 3eedf8c..168c9d0 100644
--- a/clang/lib/Lex/PPExpressions.cpp
+++ b/clang/lib/Lex/PPExpressions.cpp
@@ -137,7 +137,7 @@
if (LParenLoc.isValid()) {
if (PeekTok.isNot(tok::r_paren)) {
PP.Diag(PeekTok.getLocation(), diag::err_pp_missing_rparen);
- PP.Diag(LParenLoc, diag::err_matching) << "(";
+ PP.Diag(LParenLoc, diag::note_matching) << "(";
return true;
}
// Consume the ).
@@ -261,7 +261,7 @@
if (PeekTok.isNot(tok::r_paren)) {
PP.Diag(PeekTok.getLocation(), diag::err_pp_expected_rparen)
<< Result.getRange();
- PP.Diag(Start, diag::err_matching) << "(";
+ PP.Diag(Start, diag::note_matching) << "(";
return true;
}
DT.State = DefinedTracker::Unknown;
@@ -606,7 +606,7 @@
if (PeekTok.isNot(tok::colon)) {
PP.Diag(PeekTok.getLocation(), diag::err_expected_colon)
<< LHS.getRange(), RHS.getRange();
- PP.Diag(OpLoc, diag::err_matching) << "?";
+ PP.Diag(OpLoc, diag::note_matching) << "?";
return true;
}
// Consume the :.