[Compile Time Values] Add parsing of @constInitialized attribute under CompileTimeValues experimental feature

This commit is contained in:
Kuba Mracek
2025-03-24 09:31:57 -07:00
parent 8f4220c6fa
commit f402eb623c
15 changed files with 109 additions and 18 deletions

View File

@@ -363,7 +363,8 @@ static bool usesFeatureConcurrencySyntaxSugar(Decl *decl) {
}
static bool usesFeatureCompileTimeValues(Decl *decl) {
return decl->getAttrs().hasAttribute<ConstValAttr>();
return decl->getAttrs().hasAttribute<ConstValAttr>() ||
decl->getAttrs().hasAttribute<ConstInitializedAttr>();
}
static bool usesFeatureClosureBodyMacro(Decl *decl) {