Changeset 615a096 for src/Parser/DeclarationNode.cc
- Timestamp:
- Mar 17, 2017, 9:58:23 AM (7 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:
- 409433da, 946bcca
- Parents:
- 395fc37
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Parser/DeclarationNode.cc
r395fc37 r615a096 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 17:16:31201713 // Update Count : 101 412 // Last Modified On : Fri Mar 17 08:46:05 2017 13 // Update Count : 1017 14 14 // 15 15 … … 432 432 for ( unsigned int i = 0; i < Type::NumTypeQualifier; i += 1 ) { // find duplicates 433 433 if ( qsrc[i] && qdst[i] ) { 434 appendError( error, string( "duplicate " ) + Type::Qualifiers ::Names[i] );434 appendError( error, string( "duplicate " ) + Type::QualifiersNames[i] ); 435 435 } // if 436 436 } // for … … 442 442 for ( unsigned int i = 0; i < Type::NumFuncSpecifier; i += 1 ) { // find duplicates 443 443 if ( funcSpecs[i] && src->funcSpecs[i] ) { 444 appendError( error, string( "duplicate " ) + Type::FuncSpecifiers ::Names[i] );444 appendError( error, string( "duplicate " ) + Type::FuncSpecifiersNames[i] ); 445 445 } // if 446 446 } // for … … 451 451 for ( unsigned int i = 0; i < Type::NumStorageClass; i += 1 ) { // find duplicates 452 452 if ( storageClasses[i] && src->storageClasses[i] ) { 453 appendError( error, string( "duplicate " ) + Type::StorageClasses ::Names[i] );453 appendError( error, string( "duplicate " ) + Type::StorageClassesNames[i] ); 454 454 } // if 455 455 } // for 456 456 // src is the new item being added and has a single bit 457 457 } else if ( ! src->storageClasses.is_threadlocal ) { // conflict ? 458 appendError( error, string( "conflicting " ) + Type::StorageClasses ::Names[storageClasses.ffs()] +459 " & " + Type::StorageClasses ::Names[src->storageClasses.ffs()] );458 appendError( error, string( "conflicting " ) + Type::StorageClassesNames[storageClasses.ffs()] + 459 " & " + Type::StorageClassesNames[src->storageClasses.ffs()] ); 460 460 src->storageClasses.reset(); // FIX to preserve invariant of one basic storage specifier 461 461 } // if
Note: See TracChangeset
for help on using the changeset viewer.