diff options
author | TSRBerry <20988865+TSRBerry@users.noreply.github.com> | 2023-06-26 07:35:19 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-26 07:35:19 +0200 |
commit | e96299eef5a9e951d9161b5a13bde9feecc2178c (patch) | |
tree | 9d23b0aaa7f8e4742dec04caea5837a32c84fa31 | |
parent | ff53dcf5607a82ad38388502b4cf5cc8cca77733 (diff) |
[Ryujinx.Horizon.Generators] Address dotnet-format issues (#5383)1.1.924
* dotnet format style --severity info
Some changes were manually reverted.
* Address most dotnet format whitespace warnings
* Apply dotnet format whitespace formatting
A few of them have been manually reverted and the corresponding warning was silenced
* dotnet format whitespace after rebase
-rw-r--r-- | src/Ryujinx.Horizon.Generators/CodeGenerator.cs | 2 | ||||
-rw-r--r-- | src/Ryujinx.Horizon.Generators/Hipc/HipcGenerator.cs | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/Ryujinx.Horizon.Generators/CodeGenerator.cs b/src/Ryujinx.Horizon.Generators/CodeGenerator.cs index 29e1c75c..59052499 100644 --- a/src/Ryujinx.Horizon.Generators/CodeGenerator.cs +++ b/src/Ryujinx.Horizon.Generators/CodeGenerator.cs @@ -40,7 +40,7 @@ namespace Ryujinx.Horizon.Generators { if (_currentIndentCount - 1 >= 0) { - _currentIndentCount--; + _currentIndentCount--; } } diff --git a/src/Ryujinx.Horizon.Generators/Hipc/HipcGenerator.cs b/src/Ryujinx.Horizon.Generators/Hipc/HipcGenerator.cs index 284df482..47b3c8cf 100644 --- a/src/Ryujinx.Horizon.Generators/Hipc/HipcGenerator.cs +++ b/src/Ryujinx.Horizon.Generators/Hipc/HipcGenerator.cs @@ -39,7 +39,7 @@ namespace Ryujinx.Horizon.Generators.Hipc In } - private struct OutParameter + private readonly struct OutParameter { public readonly string Name; public readonly string TypeName; @@ -341,7 +341,7 @@ namespace Ryujinx.Horizon.Generators.Hipc generator.AppendLine($"using var {argName} = {value};"); string spanGenericTypeName = GetCanonicalTypeNameOfGenericArgument(compilation, parameter.Type, 0); - argName = GenerateSpanCast(spanGenericTypeName, $"{argName}.Memory.Span"); ; + argName = GenerateSpanCast(spanGenericTypeName, $"{argName}.Memory.Span"); } else if (isNonSpanBuffer) { @@ -604,7 +604,7 @@ namespace Ryujinx.Horizon.Generators.Hipc return type; } - private static bool IsArgument(Compilation compilation,ParameterSyntax parameter) + private static bool IsArgument(Compilation compilation, ParameterSyntax parameter) { return !IsBuffer(compilation, parameter) && !IsHandle(compilation, parameter) && |