Opened 6 years ago

Closed 7 months ago

#135 closed task (fixed)

Modify SizeofExpr argument

Reported by: a3moss Owned by:
Priority: minor Component: cfa-cc
Version: 1.0 Keywords:
Cc:

Description

Currently, SizeofExpr has both type and expr members, which are mutually exclusive. It may be a worthwhile simplification to just use the expr member, with TypeExpr representing a type.

The motivating case would be allowing attributes on the argument of a sizeof expression, e.g:

sizeof(int __attribute__ ((aligned (8))))

Currently this is handled by allowing all types (not just ReferenceToType) to have a list of attributes, but the attribute list could be moved back down to ReferenceToType in this case.

Change History (2)

comment:1 by ajbeach, 7 months ago

Don't know if we have checked this use case, but the change was made to SizeofExpr and AlignofExpr.

comment:2 by ajbeach, 7 months ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.