================
@@ -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.
+  ///
+  /// \pre hasConstantInitialization()
+  /// \return \c true if this variable has constant destruction, \c false if
+  ///         not.
+  bool evaluateMandatedConstantDestruction(
+      SmallVectorImpl<PartialDiagnosticAt> &Notes, SemaProxy &SP) const;
----------------
cor3ntin wrote:

```suggestion
  bool evaluateConstantDestruction(
      SmallVectorImpl<PartialDiagnosticAt> &Notes, SemaProxy &SP) const;
```

https://github.com/llvm/llvm-project/pull/205557
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to