[foreign-jextract] [Rev 01] RFR: 8241483: Add jextract API to provide developer information about include

Henry Jen henryjen at openjdk.java.net
Fri Apr 10 03:48:34 UTC 2020


> Positon.origin() return the most top header include this position path. Positon.depth() provide a default
> implementation to figure out how deep the include is.
> CursorPosition is moved out into a separate file, and the logic of tracking the shorted include path is in the
> PositionTracker.
> The origin() method implementation has to be lazy because we only know the most top include until finished
> preprocessing.
> empty.h is intentionally leave blank, this is to make sure a complete empty cursor cycle, but it seems this case can
> happen with #ifndef <xxx> #define <XXX> ... #endif pattern. However, intentionally leave blank to make sure any change
> to parsing have a change to interfere, for example, it's not clear if copyright in comments can produce something with
> different parsing options.

Henry Jen has updated the pull request with a new target base due to a merge or a rebase.

This pull request has been closed without being integrated.

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

Changes: https://git.openjdk.java.net/panama-foreign/pull/63/files
 Webrev: https://webrevs.openjdk.java.net/panama-foreign/63/webrev.01
  Stats: 0 lines in 0 files changed: 0 ins; 0 del; 0 mod
  Patch: https://git.openjdk.java.net/panama-foreign/pull/63.diff
  Fetch: git fetch https://git.openjdk.java.net/panama-foreign pull/63/head:pull/63

PR: https://git.openjdk.java.net/panama-foreign/pull/63


More information about the panama-dev mailing list