From 503fc39d1f86c1ea39ae33c7b6752a9d3e2fcbca Mon Sep 17 00:00:00 2001 From: Scott Douglass Date: Wed, 10 Jun 2015 13:53:15 +0000 Subject: [PATCH] add ConstEvaluatedExprVisitor Differential Revision: http://reviews.llvm.org/D10210 llvm-svn: 239474 --- clang/include/clang/AST/EvaluatedExprVisitor.h | 70 +++++++++++++++++--------- clang/include/clang/AST/Expr.h | 4 +- clang/lib/AST/Expr.cpp | 28 +++++------ clang/lib/CodeGen/CGClass.cpp | 10 ++-- clang/lib/Sema/AnalysisBasedWarnings.cpp | 17 ++++--- clang/lib/Sema/SemaExprCXX.cpp | 1 - 6 files changed, 76 insertions(+), 54 deletions(-) diff --git a/clang/include/clang/AST/EvaluatedExprVisitor.h b/clang/include/clang/AST/EvaluatedExprVisitor.h index 59de104..89d8641 100644 --- a/clang/include/clang/AST/EvaluatedExprVisitor.h +++ b/clang/include/clang/AST/EvaluatedExprVisitor.h @@ -26,29 +26,31 @@ class ASTContext; /// \brief Given a potentially-evaluated expression, this visitor visits all /// of its potentially-evaluated subexpressions, recursively. -template -class EvaluatedExprVisitor : public StmtVisitor { - ASTContext &Context; - +template