aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2008-02-15 22:04:52 +0000
committerTed Kremenek <kremenek@apple.com>2008-02-15 22:04:52 +0000
commit5d826b82936beb2c32dd02460332ba8035192c65 (patch)
treec55d0d8f8877cef62c2200eb728a42c6e872bbf7
parent3fe0293bef14ccda2afbc9ba2712526b051a63e0 (diff)
Added predicate function "UnaryOperator::isIncrementOp()".
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@47181 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/clang/AST/Expr.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/clang/AST/Expr.h b/include/clang/AST/Expr.h
index 47f2269f48..453f754f8f 100644
--- a/include/clang/AST/Expr.h
+++ b/include/clang/AST/Expr.h
@@ -435,6 +435,7 @@ public:
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; }