Skip to content

Commit 64ee00e

Browse files
Update sources/ClangSharp.PInvokeGenerator/PInvokeGenerator.cs
1 parent 2418519 commit 64ee00e

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
@@ -4706,7 +4706,7 @@ bool IsExcludedByName(Cursor cursor, ref uint isExcludedValue)
47064706
{
47074707
var semanticParentCursor = cursor.SemanticParentCursor;
47084708

4709-
if ((semanticParentCursor is not null) && (IsExcluded(semanticParentCursor) || IsAlwaysIncluded(semanticParentCursor)))
4709+
if ((semanticParentCursor is null) || IsExcluded(semanticParentCursor) || IsAlwaysIncluded(semanticParentCursor))
47104710
{
47114711
if (_config.LogExclusions)
47124712
{

0 commit comments

Comments
 (0)