[clang] [Clang] Instantiate constexpr function when they are needed. (PR #173537)
Corentin Jabot via cfe-commits
cfe-commits at lists.llvm.org
Fri Jan 2 00:52:25 PST 2026
================
@@ -215,6 +216,16 @@ struct TypeInfoChars {
}
};
+/// Interface that allows constant evaluator to call Sema
+/// and mutate the AST.
+struct SemaProxy {
+ virtual ~SemaProxy() = default;
+
+ virtual void
+ InstantiateFunctionDefinition(SourceLocation PointOfInstantiation,
----------------
cor3ntin wrote:
This isn't really consistent with our coding guidelines
https://github.com/llvm/llvm-project/pull/173537
More information about the cfe-commits
mailing list