Changeset 366f5cd for src/AST/Expr.hpp


Ignore:
Timestamp:
Jun 23, 2026, 1:57:51 PM (25 hours ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
master
Children:
9d7a19f
Parents:
45d0e65
Message:

differentiate between C _Alignof and gcc alignof

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/AST/Expr.hpp

    r45d0e65 r366f5cd  
    1111// Last Modified By : Peter A. Buhr
    1212// Created On       : Fri May 10 10:30:00 2019
    13 // Update Count     : 8
     13// Update Count     : 24
    1414//
    1515
     
    495495public:
    496496        ptr<Type> type;
    497 
    498         AlignofExpr( const CodeLocation & loc, const Type * t );
    499         AlignofExpr( const CodeLocation & loc, const Type * t, const Type * r );
     497        enum Alignment { Alignof, __Alignof } kind;
     498
     499        AlignofExpr( const CodeLocation & loc, const Type * t, const Alignment kind );
     500        AlignofExpr( const CodeLocation & loc, const Type * t, const Type * r, const Alignment kind );
    500501
    501502        const Expr * accept( Visitor & v ) const override { return v.visit( this ); }
Note: See TracChangeset for help on using the changeset viewer.