source: src/SymTab/FixFunction.h@ 764db43

ADT aaron-thesis arm-eh ast-experimental cleanup-dtors deferred_resn demangler enum forall-pointer-decay jacob/cs343-translation jenkins-sandbox new-ast new-ast-unique-expr new-env no_list persistent-indexer pthread-emulation qualifiedEnum resolv-new with_gc
Last change on this file since 764db43 was 6b0b624, checked in by Peter A. Buhr <pabuhr@…>, 8 years ago

change #ifndef to #pragma once

  • Property mode set to 100644
File size: 1.6 KB
RevLine 
[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//
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
[6b0b624]12// Last Modified On : Sat Jul 22 09:45:55 2017
13// Update Count : 4
[0dd3a2f]14//
15
[6b0b624]16#pragma once
[51b73452]17
18#include "SynTree/Mutator.h"
19
20namespace SymTab {
[82dd287]21 /// Replaces function and array types by equivalent pointer types.
[0dd3a2f]22 class FixFunction : public Mutator {
23 typedef Mutator Parent;
24 public:
25 FixFunction();
26
27 bool get_isVoid() const { return isVoid; }
28 void set_isVoid( bool newValue ) { isVoid = newValue; }
29 private:
30 virtual DeclarationWithType* mutate(FunctionDecl *functionDecl);
31
32 virtual Type* mutate(VoidType *voidType);
33 virtual Type* mutate(BasicType *basicType);
34 virtual Type* mutate(PointerType *pointerType);
35 virtual Type* mutate(ArrayType *arrayType);
36 virtual Type* mutate(StructInstType *aggregateUseType);
37 virtual Type* mutate(UnionInstType *aggregateUseType);
38 virtual Type* mutate(EnumInstType *aggregateUseType);
[4040425]39 virtual Type* mutate(TraitInstType *aggregateUseType);
[0dd3a2f]40 virtual Type* mutate(TypeInstType *aggregateUseType);
41 virtual Type* mutate(TupleType *tupleType);
[44b7088]42 virtual Type* mutate(VarArgsType *varArgsType);
[89e6ffc]43 virtual Type* mutate(ZeroType *zeroType);
44 virtual Type* mutate(OneType *oneType);
[51b73452]45
[0dd3a2f]46 bool isVoid;
47 };
[51b73452]48} // namespace SymTab
49
[0dd3a2f]50// Local Variables: //
51// tab-width: 4 //
52// mode: c++ //
53// compile-command: "make install" //
54// End: //
Note: See TracBrowser for help on using the repository browser.