Skip to content

Commit d9d74e9

Browse files
Fix wildcard support for --with-attributes option.
1 parent 2863bec commit d9d74e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sources/ClangSharp.PInvokeGenerator/PInvokeGenerator.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6765,7 +6765,7 @@ private void WithAttributes(NamedDecl namedDecl, bool onlySupportedOSPlatform =
67656765
var outputBuilder = isTestOutput ? _testOutputBuilder : _outputBuilder;
67666766
Debug.Assert(outputBuilder is not null);
67676767

6768-
if (TryGetRemappedValue(namedDecl, _config.WithAttributes, out var attributes))
6768+
if (TryGetRemappedValue(namedDecl, _config.WithAttributes, out var attributes, matchStar: true))
67696769
{
67706770
foreach (var attribute in attributes.Where((a) => !onlySupportedOSPlatform || a.StartsWith("SupportedOSPlatform(", StringComparison.Ordinal)))
67716771
{

0 commit comments

Comments
 (0)