Changeset 3c714ad
- Timestamp:
- Oct 30, 2023, 11:50:27 AM (11 months ago)
- Branches:
- master
- Children:
- 36e6f10
- Parents:
- 0b5e780
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/InitTweak/InitTweak.cc
r0b5e780 r3c714ad 107 107 }; 108 108 109 struct InitDepthChecker_new : public ast::WithGuards{109 struct InitDepthChecker_new { 110 110 bool result = true; 111 111 const ast::Type * type; … … 119 119 maxDepth++; 120 120 } 121 void previsit( ListInit * ) {121 void previsit( ast::ListInit const * ) { 122 122 curDepth++; 123 GuardAction( [this]() { curDepth--; } );124 123 if ( curDepth > maxDepth ) result = false; 124 } 125 void postvisit( ast::ListInit const * ) { 126 curDepth--; 125 127 } 126 128 };
Note: See TracChangeset
for help on using the changeset viewer.