From d9d74e9a308cfa6be374c7d7dc148847e6c53198 Mon Sep 17 00:00:00 2001 From: Ronald van Manen Date: Tue, 30 Jul 2024 14:59:36 +0200 Subject: [PATCH] Fix wildcard support for --with-attributes option. --- sources/ClangSharp.PInvokeGenerator/PInvokeGenerator.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sources/ClangSharp.PInvokeGenerator/PInvokeGenerator.cs b/sources/ClangSharp.PInvokeGenerator/PInvokeGenerator.cs index e973324a..e2c2966b 100644 --- a/sources/ClangSharp.PInvokeGenerator/PInvokeGenerator.cs +++ b/sources/ClangSharp.PInvokeGenerator/PInvokeGenerator.cs @@ -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))) {