[clang] [Clang] Instantiate functions from constant evaluation. (PR #205557)

Corentin Jabot via cfe-commits cfe-commits at lists.llvm.org
Wed Jun 24 07:18:41 PDT 2026


================
@@ -1452,6 +1453,15 @@ class VarDecl : public DeclaratorDecl, public Redeclarable<VarDecl> {
   ///         not.
   bool evaluateDestruction(SmallVectorImpl<PartialDiagnosticAt> &Notes) const;
 
+  /// Evaluate the destruction of this variable, the destruction of which is
+  /// required by language rules to be constant.
----------------
cor3ntin wrote:

```suggestion
  /// Evaluate the destruction of a variable that is required by the language to have
  /// constant destruction.
```

You make it sounds like all variable need to have constant destruction

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


More information about the cfe-commits mailing list