- Timestamp:
- Mar 16, 2017, 9:22:34 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:
- d6d747d
- Parents:
- ddfd945
- Location:
- src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/CodeGen/CodeGenerator.cc
rddfd945 rfb04321 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 23:31:48201713 // Update Count : 4 7912 // Last Modified On : Thu Mar 16 09:09:09 2017 13 // Update Count : 480 14 14 // 15 15 … … 895 895 896 896 void CodeGenerator::handleStorageClass( DeclarationWithType * decl ) { 897 if ( decl->get_storageClasses(). val != 0) {897 if ( decl->get_storageClasses().any() ) { 898 898 decl->get_storageClasses().print( output ); 899 899 } // if -
src/Parser/DeclarationNode.cc
rddfd945 rfb04321 10 10 // Created On : Sat May 16 12:34:05 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Thu Mar 16 0 8:37:57 201713 // Update Count : 100 612 // Last Modified On : Thu Mar 16 09:10:57 2017 13 // Update Count : 1007 14 14 // 15 15 … … 1032 1032 // inline _Noreturn int g( int i ); // allowed 1033 1033 // inline _Noreturn int i; // disallowed 1034 if ( type->kind != TypeData::Function && funcSpecs. val != 0) {1034 if ( type->kind != TypeData::Function && funcSpecs.any() ) { 1035 1035 throw SemanticError( "invalid function specifier for ", this ); 1036 1036 } // if … … 1042 1042 // inlne _Noreturn struct S { ... }; // disallowed 1043 1043 // inlne _Noreturn enum E { ... }; // disallowed 1044 if ( funcSpecs. val != 0) {1044 if ( funcSpecs.any() ) { 1045 1045 throw SemanticError( "invalid function specifier for ", this ); 1046 1046 } // if
Note: See TracChangeset
for help on using the changeset viewer.