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 | c4bf7ef7449d4c7a42aca4cdcde94cf9f31a03b4 (patch) | |
| tree | dffcc13f9d6703b187f7ebe89004e8ab8ea53a4a | |
| parent | 803bb6d699506491c0a98467cc225a4f2b0ef88c (diff) | |
| download | bcm5719-llvm-c4bf7ef7449d4c7a42aca4cdcde94cf9f31a03b4.tar.gz bcm5719-llvm-c4bf7ef7449d4c7a42aca4cdcde94cf9f31a03b4.zip | |
Added predicate function "UnaryOperator::isIncrementOp()".
llvm-svn: 47181
| -rw-r--r-- | clang/include/clang/AST/Expr.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/include/clang/AST/Expr.h b/clang/include/clang/AST/Expr.h index 47f2269f48b..453f754f8fb 100644 --- a/clang/include/clang/AST/Expr.h +++ b/clang/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; } |

