apache / apache/arrow-nanoarrow

When generating .pxd, warn for public but unexported functions

Open
#563 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
C
Stars
249
Forks
68
Avg merge
2d 21h
Merged PRs (30d)
11

Description

It's possible to add a function to `inline_array.h` or other header included by `nanoarrow.h` which is nevertheless not included in generated `.pxd`. The error is then simply "no matching function" when compiling the `.pxd`, which is not informative. It'd be better if the pxd could recognize function definitions or declarations which aren't translatable into a `cdef`, then warn if those aren't on an exclusion list.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by locating the generator that produces the .pxd from nanoarrow.h and inspect how inline_array.h and other included headers are translated. Trace how exclusions are represented, then determine how warnings should identify public declarations that cannot become cdef entries and verify the behavior with the generator's existing checks or tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
40/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.