Skip to content

Commit

Permalink
Add support for static_assert declaration
Browse files Browse the repository at this point in the history
  • Loading branch information
Zachary Jaquish committed Nov 30, 2023
1 parent fc3dd66 commit a677a7e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Source/SourceKittenFramework/ObjCDeclarationKind.swift
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ public enum ObjCDeclarationKind: String {
case moduleImport = "sourcekitten.source.lang.objc.module.import"
/// `UnexposedDecl`
case unexposedDecl = "sourcekitten.source.lang.objc.decl.unexposed"
/// `static_assert`
case staticAssert = "sourcekitten.source.lang.objc.decl.static_assert"

// swiftlint:disable:next cyclomatic_complexity
public init(_ cursorKind: CXCursorKind) {
Expand All @@ -73,6 +75,7 @@ public enum ObjCDeclarationKind: String {
case CXCursor_ObjCCategoryImplDecl: self = .category
case CXCursor_ObjCDynamicDecl: self = .unexposedDecl
case CXCursor_ObjCSynthesizeDecl: self = .unexposedDecl
case CXCursor_StaticAssert: self = .staticAssert
default: fatalError("Unsupported CXCursorKind: \(clang_getCursorKindSpelling(cursorKind))")
}
}
Expand Down

0 comments on commit a677a7e

Please sign in to comment.