- Timestamp:
- Jul 13, 2018, 6:33:05 PM (6 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, no_list, persistent-indexer, pthread-emulation, qualifiedEnum
- Children:
- dffaeac
- Parents:
- 8f91c9ae
- Location:
- src/Parser
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Parser/TypedefTable.cc
r8f91c9ae r26ef3b2 10 10 // Created On : Sat May 16 15:20:13 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Wed Jul 11 11:47:47201813 // Update Count : 25 512 // Last Modified On : Thu Jul 12 16:16:24 2018 13 // Update Count : 256 14 14 // 15 15 … … 100 100 void TypedefTable::up( bool forall ) { 101 101 level += 1; 102 kindTable.getNote( kindTable.currentScope() ) = (Note){ level, forall | getEnclForall() };102 kindTable.getNote( kindTable.currentScope() ) = (Note){ level, forall || getEnclForall() }; 103 103 debugPrint( cerr << "Up " << " level " << level << " note " << kindTable.getNote( level ).level << ", " << kindTable.getNote( level ).forall << endl; ); 104 104 } // TypedefTable::up -
src/Parser/parser.yy
r8f91c9ae r26ef3b2 10 10 // Created On : Sat Sep 1 20:22:55 2001 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Thu Jul 12 1 3:47:44201813 // Update Count : 375 512 // Last Modified On : Thu Jul 12 16:16:25 2018 13 // Update Count : 3756 14 14 // 15 15 … … 1866 1866 | aggregate_key attribute_list_opt no_attr_identifier fred 1867 1867 { 1868 typedefTable.makeTypedef( *$3, forall | typedefTable.getEnclForall() ? TYPEGENname : TYPEDEFname ); // create typedef1868 typedefTable.makeTypedef( *$3, forall || typedefTable.getEnclForall() ? TYPEGENname : TYPEDEFname ); // create typedef 1869 1869 forall = false; // reset 1870 1870 } … … 1874 1874 { 1875 1875 // for type_name can be a qualified type name S.T, in which case only the last name in the chain needs a typedef (other names in the chain should already have one) 1876 typedefTable.makeTypedef( *$3->type->leafName(), forall | typedefTable.getEnclForall() ? TYPEGENname : TYPEDEFname ); // create typedef1876 typedefTable.makeTypedef( *$3->type->leafName(), forall || typedefTable.getEnclForall() ? TYPEGENname : TYPEDEFname ); // create typedef 1877 1877 forall = false; // reset 1878 1878 } … … 1892 1892 aggregate_key attribute_list_opt no_attr_identifier fred 1893 1893 { 1894 typedefTable.makeTypedef( *$3, forall | typedefTable.getEnclForall() ? TYPEGENname : TYPEDEFname );1894 typedefTable.makeTypedef( *$3, forall || typedefTable.getEnclForall() ? TYPEGENname : TYPEDEFname ); 1895 1895 forall = false; // reset 1896 1896 $$ = DeclarationNode::newAggregate( $1, $3, nullptr, nullptr, false )->addQualifiers( $2 );
Note: See TracChangeset
for help on using the changeset viewer.