Changeset 1931bb01 for src/Validate
- Timestamp:
- Jul 12, 2022, 3:21:18 PM (22 months ago)
- Branches:
- ADT, ast-experimental, master, pthread-emulation, qualifiedEnum
- Children:
- b9f8274
- Parents:
- 9c6443e
- Location:
- src/Validate
- Files:
-
- 10 added
- 2 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 -
src/Validate/module.mk
r9c6443e r1931bb01 26 26 Validate/EliminateTypedef.cpp \ 27 27 Validate/EliminateTypedef.hpp \ 28 Validate/EnumAndPointerDecay.cpp \ 29 Validate/EnumAndPointerDecay.hpp \ 28 30 Validate/FindSpecialDeclsNew.cpp \ 29 31 Validate/FixQualifiedTypes.cpp \ 30 32 Validate/FixQualifiedTypes.hpp \ 33 Validate/FixReturnTypes.cpp \ 34 Validate/FixReturnTypes.hpp \ 31 35 Validate/ForallPointerDecay.cpp \ 32 36 Validate/ForallPointerDecay.hpp \ … … 37 41 Validate/HoistStruct.cpp \ 38 42 Validate/HoistStruct.hpp \ 43 Validate/HoistTypeDecls.cpp \ 44 Validate/HoistTypeDecls.hpp \ 39 45 Validate/InitializerLength.cpp \ 40 46 Validate/InitializerLength.hpp \ … … 44 50 Validate/LinkReferenceToTypes.hpp \ 45 51 Validate/NoIdSymbolTable.hpp \ 52 Validate/ReplaceTypedef.cpp \ 53 Validate/ReplaceTypedef.hpp \ 46 54 Validate/ReturnCheck.cpp \ 47 Validate/ReturnCheck.hpp 55 Validate/ReturnCheck.hpp \ 56 Validate/VerifyCtorDtorAssign.cpp \ 57 Validate/VerifyCtorDtorAssign.hpp 48 58 49 59 SRCDEMANGLE += $(SRC_VALIDATE)
Note: See TracChangeset
for help on using the changeset viewer.