- Timestamp:
- Jul 10, 2024, 3:39:26 AM (6 months ago)
- Branches:
- master
- Children:
- dbff8ec
- Parents:
- 550afde2
- Location:
- src/AST
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/AST/Create.cpp
r550afde2 rbb336a6 76 76 } 77 77 78 EnumDecl * asForward( EnumDecl const * decl ) { 79 if ( !decl->body ) { 80 return nullptr; 81 } 82 EnumDecl * fwd = new EnumDecl( decl->location, 83 decl->name, 84 decl->isCfa, 85 vectorCopy( decl->attributes ), 86 decl->linkage, 87 decl->base, 88 decl->hide 89 ); 90 fwd->params = vectorCopy( decl->params ); 91 return fwd; 78 92 } 93 94 } -
src/AST/Create.hpp
r550afde2 rbb336a6 24 24 StructDecl * asForward( StructDecl const * ); 25 25 UnionDecl * asForward( UnionDecl const * ); 26 EnumDecl * asForward( EnumDecl const * ); 26 27 27 28 }
Note: See TracChangeset
for help on using the changeset viewer.