Skip to content

Commit

Permalink
Merge pull request #276 from reflectronic/fix-extraneous-using
Browse files Browse the repository at this point in the history
Fix extraneous `using System;`
  • Loading branch information
tannergooding authored Oct 11, 2021
2 parents 1c1b145 + 4abd75f commit c6bcae9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sources/ClangSharp.PInvokeGenerator/PInvokeGenerator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1843,7 +1843,7 @@ private string GetTypeName(Cursor cursor, Cursor context, Type rootType, Type ty
// can be treated correctly. Otherwise, they will resolve to a particular
// platform size, based on whatever parameters were passed into clang.

var remappedName = GetRemappedName(name, cursor, tryRemapOperatorName: false, out var wasRemapped);
var remappedName = GetRemappedName(name, cursor, tryRemapOperatorName: false, out var wasRemapped, skipUsing: true);
name = wasRemapped ? remappedName : GetTypeName(cursor, context, rootType, typedefType.Decl.UnderlyingType, out _);
}
else
Expand Down

0 comments on commit c6bcae9

Please sign in to comment.