Skip to content

Commit fd01e3c

Browse files
authored
Rever CppSharp version as newer version eats function return comment kind (#286)
Co-authored-by: Ruslan Balanukhin <ruslan@rationale.one>
1 parent f349cc6 commit fd01e3c

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

Directory.Packages.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<ItemGroup>
77
<PackageVersion Include="CommandLineParser" Version="2.9.1" />
88
<PackageVersion Include="coverlet.collector" Version="6.0.0" />
9-
<PackageVersion Include="CppSharp" Version="1.1.5.3168" />
9+
<PackageVersion Include="CppSharp" Version="1.0.1" />
1010
<PackageVersion Include="Microsoft.Net.Compilers.Toolset" Version="4.7.0" />
1111
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="17.8.0" />
1212
<PackageVersion Include="Microsoft.SourceLink.GitHub" Version="1.1.1" />

FFmpeg.AutoGen.CppSharpUnsafeGenerator/Processing/FunctionProcessor.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ private static string GetCommentString(BlockCommandComment comment)
204204
{
205205
return comment == null
206206
? null
207-
: string.Join(" ", comment.ParagraphComment.Content.OfType<TextComment>().Select(x => x.Text.Trim()));
207+
: string.Join(" ", comment.ParagraphComment.Content.OfType<TextComment>().Select(x => x.Text.Trim()).Where(x => !string.IsNullOrWhiteSpace(x)));
208208
}
209209

210210
private static string GetSha256(string text)

0 commit comments

Comments
 (0)