Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/AST/Decl.hpp

    re67991f r2a8f0c1  
    102102        ptr<Expr> bitfieldWidth;
    103103
    104         ObjectDecl( const CodeLocation & loc, const std::string & name, const Type * type,
    105                 const Init * init = nullptr, Storage::Classes storage = {},
    106                 Linkage::Spec linkage = Linkage::C, const Expr * bitWd = nullptr,
     104        ObjectDecl( const CodeLocation & loc, const std::string & name, const Type * type, 
     105                const Init * init = nullptr, Storage::Classes storage = {}, 
     106                Linkage::Spec linkage = Linkage::C, const Expr * bitWd = nullptr, 
    107107                std::vector< ptr<Attribute> > && attrs = {}, Function::Specs fs = {} )
    108108        : DeclWithType( loc, name, storage, linkage, std::move(attrs), fs ), type( type ),
     
    321321};
    322322
    323 /// With statement `with (...) ...`
    324 class WithStmt final : public Decl {
    325 public:
    326         std::vector<ptr<Expr>> exprs;
    327         ptr<Stmt> stmt;
    328 
    329         WithStmt( const CodeLocation & loc, std::vector<ptr<Expr>> && exprs, const Stmt * stmt )
    330         : Decl(loc, "", Storage::Auto, Linkage::Cforall), exprs(std::move(exprs)), stmt(stmt) {}
    331 
    332         const Decl * accept( Visitor & v ) const override { return v.visit( this ); }
    333 private:
    334         WithStmt * clone() const override { return new WithStmt{ *this }; }
    335         MUTATE_FRIEND
    336 };
    337 
    338323class AsmDecl : public Decl {
    339324public:
Note: See TracChangeset for help on using the changeset viewer.