Opened 6 years ago
Closed 9 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 , 9 months ago
comment:2 by , 9 months ago
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
Don't know if we have checked this use case, but the change was made to
SizeofExprandAlignofExpr.