[cfe-commits] r123511 - /cfe/trunk/include/clang/Analysis/CFG.h
Ted Kremenek
kremenek at apple.com
Fri Jan 14 18:58:42 PST 2011
Author: kremenek
Date: Fri Jan 14 20:58:42 2011
New Revision: 123511
URL: http://llvm.org/viewvc/llvm-project?rev=123511&view=rev
Log:
Add const version if CFG::isBlkExpr().
Modified:
cfe/trunk/include/clang/Analysis/CFG.h
Modified: cfe/trunk/include/clang/Analysis/CFG.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Analysis/CFG.h?rev=123511&r1=123510&r2=123511&view=diff
==============================================================================
--- cfe/trunk/include/clang/Analysis/CFG.h (original)
+++ cfe/trunk/include/clang/Analysis/CFG.h Fri Jan 14 20:58:42 2011
@@ -624,7 +624,10 @@
operator unsigned() const { assert(Idx >=0); return (unsigned) Idx; }
};
- bool isBlkExpr(const Stmt* S) { return getBlkExprNum(S); }
+ bool isBlkExpr(const Stmt* S) { return getBlkExprNum(S); }
+ bool isBlkExpr(const Stmt *S) const {
+ return const_cast<CFG*>(this)->isBlkExpr(S);
+ }
BlkExprNumTy getBlkExprNum(const Stmt* S);
unsigned getNumBlkExprs();
More information about the cfe-commits
mailing list