Skip to content

Commit

Permalink
Add missing dispatches for getArgument
Browse files Browse the repository at this point in the history
  • Loading branch information
Gnimuc authored Mar 9, 2023
1 parent 5cc2252 commit 3152718
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cursor.jl
Original file line number Diff line number Diff line change
Expand Up @@ -272,11 +272,11 @@ getNumArguments(c::Union{CXCursor,CLCursor})::Int = clang_Cursor_getNumArguments

"""
getArgument(c::CXCursor, i::Integer) -> CXCursor
getArgument(c::Union{CLFunctionDecl,CLCXXMethod}, i::Integer) -> CLCursor
getArgument(c::Union{CLFunctionDecl,CLCXXMethod,CLConstructor}, i::Integer) -> CLCursor
Return the argument cursor of a function or method.
"""
getArgument(c::CXCursor, i::Integer) = clang_Cursor_getArgument(c, Unsigned(i))
getArgument(c::Union{CLFunctionDecl,CLCXXMethod}, i::Integer)::CLCursor =
getArgument(c::Union{CLFunctionDecl,CLCXXMethod,CLConstructor}, i::Integer)::CLCursor =
clang_Cursor_getArgument(c, Unsigned(i))

## TODO:
Expand Down

0 comments on commit 3152718

Please sign in to comment.