File tree Expand file tree Collapse file tree 4 files changed +6
-5
lines changed Expand file tree Collapse file tree 4 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -148,7 +148,7 @@ typet ansi_c_declarationt::full_type(
148
148
149
149
// retain typedef for dump-c
150
150
if (get_is_typedef ())
151
- result.set (ID_typedef ,declarator.get_name ());
151
+ result.set (ID_C_typedef ,declarator.get_name ());
152
152
153
153
return result;
154
154
}
Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ void c_typecheck_baset::typecheck_type(typet &type)
52
52
c_qualifiers+=c_qualifierst (type.subtype ());
53
53
bool packed=type.get_bool (ID_C_packed);
54
54
exprt alignment=static_cast <const exprt &>(type.find (ID_C_alignment));
55
- irept _typedef=type.find (ID_typedef );
55
+ irept _typedef=type.find (ID_C_typedef );
56
56
57
57
type.swap (type.subtype ());
58
58
@@ -62,7 +62,7 @@ void c_typecheck_baset::typecheck_type(typet &type)
62
62
if (alignment.is_not_nil ())
63
63
type.add (ID_C_alignment, alignment);
64
64
if (_typedef.is_not_nil ())
65
- type.add (ID_typedef , _typedef);
65
+ type.add (ID_C_typedef , _typedef);
66
66
67
67
return ; // done
68
68
}
Original file line number Diff line number Diff line change @@ -232,9 +232,9 @@ std::string expr2ct::convert_rec(
232
232
std::string d=
233
233
declarator==" " ?declarator:" " +declarator;
234
234
235
- if (src.find (ID_typedef ).is_not_nil ())
235
+ if (src.find (ID_C_typedef ).is_not_nil ())
236
236
{
237
- return q+id2string (src.get (ID_typedef ))+d;
237
+ return q+id2string (src.get (ID_C_typedef ))+d;
238
238
}
239
239
240
240
if (src.id ()==ID_bool)
Original file line number Diff line number Diff line change @@ -251,6 +251,7 @@ concatenation
251
251
infinity
252
252
return_type
253
253
typedef
254
+ C_typedef
254
255
extern
255
256
static
256
257
auto
You can’t perform that action at this time.
0 commit comments