Opened 15 years ago

Closed 15 years ago

#321 closed task (fixed)

Make ASTTransformer to find startof nodes

Reported by: zirkel Owned by: zirkel
Priority: major Milestone:
Component: ast Version:
Keywords: Cc:

Description

Arrays might be used as pointers or as arrays depending on context. There are two cases:

p[e] when p is a pointer type gets translated to *(p+e).

The expressions *a, a+e, e+a, a-a1, etc. where a is an array type need a startof node in front of the a. This effectively translates a to &a[0].

Change History (1)

comment:1 by zirkel, 15 years ago

Resolution: fixed
Status: newclosed

Added a new ASTTransformer called StartOfFinder to find these nodes and insert the startof.

Note: See TracTickets for help on using tickets.