[PATCH] D31153: Add the ability to use the children() range API in a const-correct manner
Aaron Ballman via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Mar 20 15:30:53 PDT 2017
aaron.ballman created this revision.
We already have children() but not children() const, which is causing some problems for me on an out of tree project. Most of the changes here are mechanical, except for the work done to `ConstStmtIterator`, which cheats and uses a `const_cast`. Since none of these are *actually* const, this should not trigger UB.
https://reviews.llvm.org/D31153
Files:
include/clang/AST/Expr.h
include/clang/AST/StmtIterator.h
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D31153.92388.patch
Type: text/x-patch
Size: 13386 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20170320/f643b254/attachment-0001.bin>
More information about the cfe-commits
mailing list