[cfe-commits] r76832 - /cfe/trunk/include/clang/AST/Expr.h

Ted Kremenek kremenek at apple.com
Wed Jul 22 18:06:10 PDT 2009


Author: kremenek
Date: Wed Jul 22 20:06:10 2009
New Revision: 76832

URL: http://llvm.org/viewvc/llvm-project?rev=76832&view=rev
Log:
Add instance predicate method to match static method.

Modified:
    cfe/trunk/include/clang/AST/Expr.h

Modified: cfe/trunk/include/clang/AST/Expr.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/AST/Expr.h?rev=76832&r1=76831&r2=76832&view=diff

==============================================================================
--- cfe/trunk/include/clang/AST/Expr.h (original)
+++ cfe/trunk/include/clang/AST/Expr.h Wed Jul 22 20:06:10 2009
@@ -738,6 +738,7 @@
   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]++"





More information about the cfe-commits mailing list