[cfe-commits] r45549 - /cfe/trunk/include/clang/AST/CFG.h
Ted Kremenek
kremenek at apple.com
Thu Jan 3 14:07:58 PST 2008
Author: kremenek
Date: Thu Jan 3 16:07:58 2008
New Revision: 45549
URL: http://llvm.org/viewvc/llvm-project?rev=45549&view=rev
Log:
Constified methods front() and back() in CFGBlock.
Modified:
cfe/trunk/include/clang/AST/CFG.h
Modified: cfe/trunk/include/clang/AST/CFG.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/AST/CFG.h?rev=45549&r1=45548&r2=45549&view=diff
==============================================================================
--- cfe/trunk/include/clang/AST/CFG.h (original)
+++ cfe/trunk/include/clang/AST/CFG.h Thu Jan 3 16:07:58 2008
@@ -88,8 +88,8 @@
typedef std::reverse_iterator<const_iterator> const_reverse_iterator;
typedef std::reverse_iterator<iterator> reverse_iterator;
- Stmt* front() { return Stmts.front(); }
- Stmt* back() { return Stmts.back(); }
+ Stmt* front() const { return Stmts.front(); }
+ Stmt* back() const { return Stmts.back(); }
iterator begin() { return Stmts.begin(); }
iterator end() { return Stmts.end(); }
More information about the cfe-commits
mailing list