ClangSharp
ClangSharp copied to clipboard
Fix wildcard support for --with-attributes option.
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>.