-
Notifications
You must be signed in to change notification settings - Fork 127
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
Feature: info switch python parsing #1317
Conversation
Can you try to keep the initializations in the cpp file? This will cause everything to recompile anytime we try to tweak the code. |
Clang won't parse it. If you can figure out a way to get around the fact that clang only parses one file at a time... |
By not using clang for this check. I would run the check at run time as I suggested in #1315 (user should run a test job before submitting to grid anyways...) or somehow force the info switches to initialize at submission time. Putting code in the header also increases compile time. Any class that includes the |
I've tried to figure out a way to force info switches to initialize at submission time, but I cannot. So the easier way I've found is to do the parsing from within the xAH configuration instead -- but it won't be perfect since we can't handle all use-cases -- and this will only be used to check coverage.
I've fixed this now by creating a tempfile that's the concatenated inputs of the header/source and feeding that into Clang's single-file parser. |
@kkrizka any updates? Should I merge this in? |
Some things came up this week that I had to deal with urgently. But an alternative is on the way. |
This provides a JSON file that will be checked for changes in Travis-CI builds for helping with info switch parsing. A later PR will parse this to check against a provided xAH configuration for specific info-switches.
This PR also moves a lot of the declarations back into the header file for info switches.
/cc @mattleblanc