-
Notifications
You must be signed in to change notification settings - Fork 276
Re-use C type conversion in C++ front-end [blocks: #4560] #4559
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
Re-use C type conversion in C++ front-end [blocks: #4560] #4559
Conversation
9845680
to
3362dea
Compare
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.
This PR failed Diffblue compatibility checks (cbmc commit: 9845680).
Build URL: https://travis-ci.com/diffblue/test-gen/builds/109122612
Status will be re-evaluated on next push.
Common spurious failures include: the cbmc commit has disappeared in the mean time (e.g. in a force-push); the author is not in the list of contributors (e.g. first-time contributors); compatibility was already broken by an earlier merge.
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.
This PR failed Diffblue compatibility checks (cbmc commit: 3362dea).
Build URL: https://travis-ci.com/diffblue/test-gen/builds/109123056
Status will be re-evaluated on next push.
Common spurious failures include: the cbmc commit has disappeared in the mean time (e.g. in a force-push); the author is not in the list of contributors (e.g. first-time contributors); compatibility was already broken by an earlier merge.
3362dea
to
d4c6749
Compare
d4c6749
to
705b075
Compare
extern_cnt, noreturn_cnt, wchar_t_cnt, char16_t_cnt, char32_t_cnt, | ||
int8_cnt, int16_cnt, int32_cnt, int64_cnt, ptr32_cnt, ptr64_cnt, | ||
float80_cnt, float128_cnt, int128_cnt; | ||
std::size_t wchar_t_count, char16_t_count, char32_t_count; |
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.
It may be worth adding a comment here that these do exist in C11, but are typedefs, whereas they are keywords in C++ since in C++11. This is in essence the reason why the C++ converter differs from the C one.
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.
Good point - I've added a comment, echoing pretty much what you said.
This avoids duplicating code and the need to update code in two places to add new features.
705b075
to
f13e8f9
Compare
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.
✔️
Passed Diffblue compatibility checks (cbmc commit: f13e8f9).
Build URL: https://travis-ci.com/diffblue/test-gen/builds/111893298
…sion C++ front-end: Declarator to symbol conversion follows C implementation [depends-on: diffblue#4559]
This avoids duplicating code and the need to update code in two places to add new features.
Only the last commit is new, the other two are #4557 and #4558, respectively.