Changeset a56d544 for src/AST/Expr.cpp


Ignore:
Timestamp:
Feb 14, 2026, 10:38:00 PM (2 days ago)
Author:
Matthew Au-Yeung <mw2auyeu@…>
Branches:
stuck-waitfor-destruct
Children:
7e8c071
Parents:
c9d36b1
git-author:
Matthew Au-Yeung <mw2auyeu@…> (02/14/26 22:30:32)
git-committer:
Matthew Au-Yeung <mw2auyeu@…> (02/14/26 22:38:00)
Message:

cleanup and add tests

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/AST/Expr.cpp

    rc9d36b1 ra56d544  
    264264}
    265265
     266ConstantExpr * ConstantExpr::from_ulonglong( const CodeLocation & loc, unsigned long long i ) {
     267        return new ConstantExpr{
     268                loc, new BasicType{ BasicKind::LongLongUnsignedInt }, std::to_string( i ) + "ULL",
     269                (unsigned long long)i };
     270}
     271
    266272ConstantExpr * ConstantExpr::from_string( const CodeLocation & loc, const std::string & str ) {
    267273        const Type * charType = new BasicType( BasicKind::Char, ast::CV::Const );
Note: See TracChangeset for help on using the changeset viewer.