source: src/AST/FunctionSpec.hpp @ 7e89526

ADTarm-ehast-experimentalcleanup-dtorsenumforall-pointer-decayjacob/cs343-translationjenkins-sandboxnew-astnew-ast-unique-exprpthread-emulationqualifiedEnum
Last change on this file since 7e89526 was a300e4a, checked in by Aaron Moss <a3moss@…>, 5 years ago

Add some decls to the new AST

  • Property mode set to 100644
File size: 964 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// FunctionSpec.hpp --
8//
9// Author           : Aaron B. Moss
10// Created On       : Thu May 9 10:00:00 2019
11// Last Modified By : Aaron B. Moss
12// Last Modified On : Thu May 9 10:00:00 2019
13// Update Count     : 1
14//
15
16#pragma once
17
18#include "Bitfield.hpp"
19
20namespace ast {
21
22namespace Function {
23
24        /// Bitflags for function specifiers
25        enum {
26                Inline   = 1 << 0,
27                Noreturn = 1 << 1,
28                Fortran  = 1 << 2,
29                NumSpecs      = 3
30        };
31
32        /// Bitflag type for storage classes
33        union Specs {
34                unsigned int val;
35                struct {
36                        bool is_inline   : 1;
37                        bool is_noreturn : 1;
38                        bool is_fortran  : 1;
39                };
40
41                MakeBitfield( Specs )
42                MakeBitfieldPrint( NumSpecs )
43        };
44
45}
46}
47
48// Local Variables: //
49// tab-width: 4 //
50// mode: c++ //
51// compile-command: "make install" //
52// End: //
Note: See TracBrowser for help on using the repository browser.