From 68a46b2eb530451afa70a795a0cda87519a99f81 Mon Sep 17 00:00:00 2001 From: t-bltg Date: Fri, 16 Dec 2022 12:44:42 +0100 Subject: [PATCH 1/2] fix `getNumArguments` --- src/cursor.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cursor.jl b/src/cursor.jl index 8630b642..1d9d458e 100644 --- a/src/cursor.jl +++ b/src/cursor.jl @@ -257,10 +257,10 @@ getFieldDeclBitWidth(c::CXCursor)::Int = clang_getFieldDeclBitWidth(c) getFieldDeclBitWidth(c::CLFieldDecl) = clang_getFieldDeclBitWidth(c) """ - getNumArguments(c::Union{CXCursor,CLFunctionDecl,CLCXXMethod}) -> Int + getNumArguments(c::Union{CXCursor,CLFunctionDecl,CLCXXMethod,CLTypedefDecl}) -> Int Return the number of non-variadic arguments associated with a given cursor. """ -getNumArguments(c::Union{CXCursor,CLFunctionDecl,CLCXXMethod})::Int = clang_Cursor_getNumArguments(c) +getNumArguments(c::Union{CXCursor,CLFunctionDecl,CLCXXMethod,CLTypedefDecl})::Int = clang_Cursor_getNumArguments(c) """ getArgument(c::CXCursor, i::Integer) -> CXCursor From 53d52ce373900ef7c390ffb89f6404492736fc2c Mon Sep 17 00:00:00 2001 From: t-bltg Date: Fri, 16 Dec 2022 13:23:15 +0100 Subject: [PATCH 2/2] relax types --- src/cursor.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cursor.jl b/src/cursor.jl index 1d9d458e..59cc272d 100644 --- a/src/cursor.jl +++ b/src/cursor.jl @@ -257,10 +257,10 @@ getFieldDeclBitWidth(c::CXCursor)::Int = clang_getFieldDeclBitWidth(c) getFieldDeclBitWidth(c::CLFieldDecl) = clang_getFieldDeclBitWidth(c) """ - getNumArguments(c::Union{CXCursor,CLFunctionDecl,CLCXXMethod,CLTypedefDecl}) -> Int + getNumArguments(c::Union{CXCursor,CLCursor}) -> Int Return the number of non-variadic arguments associated with a given cursor. """ -getNumArguments(c::Union{CXCursor,CLFunctionDecl,CLCXXMethod,CLTypedefDecl})::Int = clang_Cursor_getNumArguments(c) +getNumArguments(c::Union{CXCursor,CLCursor})::Int = clang_Cursor_getNumArguments(c) """ getArgument(c::CXCursor, i::Integer) -> CXCursor