Last change
on this file since 96de72b was
bb336a6,
checked in by JiadaL <j82liang@…>, 4 months ago
|
Fixed the problem when enum use another enumerator as initializer
|
-
Property mode set to
100644
|
File size:
867 bytes
|
Rev | Line | |
---|
[8f1e035] | 1 | // |
---|
| 2 | // Cforall Version 1.0.0 Copyright (C) 2015 University of Waterloo |
---|
| 3 | // |
---|
| 4 | // The contents of this file are covered under the licence agreement in the |
---|
| 5 | // file "LICENCE" distributed with Cforall. |
---|
| 6 | // |
---|
| 7 | // Create.hpp -- Helpers to create pieces of the AST. |
---|
| 8 | // |
---|
| 9 | // Author : Andrew Beach |
---|
| 10 | // Created On : Tue Sep 20 13:25:00 2022 |
---|
| 11 | // Last Modified By : Andrew Beach |
---|
[20737104] | 12 | // Last Modified On : Tue Sep 20 15:34:00 2022 |
---|
| 13 | // Update Count : 1 |
---|
[8f1e035] | 14 | // |
---|
| 15 | |
---|
| 16 | #include "AST/Fwd.hpp" |
---|
| 17 | |
---|
| 18 | namespace ast { |
---|
| 19 | |
---|
| 20 | /// Create a forward declaration of the existing declaration. |
---|
| 21 | /// If the argument is already a forward declaration, return nullptr instead. |
---|
| 22 | /// More efficient than the deepCopy and clear pattern. |
---|
[20737104] | 23 | FunctionDecl * asForward( FunctionDecl const * ); |
---|
[8f1e035] | 24 | StructDecl * asForward( StructDecl const * ); |
---|
| 25 | UnionDecl * asForward( UnionDecl const * ); |
---|
[bb336a6] | 26 | EnumDecl * asForward( EnumDecl const * ); |
---|
[8f1e035] | 27 | |
---|
| 28 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.