- Timestamp:
- Feb 25, 2026, 12:52:05 AM (36 hours ago)
- Branches:
- stuck-waitfor-destruct
- Children:
- 2b3ebe5
- Parents:
- a30fceb
- git-author:
- Matthew Au-Yeung <mw2auyeu@…> (02/14/26 22:30:32)
- git-committer:
- Matthew Au-Yeung <mw2auyeu@…> (02/25/26 00:52:05)
- Location:
- src/AST
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/AST/Expr.cpp
ra30fceb rf1cb193 264 264 } 265 265 266 ConstantExpr * 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 266 272 ConstantExpr * ConstantExpr::from_string( const CodeLocation & loc, const std::string & str ) { 267 273 const Type * charType = new BasicType( BasicKind::Char, ast::CV::Const ); -
src/AST/Expr.hpp
ra30fceb rf1cb193 464 464 /// Generates an integer constant of the given unsigned long int. 465 465 static ConstantExpr * from_ulong( const CodeLocation & loc, unsigned long i ); 466 /// Generates an integer constant of the given unsigned long long int. 467 static ConstantExpr * from_ulonglong( const CodeLocation & loc, unsigned long long i ); 466 468 /// Generates a string constant from the given string (char type, unquoted string). 467 469 static ConstantExpr * from_string( const CodeLocation & loc, const std::string & string );
Note:
See TracChangeset
for help on using the changeset viewer.