source: src/CodeGen/GenType.h @ 0589e83

Last change on this file since 0589e83 was 8941b6b, checked in by Andrew Beach <ajbeach@…>, 8 months ago

Direct translation of code generation.

  • Property mode set to 100644
File size: 1.2 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// GenType.h --
8//
9// Author           : Richard C. Bilson
10// Created On       : Mon May 18 07:44:20 2015
11// Last Modified By : Peter A. Buhr
12// Last Modified On : Sun Feb 16 04:11:40 2020
13// Update Count     : 5
14//
15
16#pragma once
17
18#include <string>  // for string
19
20#include "CodeGen/Options.h" // for Options
21
22class Type;
23namespace ast {
24        class Type;
25}
26
27namespace CodeGen {
28        std::string genType( Type *type, const std::string &baseString, const Options &options );
29        std::string genType( Type *type, const std::string &baseString, bool pretty = false, bool genC = false, bool lineMarks = false );
30        std::string genPrettyType( Type * type, const std::string & baseString );
31
32std::string genType( ast::Type const * type, const std::string & base, const Options & options );
33std::string genTypeNoAttr( ast::Type const * type, const std::string & base, const Options & options );
34
35} // namespace CodeGen
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.