@@ -344,10 +344,10 @@ class goto_check_ct
344
344
// /
345
345
// / A flag's initial value (before any `set_flag` or `disable_flag`) is restored
346
346
// / when the entire object goes out of scope.
347
- class flag_resett
347
+ class flag_overridet
348
348
{
349
349
public:
350
- explicit flag_resett (const source_locationt &source_location)
350
+ explicit flag_overridet (const source_locationt &source_location)
351
351
: source_location(source_location)
352
352
{
353
353
}
@@ -401,7 +401,7 @@ class flag_resett
401
401
402
402
// / \brief Restore the values of all flags that have been
403
403
// / modified via `set_flag`.
404
- ~flag_resett ()
404
+ ~flag_overridet ()
405
405
{
406
406
for (const auto &flag_pair : flags_to_reset)
407
407
*flag_pair.first = flag_pair.second ;
@@ -2027,7 +2027,7 @@ void goto_check_ct::goto_check(
2027
2027
current_target = it;
2028
2028
goto_programt::instructiont &i = *it;
2029
2029
2030
- flag_resett resetter (i.source_location ());
2030
+ flag_overridet resetter (i.source_location ());
2031
2031
const auto &pragmas = i.source_location ().get_pragmas ();
2032
2032
for (const auto &d : pragmas)
2033
2033
{
@@ -2110,7 +2110,7 @@ void goto_check_ct::goto_check(
2110
2110
// Disable enum range checks for left-hand sides as their values are yet
2111
2111
// to be set (by this assignment).
2112
2112
{
2113
- flag_resett resetter (i.source_location ());
2113
+ flag_overridet resetter (i.source_location ());
2114
2114
resetter.disable_flag (enable_enum_range_check, " enum_range_check" );
2115
2115
check (assign_lhs);
2116
2116
}
0 commit comments