[clang] [Clang] Instantiate functions from constant evaluation. (PR #205557)
Daniel M. Katz via cfe-commits
cfe-commits at lists.llvm.org
Wed Jun 24 13:55:39 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.
+ ///
+ /// \pre hasConstantInitialization()
+ /// \return \c true if this variable has constant destruction, \c false if
+ /// not.
+ bool evaluateMandatedConstantDestruction(
+ SmallVectorImpl<PartialDiagnosticAt> &Notes, SemaProxy &SP) const;
----------------
katzdm wrote:
Done.
https://github.com/llvm/llvm-project/pull/205557
More information about the cfe-commits
mailing list