File tree Expand file tree Collapse file tree 1 file changed +12
-7
lines changed
sources/ClangSharp.PInvokeGenerator Expand file tree Collapse file tree 1 file changed +12
-7
lines changed Original file line number Diff line number Diff line change @@ -4699,16 +4699,21 @@ bool IsExcludedByName(Cursor cursor, ref uint isExcludedValue)
4699
4699
}
4700
4700
4701
4701
if ( _config . IncludedNames . Count != 0 && ! _config . IncludedNames . Contains ( qualifiedName )
4702
- && ! _config . IncludedNames . Contains ( dottedQualifiedName )
4703
- && ! _config . IncludedNames . Contains ( qualifiedNameWithoutParameters )
4704
- && ! _config . IncludedNames . Contains ( dottedQualifiedNameWithoutParameters )
4705
- && ! _config . IncludedNames . Contains ( name ) )
4702
+ && ! _config . IncludedNames . Contains ( dottedQualifiedName )
4703
+ && ! _config . IncludedNames . Contains ( qualifiedNameWithoutParameters )
4704
+ && ! _config . IncludedNames . Contains ( dottedQualifiedNameWithoutParameters )
4705
+ && ! _config . IncludedNames . Contains ( name ) )
4706
4706
{
4707
- if ( _config . LogExclusions )
4707
+ var semanticParentCursor = cursor . SemanticParentCursor ;
4708
+
4709
+ if ( ( semanticParentCursor is not null ) && ( IsExcluded ( semanticParentCursor ) || IsAlwaysIncluded ( semanticParentCursor ) ) )
4708
4710
{
4709
- AddDiagnostic ( DiagnosticLevel . Info , $ "Excluded { kind } '{ qualifiedName } ' as it was not in the include list") ;
4711
+ if ( _config . LogExclusions )
4712
+ {
4713
+ AddDiagnostic ( DiagnosticLevel . Info , $ "Excluded { kind } '{ qualifiedName } ' as it was not in the include list") ;
4714
+ }
4715
+ return true ;
4710
4716
}
4711
- return true ;
4712
4717
}
4713
4718
4714
4719
if ( ( isExcludedValue & 0b10 ) != 0 )
You can’t perform that action at this time.
0 commit comments