Changeset 6e8bd43 for src/SynTree
- Timestamp:
- Mar 16, 2017, 7:41:45 AM (8 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
- Children:
- 64b6913, 68fe077a
- Parents:
- 905eca1
- Location:
- src/SynTree
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified src/SynTree/FunctionDecl.cc ¶
r905eca1 r6e8bd43 10 10 // Created On : Mon May 18 07:44:20 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Tue Mar 7 07:54:58201713 // Update Count : 6812 // Last Modified On : Wed Mar 15 23:33:43 2017 13 // Update Count : 72 14 14 // 15 15 … … 65 65 printAll( get_attributes(), os, indent ); 66 66 67 DeclarationNode::print_StorageClass( os, get_storageClasses());68 DeclarationNode::print_FuncSpec( os, get_funcSpec());67 get_storageClasses().print( os ); 68 get_funcSpec().print( os ); 69 69 70 70 if ( get_type() ) { … … 91 91 // xxx - should printShort print attributes? 92 92 93 DeclarationNode::print_StorageClass( os, get_storageClasses());94 DeclarationNode::print_FuncSpec( os, get_funcSpec());93 get_storageClasses().print( os ); 94 get_funcSpec().print( os ); 95 95 96 96 if ( get_type() ) { -
TabularUnified src/SynTree/NamedTypeDecl.cc ¶
r905eca1 r6e8bd43 10 10 // Created On : Mon May 18 07:44:20 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Tue Mar 7 07:39:41 201713 // Update Count : 1 012 // Last Modified On : Wed Mar 15 23:25:41 2017 13 // Update Count : 12 14 14 // 15 15 … … 39 39 os << get_name() << ": "; 40 40 } // if 41 DeclarationNode::print_StorageClass( os, get_storageClasses());41 get_storageClasses().print( os ); 42 42 os << typeString(); 43 43 if ( base ) { … … 61 61 os << get_name() << ": "; 62 62 } // if 63 DeclarationNode::print_StorageClass( os, get_storageClasses());63 get_storageClasses().print( os ); 64 64 os << typeString(); 65 65 if ( base ) { -
TabularUnified src/SynTree/ObjectDecl.cc ¶
r905eca1 r6e8bd43 10 10 // Created On : Mon May 18 07:44:20 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Tue Mar 7 07:55:24201713 // Update Count : 5 412 // Last Modified On : Wed Mar 15 23:26:22 2017 13 // Update Count : 57 14 14 // 15 15 … … 47 47 printAll( get_attributes(), os, indent ); 48 48 49 DeclarationNode::print_StorageClass( os, get_storageClasses());49 get_storageClasses().print( os ); 50 50 51 51 if ( get_type() ) { … … 81 81 // xxx - should printShort print attributes? 82 82 83 DeclarationNode::print_StorageClass( os, get_storageClasses());83 get_storageClasses().print( os ); 84 84 85 85 if ( get_type() ) { -
TabularUnified src/SynTree/Type.cc ¶
r905eca1 r6e8bd43 10 10 // Created On : Mon May 18 07:44:20 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Wed Mar 15 2 1:22:16201713 // Update Count : 1 512 // Last Modified On : Wed Mar 15 23:14:35 2017 13 // Update Count : 19 14 14 // 15 15 … … 59 59 } 60 60 61 const char * Type::Qualifier Names[] = { "const", "restrict", "volatile", "lvalue", "mutex", "_Atomic", "NoTypeQualifierNames" };61 const char * Type::Qualifiers::Names[] = { "const", "restrict", "volatile", "lvalue", "mutex", "_Atomic" }; 62 62 63 63 void Type::print( std::ostream &os, int indent ) const { -
TabularUnified src/SynTree/Type.h ¶
r905eca1 r6e8bd43 10 10 // Created On : Mon May 18 07:44:20 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Wed Mar 15 2 1:28:09201713 // Update Count : 8 512 // Last Modified On : Wed Mar 15 23:28:33 2017 13 // Update Count : 89 14 14 // 15 15 … … 24 24 class Type : public BaseSyntaxNode { 25 25 public: 26 static const char * QualifierNames[];27 28 26 enum { Const = 1 << 0, Restrict = 1 << 1, Volatile = 1 << 2, Lvalue = 1 << 3, Mutex = 1 << 4, Atomic = 1 << 5, NumTypeQualifier = 6 }; 29 27 union Qualifiers { 28 static const char * Names[]; 30 29 enum { Mask = ~(Restrict | Lvalue) }; 31 30 unsigned int val; … … 38 37 bool isAtomic : 1; 39 38 }; 39 40 40 Qualifiers() : val( 0 ) {} 41 41 Qualifiers( unsigned int val ) : val( val ) {} … … 80 80 for ( unsigned int i = 0; i < NumTypeQualifier; i += 1 ) { 81 81 if ( (*this)[i] ) { 82 os << QualifierNames[i] << ' ';82 os << Names[i] << ' '; 83 83 } // if 84 84 } // for
Note: See TracChangeset
for help on using the changeset viewer.