Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add FriendDecl for a friend keyword. #41

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions Sources/Clang/Cursors.swift
Original file line number Diff line number Diff line change
Expand Up @@ -1241,6 +1241,11 @@ public struct StaticAssert: ClangCursorBacked {
let clang: CXCursor
}

/// A friend declaration.
public struct FriendDecl: ClangCursorBacked {
let clang: CXCursor
}

/// A code completion overload candidate.
public struct OverloadCandidate: ClangCursorBacked {
let clang: CXCursor
Expand Down Expand Up @@ -1453,6 +1458,7 @@ func convertCursor(_ clang: CXCursor) -> Cursor? {
case CXCursor_ModuleImportDecl: return ModuleImportDecl(clang: clang)
case CXCursor_TypeAliasTemplateDecl: return TypeAliasTemplateDecl(clang: clang)
case CXCursor_StaticAssert: return StaticAssert(clang: clang)
case CXCursor_FriendDecl: return FriendDecl(clang: clang)
case CXCursor_OverloadCandidate: return OverloadCandidate(clang: clang)
default: fatalError("invalid CXCursorKind \(clang)")
}
Expand Down