mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Merge pull request #79980 from hborla/closure-body-macro
[Macros] Implement support for function body macros on closures.
This commit is contained in:
@@ -360,6 +360,10 @@ static bool usesFeatureCompileTimeValues(Decl *decl) {
|
||||
return decl->getAttrs().hasAttribute<ConstValAttr>();
|
||||
}
|
||||
|
||||
static bool usesFeatureClosureBodyMacro(Decl *decl) {
|
||||
return false;
|
||||
}
|
||||
|
||||
static bool usesFeatureMemorySafetyAttributes(Decl *decl) {
|
||||
if (decl->getAttrs().hasAttribute<SafeAttr>() ||
|
||||
decl->getAttrs().hasAttribute<UnsafeAttr>())
|
||||
|
||||
Reference in New Issue
Block a user