[PATCH] add ConstEvaluatedExprVisitor
scott douglass
sdouglass at arm.com
Wed Jun 3 03:39:44 PDT 2015
Adds a version of EvaluatedExprVisitor for visiting const Stmt*s and uses it in a few places thereby removing some casting away of const. Changes EvaluatedExprVisitor to hold it's ASTContext& as const and adds a few 'const's that this allows. Removes an spurious #include.
Overall, no functional change. I'm also going to use ConstEvaluatedExprVisitor in a subsequent patch about side-effect of StmtExprs.
http://reviews.llvm.org/D10210
Files:
llvm/tools/clang/include/clang/AST/EvaluatedExprVisitor.h
llvm/tools/clang/include/clang/AST/Expr.h
llvm/tools/clang/lib/AST/Expr.cpp
llvm/tools/clang/lib/CodeGen/CGClass.cpp
llvm/tools/clang/lib/Sema/AnalysisBasedWarnings.cpp
llvm/tools/clang/lib/Sema/SemaExprCXX.cpp
EMAIL PREFERENCES
http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D10210.27029.patch
Type: text/x-patch
Size: 12055 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20150603/2b716b38/attachment.bin>
More information about the cfe-commits
mailing list