[cfe-commits] r47181 - /cfe/trunk/include/clang/AST/Expr.h
Ted Kremenek
kremenek at apple.com
Fri Feb 15 14:04:52 PST 2008
Author: kremenek
Date: Fri Feb 15 16:04:52 2008
New Revision: 47181
URL: http://llvm.org/viewvc/llvm-project?rev=47181&view=rev
Log:
Added predicate function "UnaryOperator::isIncrementOp()".
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=47181&r1=47180&r2=47181&view=diff
==============================================================================
--- cfe/trunk/include/clang/AST/Expr.h (original)
+++ cfe/trunk/include/clang/AST/Expr.h Fri Feb 15 16:04:52 2008
@@ -435,6 +435,7 @@
static bool isPostfix(Opcode Op);
bool isPostfix() const { return isPostfix(Opc); }
+ bool isIncrementOp() const {return Opc==PreInc || Opc==PostInc; }
bool isIncrementDecrementOp() const { return Opc>=PostInc && Opc<=PreDec; }
bool isSizeOfAlignOfOp() const { return Opc == SizeOf || Opc == AlignOf; }
bool isOffsetOfOp() const { return Opc == OffsetOf; }
More information about the cfe-commits
mailing list