RFR: 7903285: jextract should skip static symbols [v2]

Maurizio Cimadamore mcimadamore at openjdk.org
Tue Sep 6 13:35:59 UTC 2022


On Tue, 6 Sep 2022 13:30:11 GMT, Athijegannathan Sundararajan <sundar at openjdk.org> wrote:

>> Cursor linkage kind CXLinkage_Internal is used for static variables and static functions. Filtering the cursors with that linkage kind. Most of the changes are due to regenerated clang bindings to include clang_getCursorLinkage and CXLinkageKind enum constants.
>
> Athijegannathan Sundararajan has updated the pull request incrementally with one additional commit since the last revision:
> 
>   by miakste, used llvm 10 to regenerate bindings. Using llvm 13.0.0 now.

test/testng/org/openjdk/jextract/test/toolprovider/test7903285.h line 25:

> 23: 
> 24: void func(int);
> 25: inline int mul(int x, int y) { return x*y; }

should we have examples with also `static` (and also `static inline`) e.g. 2x2 matrix: { static, no static } x {inline, no inline }

-------------

PR: https://git.openjdk.org/jextract/pull/70


More information about the jextract-dev mailing list