Changeset 3648d98
 Timestamp:
 May 15, 2019, 4:10:17 PM (4 years ago)
 Branches:
 ADT, armeh, astexperimental, cleanupdtors, enum, forallpointerdecay, jacob/cs343translation, jenkinssandbox, master, newast, newastuniqueexpr, pthreademulation, qualifiedEnum
 Children:
 89c2f7c9
 Parents:
 69bafd2
 Location:
 src
 Files:

 3 edited
Legend:
 Unmodified
 Added
 Removed

src/AST/Node.hpp
r69bafd2 r3648d98 135 135 const node_t & operator* () const { return *node; } 136 136 explicit operator bool() const { return node; } 137 operator const node_t * const() const { return node; }137 operator const node_t * () const { return node; } 138 138 139 139 template<typename o_node_t> 
src/AST/Type.hpp
r69bafd2 r3648d98 23 23 24 24 #include "CVQualifiers.hpp" 25 #include "Decl.hpp" 25 26 #include "Fwd.hpp" 26 27 #include "Node.hpp" // for Node, ptr … … 141 142 142 143 /// Check if this type represents an integer type 143 bool isInteger() const { return kind <=MAX_INTEGER_TYPE; }144 bool isInteger() const { return (unsigned)kind <= (unsigned)MAX_INTEGER_TYPE; } 144 145 145 146 const Type * accept( Visitor & v ) const override { return v.visit( this ); } 
src/InitTweak/InitTweak.cc
r69bafd2 r3648d98 515 515 } 516 516 const ast::Type* getPointerBase( const ast::Type* t ) { 517 if ( const ast::PointerType* p = dynamic_cast< const ast::PointerType* >( t ) ) { 518 return p>base; 519 } else if ( const ast::ArrayType* a = dynamic_cast< const ast::ArrayType* >( t ) ) { 520 return a>base; 521 } else if ( const ast::ReferenceType* r = dynamic_cast< const ast::ReferenceType* >( t ) ) { 522 return r>base; 523 } else return nullptr; 517 assert(!"needs to build Type.cpp before inclusion"); 518 // if ( const ast::PointerType* p = dynamic_cast< const ast::PointerType* >( t ) ) { 519 // return p>base; 520 // } else if ( const ast::ArrayType* a = dynamic_cast< const ast::ArrayType* >( t ) ) { 521 // return a>base; 522 // } else if ( const ast::ReferenceType* r = dynamic_cast< const ast::ReferenceType* >( t ) ) { 523 // return r>base; 524 // } else return nullptr; 524 525 } 525 526
Note: See TracChangeset
for help on using the changeset viewer.