source: src/SymTab/FixFunction.h @ 30f9072

aaron-thesisarm-ehcleanup-dtorsdeferred_resndemanglerenumforall-pointer-decayjacob/cs343-translationjenkins-sandboxnew-astnew-ast-unique-exprnew-envno_listpersistent-indexerresolv-newwith_gc
Last change on this file since 30f9072 was 30f9072, checked in by Thierry Delisle <tdelisle@…>, 5 years ago

More cleanup on the headers

  • Property mode set to 100644
File size: 1.7 KB
Line 
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// FixFunction.h --
8//
9// Author           : Richard C. Bilson
10// Created On       : Sun May 17 17:02:08 2015
11// Last Modified By : Peter A. Buhr
12// Last Modified On : Wed Mar  2 17:34:06 2016
13// Update Count     : 3
14//
15
16#ifndef FIXFUNCTION_H
17#define FIXFUNCTION_H
18
19#include "SynTree/Mutator.h"  // for Mutator
20#include "SynTree/SynTree.h"  // for Types
21
22namespace SymTab {
23        /// Replaces function and array types by equivalent pointer types.
24        class FixFunction : public Mutator {
25                typedef Mutator Parent;
26          public:
27                FixFunction();
28
29                bool get_isVoid() const { return isVoid; }
30                void set_isVoid( bool newValue ) { isVoid = newValue; }
31          private:
32                virtual DeclarationWithType* mutate(FunctionDecl *functionDecl);
33
34                virtual Type* mutate(VoidType *voidType);
35                virtual Type* mutate(BasicType *basicType);
36                virtual Type* mutate(PointerType *pointerType);
37                virtual Type* mutate(ArrayType *arrayType);
38                virtual Type* mutate(StructInstType *aggregateUseType);
39                virtual Type* mutate(UnionInstType *aggregateUseType);
40                virtual Type* mutate(EnumInstType *aggregateUseType);
41                virtual Type* mutate(TraitInstType *aggregateUseType);
42                virtual Type* mutate(TypeInstType *aggregateUseType);
43                virtual Type* mutate(TupleType *tupleType);
44                virtual Type* mutate(VarArgsType *varArgsType);
45                virtual Type* mutate(ZeroType *zeroType);
46                virtual Type* mutate(OneType *oneType);
47
48                bool isVoid;
49        };
50} // namespace SymTab
51
52#endif // FIXFUNCTION_H
53
54// Local Variables: //
55// tab-width: 4 //
56// mode: c++ //
57// compile-command: "make install" //
58// End: //
Note: See TracBrowser for help on using the repository browser.