ClangSharp icon indicating copy to clipboard operation
ClangSharp copied to clipboard

Fix wildcard support for --with-attributes option.

Open ronaldvanmanen opened this issue 1 year ago • 0 comments

According to the help text the --with-attribute options supports wildcards:. -wa, --with-attribute <with-attribute>

An attribute to be added to the given remapped declaration name during binding generation. Supports wildcards. []

However, the method void WithAttributes(...) invokes TryGetMappedValue(...) with matchStar set to false instead of true. This PR fixes that so that --with-attributes *=<attribute> will add [<attribute>] to all remapped declaration names during binding generation that don't have a more specific mapping (i.e. --with-attribute X=<attribute> will take precedence over --with-attribute *=<attribute>.

ronaldvanmanen avatar Jul 30 '24 13:07 ronaldvanmanen