Skip to content

Commit

Permalink
Fix wildcard support for --with-attributes option.
Browse files Browse the repository at this point in the history
  • Loading branch information
ronaldvanmanen committed Sep 26, 2024
1 parent 2863bec commit d9d74e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sources/ClangSharp.PInvokeGenerator/PInvokeGenerator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6765,7 +6765,7 @@ private void WithAttributes(NamedDecl namedDecl, bool onlySupportedOSPlatform =
var outputBuilder = isTestOutput ? _testOutputBuilder : _outputBuilder;
Debug.Assert(outputBuilder is not null);

if (TryGetRemappedValue(namedDecl, _config.WithAttributes, out var attributes))
if (TryGetRemappedValue(namedDecl, _config.WithAttributes, out var attributes, matchStar: true))
{
foreach (var attribute in attributes.Where((a) => !onlySupportedOSPlatform || a.StartsWith("SupportedOSPlatform(", StringComparison.Ordinal)))
{
Expand Down

0 comments on commit d9d74e9

Please sign in to comment.