mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[AST] Remove DeclAttrKind::Count
Introduce NumDeclAttrKinds for number of enum values. Use optional for invalid attribute kind. This align with `TypeAttrKind`.
This commit is contained in:
@@ -849,8 +849,6 @@ SwiftLangSupport::getUIDForDeclAttribute(const swift::DeclAttribute *Attr) {
|
||||
}
|
||||
|
||||
switch (Attr->getKind()) {
|
||||
case DeclAttrKind::Count:
|
||||
break;
|
||||
#define DECL_ATTR(X, CLASS, ...) \
|
||||
case DeclAttrKind::CLASS: { \
|
||||
static UIdent Attr_##X("source.decl.attribute." #X); \
|
||||
|
||||
Reference in New Issue
Block a user