Changeset ed96731 for src/InitTweak
- Timestamp:
- Nov 18, 2024, 3:43:38 PM (5 months ago)
- Branches:
- master
- Children:
- 29075d1
- Parents:
- 0dffe91
- Location:
- src/InitTweak
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified src/InitTweak/FixInit.cpp ¶
r0dffe91 red96731 105 105 /// generate/resolve copy construction expressions for each, and generate/resolve destructors for both 106 106 /// arguments and return value temporaries 107 struct ResolveCopyCtors final : public ast::WithGuards, public ast::WithStmtsToAdd <>, public ast::WithSymbolTable, public ast::WithShortCircuiting, public ast::WithVisitorRef<ResolveCopyCtors>, public ast::WithConstTranslationUnit {107 struct ResolveCopyCtors final : public ast::WithGuards, public ast::WithStmtsToAdd, public ast::WithSymbolTable, public ast::WithShortCircuiting, public ast::WithVisitorRef<ResolveCopyCtors>, public ast::WithConstTranslationUnit { 108 108 const ast::Expr * postvisit( const ast::ImplicitCopyCtorExpr * impCpCtorExpr ); 109 109 const ast::StmtExpr * previsit( const ast::StmtExpr * stmtExpr ); … … 177 177 /// insert destructor calls at the appropriate places. must happen before CtorInit nodes are removed 178 178 /// (currently by FixInit) 179 struct InsertDtors final : public ObjDeclCollector, public ast::WithStmtsToAdd <>{179 struct InsertDtors final : public ObjDeclCollector, public ast::WithStmtsToAdd { 180 180 InsertDtors( ast::Pass<LabelFinder> & finder ) : finder( finder ), labelVars( finder.core.vars ) {} 181 181 … … 194 194 195 195 /// expand each object declaration to use its constructor after it is declared. 196 struct FixInit : public ast::WithStmtsToAdd <>{196 struct FixInit : public ast::WithStmtsToAdd { 197 197 static void fixInitializers( ast::TranslationUnit &translationUnit ); 198 198 … … 230 230 231 231 /// expands ConstructorExpr nodes into comma expressions, using a temporary for the first argument 232 struct FixCtorExprs final : public ast::WithDeclsToAdd <>, public ast::WithSymbolTable, public ast::WithShortCircuiting, public ast::WithConstTranslationUnit {232 struct FixCtorExprs final : public ast::WithDeclsToAdd, public ast::WithSymbolTable, public ast::WithShortCircuiting, public ast::WithConstTranslationUnit { 233 233 const ast::Expr * postvisit( const ast::ConstructorExpr * ctorExpr ); 234 234 }; -
TabularUnified src/InitTweak/GenInit.cpp ¶
r0dffe91 red96731 46 46 // Outer pass finds declarations, for their type could wrap a type that needs hoisting 47 47 struct HoistArrayDimension_NoResolve final : 48 public ast::WithDeclsToAdd <>, public ast::WithShortCircuiting,48 public ast::WithDeclsToAdd, public ast::WithShortCircuiting, 49 49 public ast::WithGuards, public ast::WithConstTranslationUnit, 50 50 public ast::WithVisitorRef<HoistArrayDimension_NoResolve>, … … 205 205 206 206 struct ReturnFixer final : 207 public ast::WithStmtsToAdd <>, ast::WithGuards, ast::WithShortCircuiting {207 public ast::WithStmtsToAdd, ast::WithGuards, ast::WithShortCircuiting { 208 208 void previsit( const ast::FunctionDecl * decl ); 209 209 const ast::ReturnStmt * previsit( const ast::ReturnStmt * stmt );
Note: See TracChangeset
for help on using the changeset viewer.