source: src/CodeGen/Options.h @ 3e96559

ADTarm-ehast-experimentalcleanup-dtorsenumforall-pointer-decayjacob/cs343-translationjenkins-sandboxnew-astnew-ast-unique-exprpthread-emulationqualifiedEnum
Last change on this file since 3e96559 was da09ba1, checked in by Andrew Beach <ajbeach@…>, 5 years ago

attribute((unused)) on nameless parameters.

  • Property mode set to 100644
File size: 962 bytes
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// Options.h --
8//
9// Author           : Andrew Beach
10// Created On       : Tue Apr 30 11:36:00 2019
11// Last Modified By : Andrew Beach
12// Last Modified On : Wed May  1 15:52:00 2019
13// Update Count     : 1
14//
15
16#pragma once
17
18namespace CodeGen {
19        struct Options {
20                // External Options: Same thoughout a pass.
21                bool pretty;
22                bool genC;
23                bool lineMarks;
24                bool printExprTypes;
25
26                // Internal Options: Changed on some recurisive calls.
27                bool inParameterList = false;
28
29                Options(bool pretty, bool genC, bool lineMarks, bool printExprTypes) :
30                        pretty(pretty), genC(genC), lineMarks(lineMarks), printExprTypes(printExprTypes)
31                {}
32        };
33} // namespace CodeGen
34
35// Local Variables: //
36// tab-width: 4 //
37// mode: c++ //
38// compile-command: "make install" //
39// End: //
Note: See TracBrowser for help on using the repository browser.