Skip to content

Commit 99950d7

Browse files
add comments for operator precedence
1 parent acbc699 commit 99950d7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

clang/lib/Basic/OperatorPrecedence.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,9 @@ prec::Level getBinOpPrecedence(tok::TokenKind Kind, bool GreaterThanIsOperator,
5454
case tok::pipepipe: return prec::LogicalOr;
5555
case tok::ampamp: return prec::LogicalAnd;
5656
case tok::pipe: return prec::InclusiveOr;
57+
// this is for the case when ^^ appears where a binary operator is needed,
58+
// and the first ^ is the actual binary operator,
59+
// and the second is for a block.
5760
case tok::caretcaret:
5861
case tok::caret: return prec::ExclusiveOr;
5962
case tok::amp: return prec::And;

0 commit comments

Comments
 (0)