Changeset 0bd46fd for src/Parser
- Timestamp:
- Sep 21, 2022, 10:52:51 AM (23 months ago)
- Branches:
- ADT, ast-experimental, master, pthread-emulation
- Children:
- 7f6a7c9, e01eb4a
- Parents:
- 20737104
- Location:
- src/Parser
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Parser/lex.ll
r20737104 r0bd46fd 24 24 25 25 //**************************** Includes and Defines **************************** 26 27 #ifdef __clang__ 28 #pragma GCC diagnostic ignored "-Wnull-conversion" 29 #endif 26 30 27 31 // trigger before each matching rule's action -
src/Parser/parser.yy
r20737104 r0bd46fd 58 58 59 59 // lex uses __null in a boolean context, it's fine. 60 # pragma GCC diagnostic ignored "-Wpragmas"60 #ifdef __clang__ 61 61 #pragma GCC diagnostic ignored "-Wparentheses-equality" 62 # pragma GCC diagnostic warning "-Wpragmas"62 #endif 63 63 64 64 extern DeclarationNode * parseTree; … … 2570 2570 { 2571 2571 $$ = DeclarationNode::newEnum( $5, $8, true, true, nullptr )->addQualifiers( $4 )->addQualifiers( $6 ); 2572 } 2572 } 2573 2573 | ENUM '(' cfa_abstract_parameter_declaration ')' attribute_list_opt typedef_name attribute_list_opt '{' enumerator_list comma_opt '}' 2574 2574 { … … 2585 2585 ENUM attribute_list_opt identifier 2586 2586 { typedefTable.makeTypedef( *$3 ); $$ = DeclarationNode::newEnum( $3, 0, false, false )->addQualifiers( $2 ); } 2587 | ENUM attribute_list_opt type_name 2587 | ENUM attribute_list_opt type_name 2588 2588 { typedefTable.makeTypedef( *$3->type->symbolic.name ); $$ = DeclarationNode::newEnum( $3->type->symbolic.name, 0, false, false )->addQualifiers( $2 ); } 2589 2589 ;
Note: See TracChangeset
for help on using the changeset viewer.