From 8fab89de580acb332cdc9e15cd977745284925b3 Mon Sep 17 00:00:00 2001 From: JamesWrigley Date: Tue, 5 Mar 2024 00:07:53 +0100 Subject: [PATCH] Update bindings --- lib/16/LibClang.jl | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/lib/16/LibClang.jl b/lib/16/LibClang.jl index 820e61fc..29ee3892 100644 --- a/lib/16/LibClang.jl +++ b/lib/16/LibClang.jl @@ -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) @@ -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). """