[AST] Use scoped enum for attribute kinds

Align with other kind enum e.g. DeclKind.
This commit is contained in:
Rintaro Ishizaki
2024-02-02 05:30:50 -08:00
parent 07bb0380a1
commit b839718351
39 changed files with 893 additions and 848 deletions

View File

@@ -105,7 +105,7 @@ private:
SwiftLangSupport::UIDsFromDeclAttributes(decl->getAttrs());
// check if we should report an implicit @objc attribute
if (!decl->getAttrs().getAttribute(DeclAttrKind::DAK_ObjC)) {
if (!decl->getAttrs().getAttribute(DeclAttrKind::ObjC)) {
if (auto *VD = dyn_cast<ValueDecl>(decl)) {
if (VD->isObjC()) {
uidAttrs.push_back(SwiftLangSupport::getUIDForObjCAttr());