[clang] [Clang] Instantiate constexpr function when they are needed. (PR #173537)

via cfe-commits cfe-commits at lists.llvm.org
Thu Dec 25 11:49:23 PST 2025


================
@@ -622,6 +625,15 @@ Sema::~Sema() {
   SemaPPCallbackHandler->reset();
 }
 
+void Sema::RegisterSemaProxy() {
+  // Let the AST context relies on Sema for
+  // ast mutations features that require semantic analysis
+  // (lazy instantiation, reflection, etc).
----------------
Sirraide wrote:

```suggestion
  // Let the AST context rely on Sema for
  // AST mutation features that require semantic analysis
  // (lazy instantiation, reflection, etc).
```
nit: typos

https://github.com/llvm/llvm-project/pull/173537


More information about the cfe-commits mailing list