mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
AST: Rename getOrigAttrs() to getParsedAttrs().
To match terminology used elsewhere in the compiler (e.g. "parsed accessor") rename "original attributes" to "parsed atributes". Additionally, make sure the attributes returned by `getParsedAttrs()` really are just the parsed ones by skipping implicit attributes in addition to the ones expanded from macros.
This commit is contained in:
@@ -179,7 +179,8 @@ bool NameMatcher::handleCustomAttrs(Decl *D) {
|
||||
}
|
||||
}
|
||||
|
||||
for (auto *customAttr : D->getOriginalAttrs().getAttributes<CustomAttr, true>()) {
|
||||
for (auto *customAttr :
|
||||
D->getParsedAttrs().getAttributes<CustomAttr, true>()) {
|
||||
if (shouldSkip(customAttr->getRangeWithAt()))
|
||||
continue;
|
||||
auto *Args = customAttr->getArgs();
|
||||
|
||||
Reference in New Issue
Block a user