mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[AST] Introduce Decl::addAttribute
Introduce a convenience entrypoint that also calls `attachToDecl` on the attribute, and migrate all existing uses of `getAttrs().add` onto it.
This commit is contained in:
@@ -804,7 +804,7 @@ public:
|
||||
// the order in which previous implementations printed these attributes.
|
||||
for (auto attr = clonedAttrs.rbegin(), end = clonedAttrs.rend();
|
||||
attr != end; ++attr) {
|
||||
extension->getAttrs().add(const_cast<DeclAttribute *>(*attr));
|
||||
extension->addAttribute(const_cast<DeclAttribute *>(*attr));
|
||||
}
|
||||
|
||||
ctx.evaluator.cacheOutput(ExtendedTypeRequest{extension},
|
||||
|
||||
Reference in New Issue
Block a user