Skip to content

Options to generate uncallable C++ functions. #3139

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Apr 4, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Further formatting fix.
  • Loading branch information
adetaylor committed Feb 19, 2025
commit 572238ec3370d40ccba992e9c681ba1cd6c019f8
6 changes: 4 additions & 2 deletions bindgen/ir/function.rs
Original file line number Diff line number Diff line change
Expand Up @@ -732,7 +732,8 @@ impl ClangSubItemParser for Function {
return Err(ParseError::Continue);
}
if cursor.access_specifier() == CX_CXXPrivate &&
!context.options().generate_private_functions {
!context.options().generate_private_functions
{
return Err(ParseError::Continue);
}

Expand All @@ -753,7 +754,8 @@ impl ClangSubItemParser for Function {
}

if cursor.is_deleted_function() &&
!context.options().generate_deleted_functions {
!context.options().generate_deleted_functions
{
return Err(ParseError::Continue);
}

Expand Down
Loading