ADTaaron-thesisarm-ehast-experimentalcleanup-dtorsdeferred_resndemanglerenumforall-pointer-decayjacob/cs343-translationjenkins-sandboxnew-astnew-ast-unique-exprnew-envno_listpersistent-indexerpthread-emulationqualifiedEnumresolv-newwith_gc
Last change
on this file since a2d4d1c was
33218c6,
checked in by Thierry Delisle <tdelisle@…>, 7 years ago
|
Merge branch 'master' of plg.uwaterloo.ca:software/cfa/cfa-cc
|
-
Property mode set to
100644
|
File size:
1.6 KB
|
Rev | Line | |
---|
[0dd3a2f] | 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 | // |
---|
[30f9072] | 7 | // FixFunction.h -- |
---|
[0dd3a2f] | 8 | // |
---|
| 9 | // Author : Richard C. Bilson |
---|
| 10 | // Created On : Sun May 17 17:02:08 2015 |
---|
| 11 | // Last Modified By : Peter A. Buhr |
---|
[6b0b624] | 12 | // Last Modified On : Sat Jul 22 09:45:55 2017 |
---|
| 13 | // Update Count : 4 |
---|
[0dd3a2f] | 14 | // |
---|
| 15 | |
---|
[6b0b624] | 16 | #pragma once |
---|
[51b7345] | 17 | |
---|
[30f9072] | 18 | #include "SynTree/Mutator.h" // for Mutator |
---|
| 19 | #include "SynTree/SynTree.h" // for Types |
---|
[51b7345] | 20 | |
---|
| 21 | namespace SymTab { |
---|
[82dd287] | 22 | /// Replaces function and array types by equivalent pointer types. |
---|
[0dd3a2f] | 23 | class FixFunction : public Mutator { |
---|
| 24 | typedef Mutator Parent; |
---|
| 25 | public: |
---|
| 26 | FixFunction(); |
---|
| 27 | |
---|
| 28 | bool get_isVoid() const { return isVoid; } |
---|
| 29 | void set_isVoid( bool newValue ) { isVoid = newValue; } |
---|
| 30 | private: |
---|
| 31 | virtual DeclarationWithType* mutate(FunctionDecl *functionDecl); |
---|
| 32 | |
---|
| 33 | virtual Type* mutate(VoidType *voidType); |
---|
| 34 | virtual Type* mutate(BasicType *basicType); |
---|
| 35 | virtual Type* mutate(PointerType *pointerType); |
---|
| 36 | virtual Type* mutate(ArrayType *arrayType); |
---|
| 37 | virtual Type* mutate(StructInstType *aggregateUseType); |
---|
| 38 | virtual Type* mutate(UnionInstType *aggregateUseType); |
---|
| 39 | virtual Type* mutate(EnumInstType *aggregateUseType); |
---|
[4040425] | 40 | virtual Type* mutate(TraitInstType *aggregateUseType); |
---|
[0dd3a2f] | 41 | virtual Type* mutate(TypeInstType *aggregateUseType); |
---|
| 42 | virtual Type* mutate(TupleType *tupleType); |
---|
[44b7088] | 43 | virtual Type* mutate(VarArgsType *varArgsType); |
---|
[89e6ffc] | 44 | virtual Type* mutate(ZeroType *zeroType); |
---|
| 45 | virtual Type* mutate(OneType *oneType); |
---|
[30f9072] | 46 | |
---|
[0dd3a2f] | 47 | bool isVoid; |
---|
| 48 | }; |
---|
[51b7345] | 49 | } // namespace SymTab |
---|
| 50 | |
---|
[0dd3a2f] | 51 | // Local Variables: // |
---|
| 52 | // tab-width: 4 // |
---|
| 53 | // mode: c++ // |
---|
| 54 | // compile-command: "make install" // |
---|
| 55 | // End: // |
---|
Note: See
TracBrowser
for help on using the repository browser.