]> granicus.if.org Git - clang/commitdiff
Add instance predicate method to match static method.
authorTed Kremenek <kremenek@apple.com>
Thu, 23 Jul 2009 01:06:10 +0000 (01:06 +0000)
committerTed Kremenek <kremenek@apple.com>
Thu, 23 Jul 2009 01:06:10 +0000 (01:06 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@76832 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/AST/Expr.h

index 9d967dec037c130922140357d0c2b2bad726136f..bbd1b1ba1cca64ed38ed1b18ade04e491b849361 100644 (file)
@@ -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]++"