diff options
-rw-r--r-- | include/clang/AST/Expr.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/clang/AST/Expr.h b/include/clang/AST/Expr.h index 9d967dec03..bbd1b1ba1c 100644 --- a/include/clang/AST/Expr.h +++ b/include/clang/AST/Expr.h @@ -738,6 +738,7 @@ public: bool isIncrementDecrementOp() const { return Opc>=PostInc && Opc<=PreDec; } bool isOffsetOfOp() const { return Opc == OffsetOf; } static bool isArithmeticOp(Opcode Op) { return Op >= Plus && Op <= LNot; } + bool isArithmeticOp() const { return isArithmeticOp(Opc); } /// getOpcodeStr - Turn an Opcode enum value into the punctuation char it /// corresponds to, e.g. "sizeof" or "[pre]++" |