diff options
author | Ted Kremenek <kremenek@apple.com> | 2008-02-15 22:04:52 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2008-02-15 22:04:52 +0000 |
commit | 5d826b82936beb2c32dd02460332ba8035192c65 (patch) | |
tree | c55d0d8f8877cef62c2200eb728a42c6e872bbf7 | |
parent | 3fe0293bef14ccda2afbc9ba2712526b051a63e0 (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.h | 1 |
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; } |