Changeset 53f4b55
- Timestamp:
- Feb 12, 2025, 4:12:04 PM (7 months ago)
- Branches:
- master
- Children:
- c341b57
- Parents:
- 5e8d75bb
- Location:
- src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
src/AST/Expr.cpp
r5e8d75bb r53f4b55 301 301 // --- OffsetofExpr 302 302 303 OffsetofExpr::OffsetofExpr( const CodeLocation & loc, const Type * ty, const DeclWithType * mem )304 : OffsetofExpr( loc, ty, mem, nullptr ) {}305 306 303 OffsetofExpr::OffsetofExpr( const CodeLocation & loc, const Type * ty, const DeclWithType * mem, const Type * res ) 307 304 : Expr( loc, res ), type( ty ), member( mem ) { … … 324 321 325 322 // --- CommaExpr 323 326 324 bool CommaExpr::get_lvalue() const { 327 325 // This is wrong by C, but the current implementation uses it. -
src/AST/Expr.hpp
r5e8d75bb r53f4b55 539 539 readonly<DeclWithType> member; 540 540 541 OffsetofExpr( const CodeLocation & loc, const Type * ty, const DeclWithType * mem );542 541 OffsetofExpr( const CodeLocation & loc, const Type * ty, const DeclWithType * mem, const Type * res ); 543 542 -
src/GenPoly/Box.cpp
r5e8d75bb r53f4b55 2002 2002 new ast::OffsetofExpr( expr->location, 2003 2003 deepCopy( type ), 2004 memberDecl 2004 memberDecl, 2005 getLayoutType( transUnit() ) 2005 2006 ) 2006 2007 ) );
Note:
See TracChangeset
for help on using the changeset viewer.