Changes in / [1761046:46aa60e]
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
doc/LaTeXmacros/lstlang.sty
r1761046 r46aa60e 8 8 %% Created On : Sat May 13 16:34:42 2017 9 9 %% Last Modified By : Peter A. Buhr 10 %% Last Modified On : Tue Feb 13 13:27:00202411 %% Update Count : 3 610 %% Last Modified On : Fri Feb 16 07:59:29 2024 11 %% Update Count : 37 12 12 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 13 13 … … 125 125 } 126 126 127 % C++ programming language128 \lstdefinelanguage{C++}[ANSI]{C++}{129 morekeywords={nullptr,}130 }131 132 127 % uC++ programming language, based on ANSI C++ 133 \lstdefinelanguage{uC++}[ ANSI]{C++}{128 \lstdefinelanguage{uC++}[GNU]{C++}{ 134 129 morekeywords={ 135 130 _Accept, _AcceptReturn, _AcceptWait, _Actor, _At, _Catch, _CatchResume, _CorActor, _Cormonitor, _Coroutine, -
src/AST/Attribute.hpp
r1761046 r46aa60e 9 9 // Author : Aaron B. Moss 10 10 // Created On : Fri May 10 10:30:00 2019 11 // Last Modified By : Aaron B. Moss11 // Last Modified By : Peter A. Buhr 12 12 // Created On : Fri May 10 10:30:00 2019 13 // Update Count : 113 // Update Count : 2 14 14 // 15 15 … … 34 34 35 35 Attribute( const std::string & name = "", std::vector<ptr<Expr>> && params = {}) 36 : name( name ), params( params ) {}36 : name( name ), params( params ) {} 37 37 virtual ~Attribute() = default; 38 38 -
src/Parser/DeclarationNode.cc
r1761046 r46aa60e 10 10 // Created On : Sat May 16 12:34:05 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Thu Dec 14 19:05:17 202313 // Update Count : 1 40712 // Last Modified On : Fri Feb 23 18:25:57 2024 13 // Update Count : 1533 14 14 // 15 15 … … 159 159 160 160 if ( ! attributes.empty() ) { 161 os << string( indent + 2, ' ' ) << "with attributes 161 os << string( indent + 2, ' ' ) << "with attributes" << endl; 162 162 for ( ast::ptr<ast::Attribute> const & attr : reverseIterate( attributes ) ) { 163 os << string( indent + 4, ' ' ) << attr->name.c_str() << endl; 163 os << string( indent + 4, ' ' ); 164 ast::print( os, attr, indent + 2 ); 164 165 } // for 165 166 } // if … … 537 538 } // DeclarationNode::checkSpecifiers 538 539 539 DeclarationNode * DeclarationNode::copySpecifiers( DeclarationNode * q ) {540 DeclarationNode * DeclarationNode::copySpecifiers( DeclarationNode * q, bool copyattr ) { 540 541 funcSpecs |= q->funcSpecs; 541 542 storageClasses |= q->storageClasses; 542 543 543 std::vector<ast::ptr<ast::Attribute>> tmp; 544 tmp.reserve( q->attributes.size() ); 545 for ( auto const & attr : q->attributes ) { 546 tmp.emplace_back( ast::shallowCopy( attr.get() ) ); 547 } 548 spliceBegin( attributes, tmp ); 544 if ( copyattr ) { 545 std::vector<ast::ptr<ast::Attribute>> tmp; 546 tmp.reserve( q->attributes.size() ); 547 for ( auto const & attr : q->attributes ) { 548 tmp.emplace_back( ast::shallowCopy( attr.get() ) ); 549 } // for 550 spliceBegin( attributes, tmp ); 551 } // if 549 552 550 553 return this; … … 681 684 } 682 685 683 DeclarationNode * DeclarationNode::addType( DeclarationNode * o ) {686 DeclarationNode * DeclarationNode::addType( DeclarationNode * o, bool copyattr ) { 684 687 if ( o ) { 685 688 checkSpecifiers( o ); 686 copySpecifiers( o );689 copySpecifiers( o, copyattr ); 687 690 if ( o->type ) { 688 691 if ( ! type ) { 689 692 if ( o->type->kind == TypeData::Aggregate || o->type->kind == TypeData::Enum ) { 693 // Hide type information aggregate instances. 690 694 type = new TypeData( TypeData::AggregateInst ); 691 type->aggInst.aggregate = o->type; 695 type->aggInst.aggregate = o->type; // change ownership 696 type->aggInst.aggregate->aggregate.attributes.swap( o->attributes ); // change ownership 692 697 if ( o->type->kind == TypeData::Aggregate ) { 693 698 type->aggInst.hoistType = o->type->aggregate.body; … … 700 705 type = o->type; 701 706 } // if 702 o->type = nullptr; 707 o->type = nullptr; // change ownership 703 708 } else { 704 709 addTypeToType( o->type, type ); … … 953 958 } 954 959 955 DeclarationNode * DeclarationNode::cloneBaseType( DeclarationNode * o ) {960 DeclarationNode * DeclarationNode::cloneBaseType( DeclarationNode * o, bool copyattr ) { 956 961 if ( ! o ) return nullptr; 957 962 958 o->copySpecifiers( this );963 o->copySpecifiers( this, copyattr ); 959 964 if ( type ) { 960 965 TypeData * srcType = type; … … 999 1004 DeclarationNode * newnode = new DeclarationNode; 1000 1005 newnode->type = ret; 1006 if ( ret->kind == TypeData::Aggregate ) { 1007 newnode->attributes.swap( ret->aggregate.attributes ); 1008 } // if 1001 1009 return newnode; 1002 1010 } // if … … 1110 1118 if ( extr->type->kind == TypeData::Aggregate ) { 1111 1119 // typedef struct { int A } B is the only case? 1112 extracted_named = ! extr->type->aggregate.anon;1120 extracted_named = ! extr->type->aggregate.anon; 1113 1121 } else if ( extr->type->kind == TypeData::Enum ) { 1114 1122 // typedef enum { A } B is the only case? 1115 extracted_named = ! extr->type->enumeration.anon;1123 extracted_named = ! extr->type->enumeration.anon; 1116 1124 } else { 1117 1125 extracted_named = true; -
src/Parser/DeclarationNode.h
r1761046 r46aa60e 9 9 // Author : Andrew Beach 10 10 // Created On : Wed Apr 5 11:38:00 2023 11 // Last Modified By : Andrew Beach12 // Last Modified On : Wed Apr 5 11:55:00 202313 // Update Count : 011 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Sat Feb 17 09:24:12 2024 13 // Update Count : 4 14 14 // 15 15 … … 83 83 void checkQualifiers( const TypeData *, const TypeData * ); 84 84 void checkSpecifiers( DeclarationNode * ); 85 DeclarationNode * copySpecifiers( DeclarationNode * );86 DeclarationNode * addType( DeclarationNode * );85 DeclarationNode * copySpecifiers( DeclarationNode *, bool = true ); 86 DeclarationNode * addType( DeclarationNode *, bool = true ); 87 87 DeclarationNode * addTypedef(); 88 88 DeclarationNode * addEnumBase( DeclarationNode * ); … … 106 106 107 107 DeclarationNode * cloneType( std::string * newName ); 108 DeclarationNode * cloneBaseType( DeclarationNode * newdecl );108 DeclarationNode * cloneBaseType( DeclarationNode * newdecl, bool = true ); 109 109 110 110 DeclarationNode * appendList( DeclarationNode * node ) { -
src/Parser/TypeData.cc
r1761046 r46aa60e 10 10 // Created On : Sat May 16 15:12:51 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Thu Dec 14 18:59:12 202313 // Update Count : 68412 // Last Modified On : Fri Feb 23 08:58:30 2024 13 // Update Count : 734 14 14 // 15 15 … … 20 20 21 21 #include "AST/Decl.hpp" // for AggregateDecl, ObjectDecl, TypeDe... 22 #include "AST/Attribute.hpp" // for Attribute 22 23 #include "AST/Init.hpp" // for SingleInit, ListInit 23 24 #include "AST/Print.hpp" // for print 24 25 #include "Common/SemanticError.h" // for SemanticError 25 26 #include "Common/utility.h" // for splice, spliceBegin 27 #include "Common/Iterate.hpp" // for reverseIterate 26 28 #include "Parser/ExpressionNode.h" // for ExpressionNode 27 29 #include "Parser/StatementNode.h" // for StatementNode … … 199 201 newtype->aggregate.kind = aggregate.kind; 200 202 newtype->aggregate.name = aggregate.name ? new string( *aggregate.name ) : nullptr; 203 newtype->aggregate.parent = aggregate.parent ? new string( *aggregate.parent ) : nullptr; 201 204 newtype->aggregate.params = maybeCopy( aggregate.params ); 202 205 newtype->aggregate.actuals = maybeCopy( aggregate.actuals ); 203 206 newtype->aggregate.fields = maybeCopy( aggregate.fields ); 207 newtype->aggregate.attributes = aggregate.attributes; 204 208 newtype->aggregate.body = aggregate.body; 205 209 newtype->aggregate.anon = aggregate.anon; 206 210 newtype->aggregate.tagged = aggregate.tagged; 207 newtype->aggregate.parent = aggregate.parent ? new string( *aggregate.parent ) : nullptr;208 211 break; 209 212 case AggregateInst: … … 336 339 } // if 337 340 if ( aggregate.body ) { 338 os << string( indent + 2, ' ' ) << " with body" << endl; 341 os << string( indent + 2, ' ' ) << "with body" << endl; 342 } // if 343 if ( ! aggregate.attributes.empty() ) { 344 os << string( indent + 2, ' ' ) << "with attributes" << endl; 345 for ( ast::ptr<ast::Attribute> const & attr : reverseIterate( aggregate.attributes ) ) { 346 os << string( indent + 4, ' ' ); 347 ast::print( os, attr, indent + 2 ); 348 } // for 339 349 } // if 340 350 break; … … 358 368 } // if 359 369 if ( enumeration.body ) { 360 os << string( indent + 2, ' ' ) << " 370 os << string( indent + 2, ' ' ) << "with body" << endl; 361 371 } // if 362 372 if ( base ) { … … 1088 1098 1089 1099 ast::BaseInstType * buildComAggInst( 1090 const TypeData * t ype,1100 const TypeData * td, 1091 1101 std::vector<ast::ptr<ast::Attribute>> && attributes, 1092 1102 ast::Linkage::Spec linkage ) { 1093 switch ( t ype->kind ) {1103 switch ( td->kind ) { 1094 1104 case TypeData::Enum: 1095 if ( t ype->enumeration.body ) {1105 if ( td->enumeration.body ) { 1096 1106 ast::EnumDecl * typedecl = 1097 buildEnum( t ype, std::move( attributes ), linkage );1107 buildEnum( td, std::move( attributes ), linkage ); 1098 1108 return new ast::EnumInstType( 1099 1109 typedecl, 1100 buildQualifiers( t ype)1110 buildQualifiers( td ) 1101 1111 ); 1102 1112 } else { 1103 1113 return new ast::EnumInstType( 1104 *t ype->enumeration.name,1105 buildQualifiers( t ype)1114 *td->enumeration.name, 1115 buildQualifiers( td ) 1106 1116 ); 1107 1117 } // if 1108 1118 break; 1109 1119 case TypeData::Aggregate: 1110 if ( t ype->aggregate.body ) {1120 if ( td->aggregate.body ) { 1111 1121 ast::AggregateDecl * typedecl = 1112 buildAggregate( t ype, std::move( attributes ), linkage );1113 switch ( t ype->aggregate.kind ) {1122 buildAggregate( td, std::move( attributes ), linkage ); 1123 switch ( td->aggregate.kind ) { 1114 1124 case ast::AggregateDecl::Struct: 1115 1125 case ast::AggregateDecl::Coroutine: … … 1118 1128 return new ast::StructInstType( 1119 1129 strict_dynamic_cast<ast::StructDecl *>( typedecl ), 1120 buildQualifiers( t ype)1130 buildQualifiers( td ) 1121 1131 ); 1122 1132 case ast::AggregateDecl::Union: 1123 1133 return new ast::UnionInstType( 1124 1134 strict_dynamic_cast<ast::UnionDecl *>( typedecl ), 1125 buildQualifiers( t ype)1135 buildQualifiers( td ) 1126 1136 ); 1127 1137 case ast::AggregateDecl::Trait: … … 1132 1142 } // switch 1133 1143 } else { 1134 switch ( t ype->aggregate.kind ) {1144 switch ( td->aggregate.kind ) { 1135 1145 case ast::AggregateDecl::Struct: 1136 1146 case ast::AggregateDecl::Coroutine: … … 1138 1148 case ast::AggregateDecl::Thread: 1139 1149 return new ast::StructInstType( 1140 *t ype->aggregate.name,1141 buildQualifiers( t ype)1150 *td->aggregate.name, 1151 buildQualifiers( td ) 1142 1152 ); 1143 1153 case ast::AggregateDecl::Union: 1144 1154 return new ast::UnionInstType( 1145 *t ype->aggregate.name,1146 buildQualifiers( t ype)1155 *td->aggregate.name, 1156 buildQualifiers( td ) 1147 1157 ); 1148 1158 case ast::AggregateDecl::Trait: 1149 1159 return new ast::TraitInstType( 1150 *t ype->aggregate.name,1151 buildQualifiers( t ype)1160 *td->aggregate.name, 1161 buildQualifiers( td ) 1152 1162 ); 1153 1163 default: -
src/Parser/TypeData.h
r1761046 r46aa60e 9 9 // Author : Peter A. Buhr 10 10 // Created On : Sat May 16 15:18:36 2015 11 // Last Modified By : Andrew Beach12 // Last Modified On : Wed Mar 1 10:44:00 202313 // Update Count : 2 0611 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Thu Feb 22 16:30:31 2024 13 // Update Count : 210 14 14 // 15 15 … … 30 30 ast::AggregateDecl::Aggregate kind; 31 31 const std::string * name = nullptr; 32 const std::string * parent = nullptr; 32 33 DeclarationNode * params = nullptr; 33 34 ExpressionNode * actuals = nullptr; // holds actual parameters later applied to AggInst 34 35 DeclarationNode * fields = nullptr; 36 std::vector<ast::ptr<ast::Attribute>> attributes; 35 37 bool body; 36 38 bool anon; 37 39 bool tagged; 38 const std::string * parent = nullptr;39 40 }; 40 41 -
src/Parser/parser.yy
r1761046 r46aa60e 10 10 // Created On : Sat Sep 1 20:22:55 2001 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Sun Nov 26 13:18:06 202313 // Update Count : 6 39812 // Last Modified On : Fri Feb 23 18:25:46 2024 13 // Update Count : 6484 14 14 // 15 15 … … 102 102 103 103 DeclarationNode * distAttr( DeclarationNode * typeSpec, DeclarationNode * declList ) { 104 // distribute declaration_specifier across all declared variables, e.g., static, const, but not__attribute__.104 // Distribute type specifier across all declared variables, e.g., static, const, __attribute__. 105 105 assert( declList ); 106 // printf( "distAttr1 typeSpec %p\n", typeSpec ); typeSpec->print( std::cout ); 107 DeclarationNode * cl = (new DeclarationNode)->addType( typeSpec ); 108 // printf( "distAttr2 cl %p\n", cl ); cl->type->print( std::cout ); 109 // cl->type->aggregate.name = cl->type->aggInst.aggregate->aggregate.name; 110 106 107 // Do not distribute attributes for aggregates because the attributes surrounding the aggregate belong it not the 108 // variables in the declaration list, e.g., 109 // 110 // struct __attribute__(( aligned(128) )) S { ... 111 // } v1 __attribute__(( aligned(64) )), v2 __attribute__(( aligned(32) )), v3; 112 // struct S v4; 113 // 114 // v1 => 64, v2 =>32, v3 => 128, v2 => 128 115 // 116 // Anonymous aggregates are a special case because there is no aggregate to bind the attribute to; hence it floats 117 // to the declaration list. 118 // 119 // struct __attribute__(( aligned(128) )) /*anonymous */ { ... } v1; 120 // 121 // v1 => 128 122 123 bool copyattr = ! (typeSpec->type && typeSpec->type->kind == TypeData::Aggregate && ! typeSpec->type->aggregate.anon ); 124 125 // addType copies the type information for the aggregate instances from typeSpec into cl's aggInst.aggregate. 126 DeclarationNode * cl = (new DeclarationNode)->addType( typeSpec ); // typeSpec IS DELETED!!! 127 128 // Start at second variable in declaration list and clone the type specifiers for each variable.. 111 129 for ( DeclarationNode * cur = dynamic_cast<DeclarationNode *>( declList->get_next() ); cur != nullptr; cur = dynamic_cast<DeclarationNode *>( cur->get_next() ) ) { 112 cl->cloneBaseType( cur );130 cl->cloneBaseType( cur, copyattr ); // cur is modified 113 131 } // for 114 declList->addType( cl ); 115 // printf( "distAttr3 declList %p\n", declList ); declList->print( std::cout, 0 ); 132 133 // Add first variable in declaration list with hidden type information in aggInst.aggregate, which is used by 134 // extractType to recover the type for the aggregate instances. 135 declList->addType( cl, copyattr ); // cl IS DELETED!!! 116 136 return declList; 117 137 } // distAttr … … 192 212 fieldList = DeclarationNode::newName( nullptr ); 193 213 } // if 194 // return distAttr( typeSpec, fieldList ); // mark all fields in list195 214 196 215 // printf( "fieldDecl3 typeSpec %p\n", typeSpec ); typeSpec->print( std::cout, 0 ); 197 DeclarationNode * temp = distAttr( typeSpec, fieldList ); 216 DeclarationNode * temp = distAttr( typeSpec, fieldList ); // mark all fields in list 198 217 // printf( "fieldDecl4 temp %p\n", temp ); temp->print( std::cout, 0 ); 199 218 return temp; … … 761 780 | string_literal '`' identifier // CFA, postfix call 762 781 { $$ = new ExpressionNode( build_func( yylloc, new ExpressionNode( build_varref( yylloc, build_postfix_name( $3 ) ) ), $1 ) ); } 782 783 // SKULLDUGGERY: The typedef table used for parsing does not store fields in structures. To parse a qualified 784 // name, it is assumed all name-tokens after the first are identifiers, regardless of how the lexer identifies 785 // them. For example: 786 // 787 // struct S; 788 // forall(T) struct T; 789 // union U; 790 // enum E { S, T, E }; 791 // struct Z { int S, T, Z, E, U; }; 792 // void fred () { 793 // Z z; 794 // z.S; // lexer returns S is TYPEDEFname 795 // z.T; // lexer returns T is TYPEGENname 796 // z.Z; // lexer returns Z is TYPEDEFname 797 // z.U; // lexer returns U is TYPEDEFname 798 // z.E; // lexer returns E is TYPEDEFname 799 // } 763 800 | postfix_expression '.' identifier 764 801 { $$ = new ExpressionNode( build_fieldSel( yylloc, $1, build_varref( yylloc, $3 ) ) ); } 802 | postfix_expression '.' TYPEDEFname // CFA, SKULLDUGGERY 803 { $$ = new ExpressionNode( build_fieldSel( yylloc, $1, build_varref( yylloc, $3 ) ) ); } 804 | postfix_expression '.' TYPEGENname // CFA, SKULLDUGGERY 805 { $$ = new ExpressionNode( build_fieldSel( yylloc, $1, build_varref( yylloc, $3 ) ) ); } 806 765 807 | postfix_expression '.' INTEGERconstant // CFA, tuple index 766 808 { $$ = new ExpressionNode( build_fieldSel( yylloc, $1, build_constantInteger( yylloc, *$3 ) ) ); } … … 1855 1897 declaration_list: 1856 1898 declaration 1857 | declaration_list declaration 1858 { $$ = $1->appendList( $2 ); } 1899 | declaration_list declaration { $$ = $1->appendList( $2 ); } 1859 1900 ; 1860 1901 … … 1889 1930 declaration: // old & new style declarations 1890 1931 c_declaration ';' 1891 {1892 // printf( "C_DECLARATION1 %p %s\n", $$, $$->name ? $$->name->c_str() : "(nil)" );1893 // for ( Attribute * attr: reverseIterate( $$->attributes ) ) {1894 // printf( "\tattr %s\n", attr->name.c_str() );1895 // } // for1896 }1897 1932 | cfa_declaration ';' // CFA 1898 1933 | static_assert // C11 … … 2347 2382 sue_declaration_specifier: // struct, union, enum + storage class + type specifier 2348 2383 sue_type_specifier 2349 {2350 // printf( "sue_declaration_specifier %p %s\n", $$, $$->type->aggregate.name ? $$->type->aggregate.name->c_str() : "(nil)" );2351 // for ( Attribute * attr: reverseIterate( $$->attributes ) ) {2352 // printf( "\tattr %s\n", attr->name.c_str() );2353 // } // for2354 }2355 2384 | declaration_qualifier_list sue_type_specifier 2356 2385 { $$ = $2->addQualifiers( $1 ); } … … 2363 2392 sue_type_specifier: // struct, union, enum + type specifier 2364 2393 elaborated_type 2365 {2366 // printf( "sue_type_specifier %p %s\n", $$, $$->type->aggregate.name ? $$->type->aggregate.name->c_str() : "(nil)" );2367 // for ( Attribute * attr: reverseIterate( $$->attributes ) ) {2368 // printf( "\tattr %s\n", attr->name.c_str() );2369 // } // for2370 }2371 2394 | type_qualifier_list 2372 2395 { if ( $1->type != nullptr && $1->type->forall ) forall = true; } // remember generic type … … 2441 2464 elaborated_type: // struct, union, enum 2442 2465 aggregate_type 2443 {2444 // printf( "elaborated_type %p %s\n", $$, $$->type->aggregate.name ? $$->type->aggregate.name->c_str() : "(nil)" );2445 // for ( Attribute * attr: reverseIterate( $$->attributes ) ) {2446 // printf( "\tattr %s\n", attr->name.c_str() );2447 // } // for2448 }2449 2466 | enum_type 2450 2467 ; … … 2678 2695 { $$ = DeclarationNode::newEnum( nullptr, $4, true, false )->addQualifiers( $2 ); } 2679 2696 | ENUM attribute_list_opt '!' '{' enumerator_list comma_opt '}' // invalid syntax rule 2680 { SemanticError( yylloc, "syntax error, hiding '!'the enumerator names of an anonymous enumeration means the names are inaccessible." ); $$ = nullptr; }2697 { SemanticError( yylloc, "syntax error, hiding ('!') the enumerator names of an anonymous enumeration means the names are inaccessible." ); $$ = nullptr; } 2681 2698 | ENUM attribute_list_opt identifier 2682 2699 { typedefTable.makeTypedef( *$3, "enum_type 1" ); } … … 2693 2710 } 2694 2711 | ENUM '(' cfa_abstract_parameter_declaration ')' attribute_list_opt '!' '{' enumerator_list comma_opt '}' // unqualified type name 2695 { SemanticError( yylloc, "syntax error, hiding '!'the enumerator names of an anonymous enumeration means the names are inaccessible." ); $$ = nullptr; }2712 { SemanticError( yylloc, "syntax error, hiding ('!') the enumerator names of an anonymous enumeration means the names are inaccessible." ); $$ = nullptr; } 2696 2713 | ENUM '(' ')' attribute_list_opt '{' enumerator_list comma_opt '}' 2697 2714 { … … 2699 2716 } 2700 2717 | ENUM '(' ')' attribute_list_opt '!' '{' enumerator_list comma_opt '}' // invalid syntax rule 2701 { SemanticError( yylloc, "syntax error, hiding '!'the enumerator names of an anonymous enumeration means the names are inaccessible." ); $$ = nullptr; }2718 { SemanticError( yylloc, "syntax error, hiding ('!') the enumerator names of an anonymous enumeration means the names are inaccessible." ); $$ = nullptr; } 2702 2719 | ENUM '(' cfa_abstract_parameter_declaration ')' attribute_list_opt identifier attribute_list_opt 2703 2720 { … … 3170 3187 // unit, which is a dubious task, especially because C uses name rather than structural typing; hence it is 3171 3188 // disallowed at the moment. 3172 if ( $1->linkage == ast::Linkage::Cforall && ! $1->storageClasses.is_static && $1->type && $1->type->kind == TypeData::AggregateInst ) { 3189 if ( $1->linkage == ast::Linkage::Cforall && ! $1->storageClasses.is_static && 3190 $1->type && $1->type->kind == TypeData::AggregateInst ) { 3173 3191 if ( $1->type->aggInst.aggregate->kind == TypeData::Enum && $1->type->aggInst.aggregate->enumeration.anon ) { 3174 3192 SemanticError( yylloc, "extern anonymous enumeration is currently unimplemented." ); $$ = nullptr; -
tests/.expect/attributes.x64.txt
r1761046 r46aa60e 6 6 7 7 } 8 struct __a nonymous0 {8 struct __attribute__ ((unused)) __anonymous0 { 9 9 }; 10 10 static inline void _X12_constructorFv_S12__anonymous0_autogen___1(struct __anonymous0 *_X4_dstS12__anonymous0_1); -
tests/errors/.expect/declaration.txt
r1761046 r46aa60e 8 8 with members 9 9 i: int 10 10 with body 11 11 12 12 … … 14 14 with members 15 15 i: int 16 16 with body 17 17 18 18
Note: See TracChangeset
for help on using the changeset viewer.