Skip to content

Prefix strip for the types (enums and structs) #333

Description

@ujos

There is a --prefixStrip key to strip the prefix from function name. Would be great to have similar key to strip the prefix from enums and structs.

For example for the given input header file:

typedef struct abc_some_struct_ {} abc_some_struct;
typedef enum abc_some_enum_ {} abc_some_enum;

void __declspec(dllimport) api_foo();

The expected output would be

namespace Abc
{
  public struct some_struct {};
  public enum some_enum {};
  public class API
  {
    void foo();
  }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions