You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
C:\Project\Mapping.xml(1,1): warning SG0019: Mapping rule [map enum:SomeEnumName::Enum] did not match any elements.
CppInterface [SomeClass]/Method SomeType* SomeClass::DoSomething([In] Enum type,[In] void* data) error : Unknown type found [Enum]
Are these enums represented in the C++ AST at all? How do I match on them such that first of all the method will be generated and second that some C# equivalent of the enumerations is created?
Next to that, the wrapping is usually in otherwise empty structs, probably because C++ enums are a broken concept as their constant members aren't scoped to the enum declaration. But it is silly to have enums be declared as nested in a struct, although it is valid C#. How do I match on them and change the C# such that these enums will be declared as SomeEnumName?
The text was updated successfully, but these errors were encountered:
Currently I don't think enums nested in structs are currently parsed into the C++ AST. I'll try to take a look at supporting nested types in the C++ AST.
Once it's supported, the rule that you'll likely want is <map enum="SomeEnumName::Enum" name="SomeEnumName" />.
I get Mapping rule [remove method:Lib::SomeClass::DoSomething] did not match any elements. if I try to <remove method="Lib::SomeClass::DoSomething"/>. Removing Lib:: has it match, but it is ambiguous.
I am trying to map a series of enums which are declared and then used as follows:
I am trying to map them like this:
But I get these errors:
Are these enums represented in the C++ AST at all? How do I match on them such that first of all the method will be generated and second that some C# equivalent of the enumerations is created?
Next to that, the wrapping is usually in otherwise empty structs, probably because C++ enums are a broken concept as their constant members aren't scoped to the enum declaration. But it is silly to have enums be declared as nested in a struct, although it is valid C#. How do I match on them and change the C# such that these enums will be declared as
SomeEnumName
?The text was updated successfully, but these errors were encountered: