Ignore:
Timestamp:
Jun 8, 2023, 3:19:43 PM (3 years ago)
Author:
JiadaL <j82liang@…>
Branches:
ADT
Parents:
044ae62
Message:

Finish Adt POC

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Validate/EliminateTypedef.cpp

    r044ae62 rfa2c005  
    3131        ast::StructDecl const * previsit( ast::StructDecl const * decl );
    3232        ast::UnionDecl const * previsit( ast::UnionDecl const * decl );
     33        ast::AdtDecl const * previsit( ast::AdtDecl const * decl );
    3334        // Remove typedefs from statement lists.
    3435        ast::CompoundStmt const * previsit( ast::CompoundStmt const * stmt );
     
    6566}
    6667
     68ast::AdtDecl const * EliminateTypedefCore::previsit( ast::AdtDecl const * decl ) {
     69        return field_erase_if( decl, &ast::AdtDecl::members, isTypedef );
     70}
     71
    6772ast::CompoundStmt const * EliminateTypedefCore::previsit( ast::CompoundStmt const * stmt ) {
    6873        return field_erase_if( stmt, &ast::CompoundStmt::kids, isTypedefStmt );
Note: See TracChangeset for help on using the changeset viewer.