source: src/SymTab/FixFunction.h @ 996c8ed

ADTast-experimental
Last change on this file since 996c8ed was 1931bb01, checked in by Andrew Beach <ajbeach@…>, 2 years ago

Converted 'Validate A' to the new AST. There some utility changes as well.

  • Property mode set to 100644
File size: 1.1 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 : Tue Jul 12 14:19:00 2022
13// Update Count     : 5
14//
15
16#pragma once
17
18#include "Common/PassVisitor.h" // for PassVisitor
19#include "SynTree/SynTree.h"    // for Types
20
21namespace ast {
22        class DeclWithType;
23        class Type;
24}
25
26namespace SymTab {
27        /// Replaces function and array types by equivalent pointer types. Returns true if type is
28        /// void
29        bool fixFunction( DeclarationWithType *& );
30
31        /// Returns declaration with function and array types replaced by equivalent pointer types.
32        /// Sets isVoid to true if type is void
33        const ast::DeclWithType * fixFunction( const ast::DeclWithType * dwt, bool & isVoid );
34        const ast::Type * fixFunction( const ast::Type * type, bool & isVoid );
35} // namespace SymTab
36
37// Local Variables: //
38// tab-width: 4 //
39// mode: c++ //
40// compile-command: "make install" //
41// End: //
Note: See TracBrowser for help on using the repository browser.