From 00c746c5de3adaf5c3d1394a351d1806153e963c Mon Sep 17 00:00:00 2001 From: JuHwang Kim Date: Wed, 3 Apr 2019 23:53:47 +0900 Subject: [PATCH] Add FriendDecl for a friend keyword. --- Sources/Clang/Cursors.swift | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Sources/Clang/Cursors.swift b/Sources/Clang/Cursors.swift index 7f160db..be4b05e 100644 --- a/Sources/Clang/Cursors.swift +++ b/Sources/Clang/Cursors.swift @@ -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 @@ -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)") }