ClangSharp icon indicating copy to clipboard operation
ClangSharp copied to clipboard

Prefix strip for the types (enums and structs)

Open ujos opened this issue 3 years ago • 0 comments

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();
  }
}

ujos avatar Apr 11 '22 13:04 ujos