================
@@ -352,6 +353,16 @@ struct SkipBodyInfo {
NamedDecl *New = nullptr;
};
+/// Implementation of EvalASTMutator interface that enables constant evaluator
+/// to modify AST, e.g. to instantiate templates.
+struct SemaASTMutator : EvalASTMutator {
----------------
erichkeane wrote:
I wonder if `Sema` should just be the implementer here, rather than a separate
mutator object? Mark it `final`, and we get free devirtualization in Sema, but
that way we can more simply add elements here without the wrapper here.
https://github.com/llvm/llvm-project/pull/115168
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits