Skip to content

Commit

Permalink
Update bindings
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesWrigley committed Mar 6, 2024
1 parent 656f3dd commit 8fab89d
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions lib/16/LibClang.jl
Original file line number Diff line number Diff line change
Expand Up @@ -4330,6 +4330,19 @@ function clang_visitChildren(parent, visitor, client_data)
@ccall libclang.clang_visitChildren(parent::CXCursor, visitor::CXCursorVisitor, client_data::CXClientData)::Cuint
end

mutable struct _CXChildVisitResult end

const CXCursorVisitorBlock = Ptr{_CXChildVisitResult}

"""
clang_visitChildrenWithBlock(parent, block)

Visits the children of a cursor using the specified block. Behaves identically to [`clang_visitChildren`](@ref)() in all other respects.
"""
function clang_visitChildrenWithBlock(parent, block)
@ccall libclang.clang_visitChildrenWithBlock(parent::CXCursor, block::CXCursorVisitorBlock)::Cuint
end

"""
clang_getCursorUSR(arg1)

Expand Down Expand Up @@ -6086,6 +6099,18 @@ function clang_findIncludesInFile(TU, file, visitor)
@ccall libclang.clang_findIncludesInFile(TU::CXTranslationUnit, file::CXFile, visitor::CXCursorAndRangeVisitor)::CXResult
end

mutable struct _CXCursorAndRangeVisitorBlock end

const CXCursorAndRangeVisitorBlock = Ptr{_CXCursorAndRangeVisitorBlock}

function clang_findReferencesInFileWithBlock(arg1, arg2, arg3)
@ccall libclang.clang_findReferencesInFileWithBlock(arg1::CXCursor, arg2::CXFile, arg3::CXCursorAndRangeVisitorBlock)::CXResult
end

function clang_findIncludesInFileWithBlock(arg1, arg2, arg3)
@ccall libclang.clang_findIncludesInFileWithBlock(arg1::CXTranslationUnit, arg2::CXFile, arg3::CXCursorAndRangeVisitorBlock)::CXResult
end

"""
The client's data object that is associated with a [`CXFile`](@ref).
"""
Expand Down

0 comments on commit 8fab89d

Please sign in to comment.