Changeset 1a6a6f2 for src/AST/Stmt.hpp
- Timestamp:
- Aug 19, 2021, 4:04:43 PM (4 years ago)
- Branches:
- ADT, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, pthread-emulation, qualifiedEnum
- Children:
- d8f8d08
- Parents:
- ed4d7c1 (diff), 315e5e3 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/AST/Stmt.hpp
red4d7c1 r1a6a6f2 426 426 }; 427 427 428 /// Mutex Statement 429 class MutexStmt final : public Stmt { 430 public: 431 ptr<Stmt> stmt; 432 std::vector<ptr<Expr>> mutexObjs; 433 434 MutexStmt( const CodeLocation & loc, const Stmt * stmt, 435 std::vector<ptr<Expr>> && mutexes, std::vector<Label> && labels = {} ) 436 : Stmt(loc, std::move(labels)), stmt(stmt), mutexObjs(std::move(mutexes)) {} 437 438 const Stmt * accept( Visitor & v ) const override { return v.visit( this ); } 439 private: 440 MutexStmt * clone() const override { return new MutexStmt{ *this }; } 441 MUTATE_FRIEND 442 }; 443 428 444 } 429 445
Note:
See TracChangeset
for help on using the changeset viewer.