This patch attempts to update application of evaluation contexts to better represent, what is manifestly constant evaluated.
There are some outstanding concerns I'll mark with inline comments.
Paths
| Differential D76447
Apply ConstantEvaluated evaluation contexts to more manifestly constant evaluated scopes Needs ReviewPublic Authored by wchilders on Mar 19 2020, 12:43 PM.
Details
Diff Detail
Event Timelinewchilders added inline comments.
Comment Actions Updated the patch to correct formatting issues, and removed application of the ConstantEvaluated evaluation context to var decls as it introduces too much complexity. Additionally removed a fix for decltype with immediate functions that snuck into this patch. This will be submitted separately.
Revision Contents
Diff 251450 clang/include/clang/Sema/Sema.h
clang/lib/Parse/ParseDeclCXX.cpp
clang/lib/Parse/ParseStmt.cpp
clang/lib/Sema/SemaDeclCXX.cpp
clang/lib/Sema/SemaExpr.cpp
clang/lib/Sema/SemaTemplateInstantiateDecl.cpp
clang/lib/Sema/TreeTransform.h
|
clang-format: please reformat the code