[cfe-commits] r138407 - /cfe/trunk/include/clang/AST/Stmt.h
Ted Kremenek
kremenek at apple.com
Tue Aug 23 16:05:01 PDT 2011
Author: kremenek
Date: Tue Aug 23 18:05:01 2011
New Revision: 138407
URL: http://llvm.org/viewvc/llvm-project?rev=138407&view=rev
Log:
Add 'const' version of CompoundStmt::children().
Modified:
cfe/trunk/include/clang/AST/Stmt.h
Modified: cfe/trunk/include/clang/AST/Stmt.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/AST/Stmt.h?rev=138407&r1=138406&r2=138407&view=diff
==============================================================================
--- cfe/trunk/include/clang/AST/Stmt.h (original)
+++ cfe/trunk/include/clang/AST/Stmt.h Tue Aug 23 18:05:01 2011
@@ -524,6 +524,10 @@
child_range children() {
return child_range(&Body[0], &Body[0]+CompoundStmtBits.NumStmts);
}
+
+ const_child_range children() const {
+ return child_range(&Body[0], &Body[0]+CompoundStmtBits.NumStmts);
+ }
};
// SwitchCase is the base class for CaseStmt and DefaultStmt,
More information about the cfe-commits
mailing list