Merge pull request #79980 from hborla/closure-body-macro

[Macros] Implement support for function body macros on closures.
This commit is contained in:
Holly Borla
2025-03-21 06:19:36 -07:00
committed by GitHub
20 changed files with 593 additions and 62 deletions

View File

@@ -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>())