@@ -2017,8 +2017,8 @@ void cpp_typecheckt::typecheck_side_effect_function_call(
20172017 {
20182018 if (expr.function ().type ().find (" to-member" ).is_not_nil ())
20192019 {
2020- const exprt &bound=
2021- static_cast <const exprt &>(expr.function ().type ().find (" #bound " ));
2020+ const exprt &bound =
2021+ static_cast <const exprt &>(expr.function ().type ().find (ID_C_bound ));
20222022
20232023 if (bound.is_nil ())
20242024 {
@@ -2032,7 +2032,7 @@ void cpp_typecheckt::typecheck_side_effect_function_call(
20322032 expr.arguments ().insert (expr.arguments ().begin (), bound);
20332033
20342034 // we don't need the object any more
2035- expr.function ().type ().remove (" #bound " );
2035+ expr.function ().type ().remove (ID_C_bound );
20362036 }
20372037
20382038 // do implicit dereference
@@ -2060,8 +2060,7 @@ void cpp_typecheckt::typecheck_side_effect_function_call(
20602060 }
20612061 else if (expr.function ().type ().id ()==ID_code)
20622062 {
2063- if (expr.function ().type ().get_bool (" #is_virtual" ) &&
2064- !is_qualified)
2063+ if (expr.function ().type ().get_bool (ID_C_is_virtual) && !is_qualified)
20652064 {
20662065 exprt vtptr_member;
20672066 if (op0.id ()==ID_member || op0.id ()==ID_ptrmember)
@@ -2093,9 +2092,9 @@ void cpp_typecheckt::typecheck_side_effect_function_call(
20932092 vtptr_member.set (ID_component_name, vtable_name);
20942093
20952094 // look for the right entry
2096- irep_idt vtentry_component_name=
2097- vt_compo.type ().subtype ().get_string (ID_identifier)+ " :: " +
2098- expr.function ().type ().get_string (" #virtual_name " );
2095+ irep_idt vtentry_component_name =
2096+ vt_compo.type ().subtype ().get_string (ID_identifier) +
2097+ " :: " + expr.function ().type ().get_string (ID_C_virtual_name );
20992098
21002099 exprt vtentry_member (ID_ptrmember);
21012100 vtentry_member.copy_to_operands (vtptr_member);
@@ -2190,10 +2189,10 @@ void cpp_typecheckt::typecheck_side_effect_function_call(
21902189 member);
21912190
21922191 // special case for the initialization of parents
2193- if (member.get_bool (" #not_accessible " ))
2192+ if (member.get_bool (ID_C_not_accessible ))
21942193 {
21952194 assert (member.get (ID_C_access)!=" " );
2196- tmp_object_expr.set (" #not_accessible " , true );
2195+ tmp_object_expr.set (ID_C_not_accessible , true );
21972196 tmp_object_expr.set (ID_C_access, member.get (ID_C_access));
21982197 }
21992198
@@ -2307,7 +2306,7 @@ void cpp_typecheckt::typecheck_function_call_arguments(
23072306 exprt::operandst::iterator arg_it=expr.arguments ().begin ();
23082307 for (const auto ¶meter : parameters)
23092308 {
2310- if (parameter.get_bool (" #call_by_value " ))
2309+ if (parameter.get_bool (ID_C_call_by_value ))
23112310 {
23122311 assert (is_reference (parameter.type ()));
23132312
@@ -2383,7 +2382,7 @@ void cpp_typecheckt::typecheck_method_application(
23832382
23842383 const symbolt &symbol=lookup (member_expr.get (ID_component_name));
23852384 symbolt &method_symbol=symbol_table.get_writeable_ref (symbol.name );
2386- const symbolt &tag_symbol= lookup (symbol.type .get (" #member_name " ));
2385+ const symbolt &tag_symbol = lookup (symbol.type .get (ID_C_member_name ));
23872386
23882387 // build the right template map
23892388 // if this is an instantiated template class method
@@ -2409,15 +2408,15 @@ void cpp_typecheckt::typecheck_method_application(
24092408 new_function.add_source_location ()=member_expr.source_location ();
24102409 expr.function ().swap (new_function);
24112410
2412- if (!expr.function ().type ().get_bool (" #is_static " ))
2411+ if (!expr.function ().type ().get_bool (ID_C_is_static ))
24132412 {
24142413 const code_typet &func_type=to_code_type (symbol.type );
24152414 typet this_type=func_type.parameters ().front ().type ();
24162415
24172416 // Special case. Make it a reference.
24182417 assert (this_type.id ()==ID_pointer);
24192418 this_type.set (ID_C_reference, true );
2420- this_type.set (" #this " , true );
2419+ this_type.set (ID_C_this , true );
24212420
24222421 if (expr.arguments ().size ()==func_type.parameters ().size ())
24232422 {
@@ -2690,7 +2689,7 @@ void cpp_typecheckt::convert_pmop(exprt &expr)
26902689 }
26912690
26922691 exprt tmp (expr.op1 ());
2693- tmp.type ().set (" #bound " , expr.op0 ());
2692+ tmp.type ().set (ID_C_bound , expr.op0 ());
26942693 expr.swap (tmp);
26952694 return ;
26962695}
@@ -2714,8 +2713,7 @@ void cpp_typecheckt::typecheck_expr_function_identifier(exprt &expr)
27142713
27152714void cpp_typecheckt::typecheck_expr (exprt &expr)
27162715{
2717- bool override_constantness=
2718- expr.get_bool (" #override_constantness" );
2716+ bool override_constantness = expr.get_bool (ID_C_override_constantness);
27192717
27202718 // We take care of an ambiguity in the C++ grammar.
27212719 // Needs to be done before the operands!
0 commit comments