You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Gives the following input (from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/netinet6/in6.h:153)
When run through clang2py, produces a python script that fails to import:
$ python
Python 3.10.14 (main, May 18 2024, 01:48:55) [Clang 15.0.0 (clang-1500.3.9.4)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import minunion
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/jmg/github/ngtcp2/minunion.py", line 127
class union_union (unnamed at minunion.h:6:9)(Union):
^^^^^^^^^^
SyntaxError: invalid syntax. Perhaps you forgot a comma?
This is because the unnamed union is given an incompatible name by clang: union_union (unnamed at minunion.h:6:9).
If I'm pointed to a location where munging the name should be done, I'll generate a PR w/ a test and the name munging so things don't break.
The text was updated successfully, but these errors were encountered:
Tested with: 2.3.5.dev2+g0df7325
Gives the following input (from
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/netinet6/in6.h:153
)When run through clang2py, produces a python script that fails to import:
This is because the unnamed union is given an incompatible name by clang:
union_union (unnamed at minunion.h:6:9)
.If I'm pointed to a location where munging the name should be done, I'll generate a PR w/ a test and the name munging so things don't break.
The text was updated successfully, but these errors were encountered: