-
Notifications
You must be signed in to change notification settings - Fork 46
Remove builtin types #669
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
Remove builtin types #669
Conversation
|
I've opened a sister PR in nasa/fprime#3417 that updates the |
|
Future note to self, the PRIs for scalars are defined twice with slightly different names: |
I think there are additional macros in there now so that |
|
@bocchino should be ready for re-review, and once finished a point-release! |
compiler/tools/fpp-to-cpp/test/component/base/ActiveAsyncProductsComponentAc.ref.hpp
Outdated
Show resolved
Hide resolved
|
@LeStarch. It looks good so far. Just a couple of comments:
Where is the corresponding F Prime branch, so I can run |
|
It looks like the corresponding F Prime branch is here: nasa/fprime#3422. |
|
@LeStarch I'm not seeing |
|
@bocchino, I have fixes the issues, except for the one I left a comment about. I have also pushed to the FPrime branch so you can run cpp-check. I have:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! I added a few comments explaining what is going on with the headers in the alias code gen. I confirmed that check-cpp runs cleanly.
|
Before merging this branch into fpp/main, I would like to get nasa/fprime#3434 reviewed and merged. It fixes problems in FppTest, which we need for testing the integration of this branch with F Prime. |
|
I confirmed that everything works with the updated FppTest. Merging now. |
This PR removes the special handling of "builtin" types, which are type aliases that were previously handled inside
FpConfig.hby C-level typedefs.Some notes:
#include <FpConfig.h[pp]>from generated alias headers since it's redundant now. It was previously there in case there was an alias of a built-in#define PRIcode that was not referencing built-in PRIs properly#definein generated code. With builtin's removed now the old builtinPRIs were being hit.Notice that builtin types like
U16have PRIs definedPRI[typeName.lower()where-as aliases arePRI_[typeName]. That underscore was always assumed in previously generated code (see diffs for what I'm talking about).Closes #649