Changes in src/AST/Decl.hpp [e67991f:2a8f0c1]
- File:
-
- 1 edited
-
src/AST/Decl.hpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/AST/Decl.hpp
re67991f r2a8f0c1 102 102 ptr<Expr> bitfieldWidth; 103 103 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, 107 107 std::vector< ptr<Attribute> > && attrs = {}, Function::Specs fs = {} ) 108 108 : DeclWithType( loc, name, storage, linkage, std::move(attrs), fs ), type( type ), … … 321 321 }; 322 322 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_FRIEND336 };337 338 323 class AsmDecl : public Decl { 339 324 public:
Note:
See TracChangeset
for help on using the changeset viewer.