Skip to content

Handle non-TagDecl bases #89

@stephenatwork

Description

@stephenatwork

BaseClassSpecifier.Class has the following code:
if (!Type.IsTagDecl(out @Class))
throw new NotSupportedException();

Which means generation fails for classes which inherit templates. This branch adds a test case to the Basic test.

It also has hacks to early out for non-TagDecl bases which at least allows generation to succeed. Should I make a pull request or is there a better way to handle this?

https://github.com/sk-havok/CppSharp/tree/req/non_class_base

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions