[clang] Enable AST mutation in the constant evaluator (PR #115168)
Vlad Serebrennikov via cfe-commits
cfe-commits at lists.llvm.org
Fri Nov 15 07:37:49 PST 2024
================
@@ -182,6 +182,17 @@ struct TypeInfoChars {
}
};
+// Interface that allows constant evaluator to mutate AST.
+// Sema is the only entity that can implement this.
+struct EvalASTMutator {
+ virtual ~EvalASTMutator() = default;
+
+ virtual void
+ InstantiateFunctionDefinition(SourceLocation PointOfInstantiation,
+ FunctionDecl *Function, bool Recursive,
+ bool DefinitionRequired, bool AtEndOfTU) = 0;
----------------
Endilll wrote:
Fixed
https://github.com/llvm/llvm-project/pull/115168
More information about the cfe-commits
mailing list