ClangSharp icon indicating copy to clipboard operation
ClangSharp copied to clipboard

Allow configurable access modifier using star

Open ThomasGoulet73 opened this issue 3 years ago • 0 comments

Currently, --with-access-specifier *=internal does not seem to work and I think it would be useful when you want to generate internal bindings. Passing true as the fourth parameter in the call to TryGetRemappedValue here seems to fix this issue: https://github.com/dotnet/ClangSharp/blob/82e67150780efe0b34441997ad77c94b847e18ce/sources/ClangSharp.PInvokeGenerator/PInvokeGenerator.cs#L1814

I'm not very familiar with this codebase so I'll let the maintainers decide if this is the right fix and I would be happy to submit a PR.

ThomasGoulet73 avatar Feb 12 '22 05:02 ThomasGoulet73