From: Ted Kremenek Date: Tue, 23 Aug 2011 23:05:01 +0000 (+0000) Subject: Add 'const' version of CompoundStmt::children(). X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8ed557991fe8d51eb27e6c439030ec6ef93a2b8f;p=clang Add 'const' version of CompoundStmt::children(). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@138407 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/AST/Stmt.h b/include/clang/AST/Stmt.h index 08391d7a24..e67f1f2a28 100644 --- a/include/clang/AST/Stmt.h +++ b/include/clang/AST/Stmt.h @@ -524,6 +524,10 @@ public: 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,