Changeset 2d019af for src/AST/Decl.hpp
- Timestamp:
- Mar 12, 2021, 11:14:29 PM (3 years ago)
- Branches:
- ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- 41ca6fa, e867b44
- Parents:
- 6083392
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/AST/Decl.hpp
r6083392 r2d019af 10 10 // Created On : Thu May 9 10:00:00 2019 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Mon Jan 11 20:48:38202113 // Update Count : 3 012 // Last Modified On : Fri Mar 12 18:25:05 2021 13 // Update Count : 32 14 14 // 15 15 … … 365 365 }; 366 366 367 /// C-preprocessor directive `#...` 368 class DirectiveDecl : public Decl { 369 public: 370 ptr<DirectiveStmt> stmt; 371 372 DirectiveDecl( const CodeLocation & loc, DirectiveStmt * stmt ) 373 : Decl( loc, "", {}, {} ), stmt(stmt) {} 374 375 const DirectiveDecl * accept( Visitor & v ) const override { return v.visit( this ); } 376 private: 377 DirectiveDecl * clone() const override { return new DirectiveDecl( *this ); } 378 MUTATE_FRIEND 379 }; 380 367 381 class StaticAssertDecl : public Decl { 368 382 public:
Note: See TracChangeset
for help on using the changeset viewer.