File tree 3 files changed +74
-66
lines changed
3 files changed +74
-66
lines changed Original file line number Diff line number Diff line change 4
4
using CppSharp . AST ;
5
5
using CppSharp . Generators . CLI ;
6
6
using CppSharp . Generators . CSharp ;
7
+ using CppSharp . Generators ;
7
8
8
9
namespace CppSharp . Passes
9
10
{
@@ -14,6 +15,13 @@ public override bool VisitClassDecl(Class @class)
14
15
if ( ! base . VisitClassDecl ( @class ) )
15
16
return false ;
16
17
18
+ if ( Options . GeneratorKind == GeneratorKind . CLI &&
19
+ string . IsNullOrEmpty ( @class . OriginalName ) )
20
+ {
21
+ @class . ExplicitlyIgnore ( ) ;
22
+ return true ;
23
+ }
24
+
17
25
if ( @class . Layout != null )
18
26
{
19
27
int order = 0 ;
Original file line number Diff line number Diff line change @@ -1307,72 +1307,6 @@ DLL_API void va_listFunction(va_list v);
1307
1307
DLL_API char * returnCharPointer ();
1308
1308
DLL_API const char * takeConstCharStarRef (const char *& c);
1309
1309
1310
- union
1311
- {
1312
- struct
1313
- {
1314
- struct
1315
- {
1316
- long Capabilities;
1317
- } Server;
1318
- struct
1319
- {
1320
- long Capabilities;
1321
- } Share;
1322
- } Smb2;
1323
- } ProtocolSpecific;
1324
-
1325
- struct DLL_API TestNestedTypes
1326
- {
1327
- public:
1328
- struct
1329
- {
1330
- struct
1331
- {
1332
- };
1333
- };
1334
- struct
1335
- {
1336
- struct
1337
- {
1338
- };
1339
- };
1340
- struct
1341
- {
1342
- struct
1343
- {
1344
- };
1345
- };
1346
- struct
1347
- {
1348
- struct
1349
- {
1350
- };
1351
- };
1352
-
1353
- union as_types
1354
- {
1355
- int as_int;
1356
- struct uchars
1357
- {
1358
- unsigned char blue, green, red, alpha;
1359
- } as_uchar;
1360
- };
1361
- };
1362
-
1363
- class TestNamingAnonymousTypesInUnion
1364
- {
1365
- public:
1366
- union {
1367
- struct {
1368
- } argb;
1369
- struct {
1370
- } ahsv;
1371
- struct {
1372
- } acmyk;
1373
- } ct;
1374
- };
1375
-
1376
1310
struct {
1377
1311
struct {
1378
1312
struct {
Original file line number Diff line number Diff line change @@ -822,6 +822,44 @@ class PureDtor
822
822
823
823
DLL_API void va_listFunction (va_list v);
824
824
825
+ struct DLL_API TestNestedTypes
826
+ {
827
+ public:
828
+ struct
829
+ {
830
+ struct
831
+ {
832
+ };
833
+ };
834
+ struct
835
+ {
836
+ struct
837
+ {
838
+ };
839
+ };
840
+ struct
841
+ {
842
+ struct
843
+ {
844
+ };
845
+ };
846
+ struct
847
+ {
848
+ struct
849
+ {
850
+ };
851
+ };
852
+
853
+ union as_types
854
+ {
855
+ int as_int;
856
+ struct uchars
857
+ {
858
+ unsigned char blue, green, red, alpha;
859
+ } as_uchar;
860
+ };
861
+ };
862
+
825
863
class DLL_API HasStdString
826
864
{
827
865
public:
@@ -883,6 +921,19 @@ class DLL_API DifferentConstOverloads
883
921
884
922
DLL_API bool operator ==(const DifferentConstOverloads& d, const char * s);
885
923
924
+ class TestNamingAnonymousTypesInUnion
925
+ {
926
+ public:
927
+ union {
928
+ struct {
929
+ } argb;
930
+ struct {
931
+ } ahsv;
932
+ struct {
933
+ } acmyk;
934
+ } ct;
935
+ };
936
+
886
937
class DLL_API RefTypeClassPassTry { };
887
938
888
939
void DLL_API funcTryRefTypePtrOut (CS_OUT RefTypeClassPassTry* classTry);
@@ -1380,6 +1431,21 @@ inline namespace InlineNamespace
1380
1431
}
1381
1432
}
1382
1433
1434
+ union
1435
+ {
1436
+ struct
1437
+ {
1438
+ struct
1439
+ {
1440
+ long Capabilities;
1441
+ } Server;
1442
+ struct
1443
+ {
1444
+ long Capabilities;
1445
+ } Share;
1446
+ } Smb2;
1447
+ } ProtocolSpecific;
1448
+
1383
1449
1384
1450
template <class _Other >
1385
1451
using UsingTemplatePtr = _Other *;
You can’t perform that action at this time.
0 commit comments