summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2009-07-23 01:06:10 +0000
committerTed Kremenek <kremenek@apple.com>2009-07-23 01:06:10 +0000
commit4cd5577cdff2936cc5dab6a85b1566e9566d0369 (patch)
tree47ce34c23820a7b0c229bca1b6efa0a33be36bd8
parent5939402e2c72889843a05dc2f892de5da650e029 (diff)
downloadbcm5719-llvm-4cd5577cdff2936cc5dab6a85b1566e9566d0369.tar.gz
bcm5719-llvm-4cd5577cdff2936cc5dab6a85b1566e9566d0369.zip
Add instance predicate method to match static method.
llvm-svn: 76832
-rw-r--r--clang/include/clang/AST/Expr.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/include/clang/AST/Expr.h b/clang/include/clang/AST/Expr.h
index 9d967dec037..bbd1b1ba1cc 100644
--- a/clang/include/clang/AST/Expr.h
+++ b/clang/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]++"
OpenPOWER on IntegriCloud