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:
Allan Shortlidge
2023-11-01 22:28:19 -07:00
parent 9bc4e4bc8e
commit e879c07542
8 changed files with 51 additions and 36 deletions

View File

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