[cfe-dev] isInfixBinaryOp weird behavior
Dorian Haglund via cfe-dev
cfe-dev at lists.llvm.org
Thu Jul 12 07:59:13 PDT 2018
CXXOperatorCallExpr::isInfixBinaryOp() returns true for overloaded postfix
It returns false for the prefix increment/decrement.
I know this behavior is consistent with the commentary.
(i'm guessing that the behavior comes from he fact that the postfix
increment is overloaded using an extra unused parameter)
I think isInfixBinaryOp should never return true for increment and
decrement operator, regardless of where they are.
As it is, this function caused a interesting bug on my side :)
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the cfe-dev