ADT
        ast-experimental
        enum
        forall-pointer-decay
        pthread-emulation
        qualifiedEnum
      
      
        
          | Last change
 on this file since ee918356 was             357390f, checked in by Peter A. Buhr <pabuhr@…>, 6 years ago | 
        
          | 
formatting
 | 
        
          | 
              
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 | // BasicType.cc -- | 
|---|
| 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 Aug  4 21:07:44 2019 | 
|---|
| 13 | // Update Count     : 13 | 
|---|
| 14 | // | 
|---|
| 15 |  | 
|---|
| 16 | #include <cassert>  // for assert | 
|---|
| 17 | #include <list>     // for list | 
|---|
| 18 | #include <ostream>  // for operator<<, ostream | 
|---|
| 19 |  | 
|---|
| 20 | #include "Type.h"   // for BasicType, Type, BasicType::Kind, BasicType::Kind... | 
|---|
| 21 |  | 
|---|
| 22 | class Attribute; | 
|---|
| 23 |  | 
|---|
| 24 | BasicType::BasicType( const Type::Qualifiers &tq, Kind bt, const std::list< Attribute * > & attributes ) : Type( tq, attributes ), kind( bt ) {} | 
|---|
| 25 |  | 
|---|
| 26 | void BasicType::print( std::ostream &os, Indenter indent ) const { | 
|---|
| 27 | Type::print( os, indent ); | 
|---|
| 28 | os << BasicType::typeNames[ kind ]; | 
|---|
| 29 | } | 
|---|
| 30 |  | 
|---|
| 31 | bool BasicType::isInteger() const { | 
|---|
| 32 | return kind <= UnsignedInt128; | 
|---|
| 33 | } | 
|---|
| 34 |  | 
|---|
| 35 |  | 
|---|
| 36 | // Local Variables: // | 
|---|
| 37 | // tab-width: 4 // | 
|---|
| 38 | // mode: c++ // | 
|---|
| 39 | // compile-command: "make install" // | 
|---|
| 40 | // End: // | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.