Skip to content

Commit acbc699

Browse files
fix comment for ^^ in binary operator context
1 parent 336cb0d commit acbc699

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

clang/lib/Parse/ParseExpr.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -333,9 +333,10 @@ Parser::ParseRHSOfBinaryExpression(ExprResult LHS, prec::Level MinPrec) {
333333
Token OpToken = Tok;
334334
ConsumeToken();
335335

336-
// the reflection operator can't be in a binary expression
337-
// so if reflection and blocks are enabled, we need to
338-
// split caretcaret into two caret's
336+
// The reflection operator is not valid here (i.e., in the place of the
337+
// operator token in a binary expression), so if reflection and blocks are
338+
// enabled, we split caretcaret into two carets: the first being the binary
339+
// operator and the second being the introducer for the block.
339340
if (OpToken.is(tok::caretcaret)) {
340341
assert(getLangOpts().Reflection &&
341342
"reflection support disabled - compile with -freflection");

0 commit comments

Comments
 (0)