-
Bug
-
Resolution: Fixed
-
P3
-
repo-panama
-
None
-
generic
-
generic
jdk.jextract and jdk.internal.clang modules use 'isAnonymous' everywhere as if anonymous is just about name being empty. But clang's use of "anonymous cursor" is about embedded anonymous struct or union.
For example:
struct X {
struct { int i; int j; }; // <-- anonymous struct per clang
int k;
};
We should avoid using 'anonymous' is the other sense (name being empty) - instead we should just compare name/spelling of Tree/Cursor/Type being empty string for those cases.
For example:
struct X {
struct { int i; int j; }; // <-- anonymous struct per clang
int k;
};
We should avoid using 'anonymous' is the other sense (name being empty) - instead we should just compare name/spelling of Tree/Cursor/Type being empty string for those cases.