]> granicus.if.org Git - clang/commitdiff
Add 'const' version of CompoundStmt::children().
authorTed Kremenek <kremenek@apple.com>
Tue, 23 Aug 2011 23:05:01 +0000 (23:05 +0000)
committerTed Kremenek <kremenek@apple.com>
Tue, 23 Aug 2011 23:05:01 +0000 (23:05 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@138407 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/AST/Stmt.h

index 08391d7a24a62fe375e4e10ddf2e256bfcbaae8a..e67f1f2a289fecf51b6cfdc223688fd5fe9bf106 100644 (file)
@@ -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,