aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2011-08-23 23:05:01 +0000
committerTed Kremenek <kremenek@apple.com>2011-08-23 23:05:01 +0000
commit8ed557991fe8d51eb27e6c439030ec6ef93a2b8f (patch)
tree856432f72ccef77013552d023e7098640d5e36d5
parentb1793a04f23288bfa7fd53e2c6f22897d35c3769 (diff)
Add 'const' version of CompoundStmt::children().
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@138407 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/clang/AST/Stmt.h4
1 files changed, 4 insertions, 0 deletions
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,