-
Notifications
You must be signed in to change notification settings - Fork 273
Refactor/virtual register languages #6220
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
Refactor/virtual register languages #6220
Conversation
@danielsn for RMC / |
a9394cf
to
27c4b98
Compare
One issue with this PR is that we will now have four files that are basically identical. I had wanted to make this into the default implementation of |
27c4b98
to
c37f04c
Compare
Please see my comment on #6219 -- there should not be further extension of CBMC to support non-C languages. |
c37f04c
to
576015e
Compare
OK. I have removed the last commit which does that. Is the |
Codecov Report
@@ Coverage Diff @@
## develop #6220 +/- ##
===========================================
+ Coverage 76.17% 76.19% +0.01%
===========================================
Files 1484 1486 +2
Lines 162317 162389 +72
===========================================
+ Hits 123646 123729 +83
+ Misses 38671 38660 -11
Continue to review full report at Codecov.
|
576015e
to
251dabb
Compare
731daaa
to
7335e74
Compare
@tautschnig @peterschrammel @chrisr-diffblue this PR is now less controversial and is mostly a tidy up and refactor. Any chance of a review when you have a moment? |
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 looks ok to me. I don't have significant comment on the question of how to reduce duplicated code in different places.
1fb9ea8
to
cfe2678
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.
Solid refactoring 👍🏻
@chrisr-diffblue while you are reviewing things, any chance of a look at this? |
void memory_analyzer_parse_optionst::register_languages() | ||
{ | ||
// For now only C is supported due to the additional challenges of | ||
// mapping source code to debugging symbols in other languages. |
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.
Worth a reference to a GitHub issue here?
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.
I didn't know there was one! I'll have a look...
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.
I'm not immediately finding one; if you had one in mind can you post a link?
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.
Apologies for the chasing of the geese that are wild (positively livid...), I sort of half-assumed this was referring to the tickets discussing possible refactorings around languaget
and modes - but I realise now I mis-read this comment.
5001c9f
to
603ca7a
Compare
@tautschnig @peterschrammel @romainbrenguier you are code-owners for this, please can you review when you have time? I have removed the controversial commit. |
603ca7a
to
4d574dc
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.
Thank you for this cleanup!
It seems that adding one override to a class triggers clang's override check.
4d574dc
to
021116b
Compare
@peterschrammel or @romainbrenguier I need your sign-off for this 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.
Lgtm
Thanks for the fast review. I will merge when CI passes. |
This makes a number of refactorings to the registration of languages. They are in increasing order of controversy and I would suggest reviewing them commit by commit.
This connects to #6219 as it means that more tools are usable with the other front-ends.