Changeset 4b8b2a4 for src/AST


Ignore:
Timestamp:
Oct 3, 2022, 1:46:49 PM (2 years ago)
Author:
Andrew Beach <ajbeach@…>
Branches:
ADT, ast-experimental, master
Children:
890f67a
Parents:
c02cef1
Message:

Make unset locations earier to find with a search for 'CodeLocation?()'.

Location:
src/AST
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/AST/SymbolTable.cpp

    rc02cef1 r4b8b2a4  
    316316
    317317void SymbolTable::addStruct( const std::string &id ) {
    318         addStruct( new StructDecl( CodeLocation{}, id ) );
     318        addStruct( new StructDecl( CodeLocation(), id ) );
    319319}
    320320
     
    358358
    359359void SymbolTable::addUnion( const std::string &id ) {
    360         addUnion( new UnionDecl( CodeLocation{}, id ) );
     360        addUnion( new UnionDecl( CodeLocation(), id ) );
    361361}
    362362
  • src/AST/Type.cpp

    rc02cef1 r4b8b2a4  
    176176        for ( const Type * ty : types ) {
    177177                members.emplace_back( new ObjectDecl{
    178                         CodeLocation{}, "", ty, new ListInit( CodeLocation{}, {}, {}, NoConstruct ),
     178                        CodeLocation(), "", ty, new ListInit( CodeLocation(), {}, {}, NoConstruct ),
    179179                        Storage::Classes{}, Linkage::Cforall } );
    180180        }
Note: See TracChangeset for help on using the changeset viewer.