Changeset 1931bb01 for src/Validate/EliminateTypedef.cpp
- Timestamp:
- Jul 12, 2022, 3:21:18 PM (2 years ago)
- Branches:
- ADT, ast-experimental, master, pthread-emulation, qualifiedEnum
- Children:
- b9f8274
- Parents:
- 9c6443e
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Validate/EliminateTypedef.cpp
r9c6443e r1931bb01 10 10 // Created On : Wed Apr 20 16:37:00 2022 11 11 // Last Modified By : Andrew Beach 12 // Last Modified On : Mon Apr 25 14:26:00 202213 // Update Count : 012 // Last Modified On : Mon Jul 11 16:30:00 2022 13 // Update Count : 1 14 14 // 15 15 … … 28 28 29 29 struct EliminateTypedefCore { 30 // Remove typedefs from inside aggregates. 30 31 ast::StructDecl const * previsit( ast::StructDecl const * decl ); 31 32 ast::UnionDecl const * previsit( ast::UnionDecl const * decl ); 33 // Remove typedefs from statement lists. 32 34 ast::CompoundStmt const * previsit( ast::CompoundStmt const * stmt ); 35 // Remove typedefs from control structure initializers. 36 ast::IfStmt const * previsit( ast::IfStmt const * stmt ); 37 ast::ForStmt const * previsit( ast::ForStmt const * stmt ); 38 ast::WhileDoStmt const * previsit( ast::WhileDoStmt const * stmt ); 33 39 }; 34 40 … … 63 69 } 64 70 71 ast::IfStmt const * EliminateTypedefCore::previsit( ast::IfStmt const * stmt ) { 72 return field_erase_if( stmt, &ast::IfStmt::inits, isTypedefStmt ); 73 } 74 75 ast::ForStmt const * EliminateTypedefCore::previsit( ast::ForStmt const * stmt ) { 76 return field_erase_if( stmt, &ast::ForStmt::inits, isTypedefStmt ); 77 } 78 79 ast::WhileDoStmt const * EliminateTypedefCore::previsit( ast::WhileDoStmt const * stmt ) { 80 return field_erase_if( stmt, &ast::WhileDoStmt::inits, isTypedefStmt ); 81 } 82 65 83 } // namespace 66 84
Note: See TracChangeset
for help on using the changeset viewer.