-
Notifications
You must be signed in to change notification settings - Fork 37
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
classfinder onEndOfTranslationUnit() assert failure #7
Comments
In case anyone happens on this, the reason AST wasn't finding matches is because this section of code:
If METAREFLECT isn't defined, then the annotate attribute isn't substituted into the code via the macro. Since nothing is found, the program throws an error code and exits. Here's the following code block looks like
It makes sense that the CLASS() etc macros are just defined as class or union. But I'm not sure what the purpose of the META_OBJECT macro is. Anyways, since then I've been able to get this up and running on using llvm via vcpkg, which was quite an adventure to get building. |
need add predefine |
I've been messing around with this tool, as part of some personal research into clang and llvm. I think the reflection possibilities are really interesting and I like how it has a similar interface to UHT. Anyways I'm having an issue when I try to run the tool on a test header file, which is properly annotated.
It looks like the classfinder m_filename is never set, which results in an assert failure in the classfinder override of onEndOfTranslationUnit(). From what I've been able to gather the classfinder FoundRecord function seems to set this filename, but it never gets called. So it looks like for whatever reason the AST isn't finding matches and I cannot figure out why.
I know this is kind of a shot in the dark since this doesn't seem to be a very active repo, but I was wondering if anyone else has run into this. Thanks!
The text was updated successfully, but these errors were encountered: