diff options
author | Ted Kremenek <kremenek@apple.com> | 2009-07-23 01:06:10 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2009-07-23 01:06:10 +0000 |
commit | a4e70568ae8902d48aad215c16b0fc8b40308106 (patch) | |
tree | 4af82023a6112a44f7a7b7fb80f11f0d419e736e | |
parent | 7a2d953224e51b2b7d7cbf9194a1dbc1ca0be4a0 (diff) |
Add instance predicate method to match static method.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@76832 91177308-0d34-0410-b5e6-96231b3b80d8
-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]++" |