-
-
Notifications
You must be signed in to change notification settings - Fork 66
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can`t parse attributes defined by macro #51
Comments
Yes, unfortunately, I'm not sure if we have any workaround for this. The problem is that libclamg-C does not parse or give access to these attributes correctly, so we need to parse them ourselves... but then we parse from the original source, not the postprocessed sources, hence why attribute parsing doesn't work when using macros. |
This issue is causing us issues as well. I was wondering if during |
Only basic parsing is performed by this PR but it does allow for a macro to hold an scoped attribute with arguments.
Only basic parsing is performed by this PR but it does allow for a macro to hold an scoped attribute with arguments.
Only basic parsing is performed by this PR but it does allow for a macro to hold an scoped attribute with arguments.
Only basic parsing is performed by this PR but it does allow for a macro to hold an scoped attribute with arguments.
I try to parse DirectX headers and parser doesn't handle
uuid
attribute if it is defined by macro:As a workaround, replacing MIDL_INTERFACE by regex works and parser returns correct attributes
Both
ParseAttributes
andParseMacros
are set totrue
You can reproduce it if you replace input text in TestStructAttributes and enable macros parsing.
The text was updated successfully, but these errors were encountered: