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].
Note:
See TracTickets
for help on using tickets.

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