Changeset 17fa94f for src/AST/Expr.cpp
- Timestamp:
- Feb 11, 2025, 11:24:07 AM (12 months ago)
- Branches:
- master
- Children:
- 691bf0a
- Parents:
- 3e5e32cf
- File:
-
- 1 edited
-
src/AST/Expr.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/AST/Expr.cpp
r3e5e32cf r17fa94f 281 281 // --- SizeofExpr 282 282 283 SizeofExpr::SizeofExpr( const CodeLocation & loc, const Type * t ) 284 : Expr( loc, ast::TranslationDeps::getSizeType() ), type( t ) {} 283 SizeofExpr::SizeofExpr( const CodeLocation & loc, const Type * type ) 284 : SizeofExpr( loc, type, nullptr ) {} 285 286 SizeofExpr::SizeofExpr( const CodeLocation & loc, const Type * type, const Type * result ) 287 : Expr( loc, result ), type( type ) {} 285 288 286 289 // --- AlignofExpr 287 290 288 AlignofExpr::AlignofExpr( const CodeLocation & loc, const Type * t ) 289 : Expr( loc, ast::TranslationDeps::getSizeType() ), type( t ) {} 291 AlignofExpr::AlignofExpr( const CodeLocation & loc, const Type * type ) 292 : AlignofExpr( loc, type, nullptr ) {} 293 294 AlignofExpr::AlignofExpr( const CodeLocation & loc, const Type * type, const Type * result ) 295 : Expr( loc, result ), type( type ) {} 290 296 291 297 // --- CountofExpr 292 298 293 299 CountofExpr::CountofExpr( const CodeLocation & loc, const Type * t ) 294 : Expr( loc , ast::TranslationDeps::getSizeType()), type( t ) {}300 : Expr( loc ), type( t ) {} 295 301 296 302 // --- OffsetofExpr 297 303 298 304 OffsetofExpr::OffsetofExpr( const CodeLocation & loc, const Type * ty, const DeclWithType * mem ) 299 : Expr( loc, ast::TranslationDeps::getSizeType() ), type( ty ), member( mem ) { 305 : OffsetofExpr( loc, ty, mem, nullptr ) {} 306 307 OffsetofExpr::OffsetofExpr( const CodeLocation & loc, const Type * ty, const DeclWithType * mem, const Type * res ) 308 : Expr( loc, res ), type( ty ), member( mem ) { 300 309 assert( type ); 301 310 assert( member ); … … 305 314 306 315 OffsetPackExpr::OffsetPackExpr( const CodeLocation & loc, const StructInstType * ty ) 307 : Expr( loc, new ArrayType{ 308 ast::TranslationDeps::getSizeType(), nullptr, FixedLen, DynamicDim } 309 ), type( ty ) { 316 : Expr( loc ), type( ty ) { 310 317 assert( type ); 311 318 }
Note:
See TracChangeset
for help on using the changeset viewer.