From 4abd75f44edd23cac0d9db1dfeeaeb73115cc956 Mon Sep 17 00:00:00 2001 From: reflectronic Date: Sun, 10 Oct 2021 21:50:07 -0400 Subject: [PATCH] Fix extraneous `using System;` --- 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 df5ef2d4..d70f1a27 100644 --- a/sources/ClangSharp.PInvokeGenerator/PInvokeGenerator.cs +++ b/sources/ClangSharp.PInvokeGenerator/PInvokeGenerator.cs @@ -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