Skip to content

[FFI] Make binaryninjacore.h parseable with default xcode clang#8180

Draft
bloombit-dev wants to merge 1 commit into
Vector35:devfrom
bloombit-dev:ffi_binaryninjacore_parseable
Draft

[FFI] Make binaryninjacore.h parseable with default xcode clang#8180
bloombit-dev wants to merge 1 commit into
Vector35:devfrom
bloombit-dev:ffi_binaryninjacore_parseable

Conversation

@bloombit-dev
Copy link
Copy Markdown

This pull request makes binaryninjacore.h parseable with default MacOS clang compiler.

binaryninjacore.h does not parse with default arguments under clang packaged from Xcode with the following versions:

Xcode 26.4.1, Build version 17E202
Apple clang version 21.0.0 (clang-2100.0.123.102).

bloombit@Mac binaryninja-api % clang -fsyntax-only binaryninjacore.h
binaryninjacore.h:827:3: error: must use 'enum' tag to refer to type 'BNFunctionGraphType'
  827 |                 BNFunctionGraphType type;
      |                 ^
      |                 enum
binaryninjacore.h:1188:3: error: must use 'enum' tag to refer to type 'BNInlineDuringAnalysis'
 1188 |                 BNInlineDuringAnalysis value;
      |                 ^
      |                 enum
...
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.

@CLAassistant
Copy link
Copy Markdown

CLAassistant commented May 16, 2026

CLA assistant check
All committers have signed the CLA.

@bloombit-dev bloombit-dev marked this pull request as draft May 16, 2026 21:02
@bloombit-dev bloombit-dev changed the title Make binaryninjacore.h parseable with default xcode clang [FFI] Make binaryninjacore.h parseable with default xcode clang May 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants