Changeset 37c3db8 for src


Ignore:
Timestamp:
Jan 13, 2025, 1:01:46 PM (3 months ago)
Author:
Michael Brooks <mlbrooks@…>
Branches:
master
Children:
9b9d3f9
Parents:
86cccd5
Message:

Improve pointer's debug print format to include array-like detail when present.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified src/AST/Print.cpp

    r86cccd5 r37c3db8  
    15211521                if ( ! node->isArray() ) {
    15221522                        os << "pointer to ";
     1523                        safe_print( node->base );
    15231524                } else {
    15241525                        os << "decayed ";
     
    15311532                        } else if ( node->dimension ) {
    15321533                                os << "array of ";
     1534                        } else {
     1535                                os << "open array of ";
     1536                        }
     1537
     1538                        safe_print( node->base );
     1539
     1540                        if ( node->dimension ) {
     1541                                os << " with dimension of ";
    15331542                                node->dimension->accept( *this );
    1534                                 os << " ";
    1535                         }
    1536                 }
    1537                 safe_print( node->base );
     1543                        }
     1544                }
    15381545
    15391546                return node;
Note: See TracChangeset for help on using the changeset viewer.