summaryrefslogtreecommitdiffstats
path: root/clang/lib/Parse/ParseExpr.cpp
diff options
context:
space:
mode:
authorAlp Toker <alp@nuanti.com>2013-12-30 23:29:50 +0000
committerAlp Toker <alp@nuanti.com>2013-12-30 23:29:50 +0000
commit35d8703dbe89f717ef6c71b35e4b29aa51bbd7a7 (patch)
treeba2f4d9bc887ce0cb2af74b86fed4c36fb610400 /clang/lib/Parse/ParseExpr.cpp
parentbb79c338edc0abd2260ba7fdcb2d60ab16e473e4 (diff)
downloadbcm5719-llvm-35d8703dbe89f717ef6c71b35e4b29aa51bbd7a7.tar.gz
bcm5719-llvm-35d8703dbe89f717ef6c71b35e4b29aa51bbd7a7.zip
Switch over more of the parser to err_expected
Includes a fix for a missing highlight range caused by a ',' typo in the PP diagnostics. llvm-svn: 198252
Diffstat (limited to 'clang/lib/Parse/ParseExpr.cpp')
-rw-r--r--clang/lib/Parse/ParseExpr.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/lib/Parse/ParseExpr.cpp b/clang/lib/Parse/ParseExpr.cpp
index 9abc5a3aefa..96f8f55a738 100644
--- a/clang/lib/Parse/ParseExpr.cpp
+++ b/clang/lib/Parse/ParseExpr.cpp
@@ -291,9 +291,9 @@ Parser::ParseRHSOfBinaryExpression(ExprResult LHS, prec::Level MinPrec) {
}
}
}
-
- Diag(Tok, diag::err_expected_colon)
- << FixItHint::CreateInsertion(FILoc, FIText);
+
+ Diag(Tok, diag::err_expected)
+ << tok::colon << FixItHint::CreateInsertion(FILoc, FIText);
Diag(OpToken, diag::note_matching) << tok::question;
ColonLoc = Tok.getLocation();
}
OpenPOWER on IntegriCloud