Ignore:
Timestamp:
May 1, 2025, 11:29:29 AM (5 months ago)
Author:
Andrew Beach <ajbeach@…>
Branches:
master
Children:
57c7e6c4
Parents:
b1f225e5
Message:

Moved over some clean-up I did in various attempted fixes. InitDepthChecker has a very rare error case that has now been removed.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/InitTweak/InitTweak.cpp

    rb1f225e5 ref05cf0  
    6868        };
    6969
    70         struct InitDepthChecker {
     70        struct InitDepthChecker : public ast::WithShortCircuiting {
    7171                bool result = true;
    7272                const ast::Type * type;
     
    8686                void postvisit( ast::ListInit const * ) {
    8787                        curDepth--;
     88                }
     89                void previsit( ast::SingleInit const * ) {
     90                        // We don't want to visit the value field.
     91                        visit_children = false;
    8892                }
    8993        };
Note: See TracChangeset for help on using the changeset viewer.