projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5939402
)
Add instance predicate method to match static method.
author
Ted Kremenek
<kremenek@apple.com>
Thu, 23 Jul 2009 01:06:10 +0000
(
01:06
+0000)
committer
Ted Kremenek
<kremenek@apple.com>
Thu, 23 Jul 2009 01:06:10 +0000
(
01:06
+0000)
llvm-svn: 76832
clang/include/clang/AST/Expr.h
patch
|
blob
|
history
diff --git
a/clang/include/clang/AST/Expr.h
b/clang/include/clang/AST/Expr.h
index
9d967de
..
bbd1b1b
100644
(file)
--- a/
clang/include/clang/AST/Expr.h
+++ b/
clang/include/clang/AST/Expr.h
@@
-738,6
+738,7
@@
public:
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]++"