[foreign-jextract] RFR: 8239491: Missing CursorKind and TypeKind constants for LLVM 9

Jorn Vernee jvernee at openjdk.java.net
Mon Feb 24 18:42:45 UTC 2020


Adds some missing LLVM9 CursorKind and TypeKind enum constants. Whenever these kinds are encountered during parsing and exception is throw, even if the value is otherwise ignored.

- Also renames ParamDecl to ParmDecl to keep parity with [`Index.h`](https://github.com/llvm/llvm-project/blob/master/clang/include/clang-c/Index.h#L1765)
- Also removes the `FirstExtraDecl` and `LastExtraDecl` constants, since these are just markers used in C, and we don't need them in Java (actually, they might cause problems by overwriting the actual values in the lookup map).

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

Commits:
 - 6265ea94: Add missing TypeKind and CursorKind constants

Changes: https://git.openjdk.java.net/panama-foreign/pull/28/files
 Webrev: https://webrevs.openjdk.java.net/panama-foreign/28/webrev.00
  Issue: https://bugs.openjdk.java.net/browse/JDK-8239491
  Stats: 142 lines in 3 files changed: 137 ins; 2 del; 3 mod
  Patch: https://git.openjdk.java.net/panama-foreign/pull/28.diff
  Fetch: git fetch https://git.openjdk.java.net/panama-foreign pull/28/head:pull/28

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


More information about the panama-dev mailing list