mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[Compile Time Values] Add parsing of @constInitialized attribute under CompileTimeValues experimental feature
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user