-
Notifications
You must be signed in to change notification settings - Fork 277
rename is_lvalue -> is_assignable #6378
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
Conversation
The term 'lvalue' is nomenclature that is specific to C/C++. The function is_lvalue is meant to be used in the context of goto-programs, and thus, a name that suggests a relationship to C programs may be confusing.
Codecov Report
@@ Coverage Diff @@
## develop #6378 +/- ##
===========================================
- Coverage 75.91% 75.91% -0.01%
===========================================
Files 1517 1517
Lines 164024 164022 -2
===========================================
- Hits 124515 124513 -2
Misses 39509 39509
Continue to review full report at Codecov.
|
@@ -18,19 +18,20 @@ Author: Daniel Kroening, [email protected] | |||
#include "pointer_expr.h" | |||
#include "std_expr.h" | |||
|
|||
bool is_lvalue(const exprt &expr) | |||
bool is_assignable(const exprt &expr) |
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.
Should this perhaps be moved to goto-programs? The use in replace_symbol
obviously conflicts with that, but some follow-up cleanup may be necessary.
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.
Yes; there may well be a need to make copies of this function for particular uses. I'd see this as an orthogonal question to the renaming done here.
The term 'lvalue' is nomenclature that is specific to C/C++. The function
is_lvalue is meant to be used in the context of goto-programs, and thus, a
name that suggests a relationship to C programs may be confusing.