Fix all new code style warnings
このコミットが含まれているのは:
1 親
10ef020591
コミット
a5aff06390
37ファイル変更
+55
-52
検索条件に一致するファイルはありません
+1
-1
@@ -17,7 +17,7 @@ namespace ComputeSharp.SourceGenerators;
|
||||
public sealed class ExcedeedComputeShaderDispatchDataSizeAnalyzer : DiagnosticAnalyzer
|
||||
{
|
||||
/// <inheritdoc/>
|
||||
public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(ShaderDispatchDataSizeExceeded);
|
||||
public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = [ShaderDispatchDataSizeExceeded];
|
||||
|
||||
/// <inheritdoc/>
|
||||
public override void Initialize(AnalysisContext context)
|
||||
|
||||
+1
-1
@@ -15,7 +15,7 @@ namespace ComputeSharp.SourceGenerators;
|
||||
public sealed class InvalidComputeContextCopyAnalyzer : DiagnosticAnalyzer
|
||||
{
|
||||
/// <inheritdoc/>
|
||||
public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(InvalidComputeContextCopy);
|
||||
public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = [InvalidComputeContextCopy];
|
||||
|
||||
/// <inheritdoc/>
|
||||
public override void Initialize(AnalysisContext context)
|
||||
|
||||
+1
-1
@@ -13,7 +13,7 @@ namespace ComputeSharp.SourceGenerators;
|
||||
public sealed class InvalidGeneratedComputeShaderDescriptorAttributeTargetAnalyzer : DiagnosticAnalyzer
|
||||
{
|
||||
/// <inheritdoc/>
|
||||
public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(InvalidGeneratedComputeShaderDescriptorAttributeTarget);
|
||||
public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = [InvalidGeneratedComputeShaderDescriptorAttributeTarget];
|
||||
|
||||
/// <inheritdoc/>
|
||||
public override void Initialize(AnalysisContext context)
|
||||
|
||||
+1
-1
@@ -13,7 +13,7 @@ namespace ComputeSharp.SourceGenerators;
|
||||
public sealed class InvalidGloballyCoherentFieldDeclarationAnalyzer : DiagnosticAnalyzer
|
||||
{
|
||||
/// <inheritdoc/>
|
||||
public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(InvalidGloballyCoherentFieldDeclaration);
|
||||
public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = [InvalidGloballyCoherentFieldDeclaration];
|
||||
|
||||
/// <inheritdoc/>
|
||||
public override void Initialize(AnalysisContext context)
|
||||
|
||||
+1
-1
@@ -13,7 +13,7 @@ namespace ComputeSharp.SourceGenerators;
|
||||
public sealed class InvalidGroupSharedFieldDeclarationAnalyzer : DiagnosticAnalyzer
|
||||
{
|
||||
/// <inheritdoc/>
|
||||
public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(InvalidGroupSharedFieldDeclaration);
|
||||
public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = [InvalidGroupSharedFieldDeclaration];
|
||||
|
||||
/// <inheritdoc/>
|
||||
public override void Initialize(AnalysisContext context)
|
||||
|
||||
+4
-2
@@ -14,10 +14,12 @@ namespace ComputeSharp.SourceGenerators;
|
||||
public sealed class InvalidThreadGroupSizeAttributeUseAnalyzer : DiagnosticAnalyzer
|
||||
{
|
||||
/// <inheritdoc/>
|
||||
public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(
|
||||
public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } =
|
||||
[
|
||||
MissingThreadGroupSizeAttribute,
|
||||
InvalidThreadGroupSizeAttributeDefaultThreadGroupSizes,
|
||||
InvalidThreadGroupSizeAttributeValues);
|
||||
InvalidThreadGroupSizeAttributeValues,
|
||||
];
|
||||
|
||||
/// <inheritdoc/>
|
||||
public override void Initialize(AnalysisContext context)
|
||||
|
||||
+1
-1
@@ -14,7 +14,7 @@ namespace ComputeSharp.SourceGenerators;
|
||||
public sealed class MissingComputeShaderDescriptorOnComputeShaderAnalyzer : DiagnosticAnalyzer
|
||||
{
|
||||
/// <inheritdoc/>
|
||||
public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(MissingComputeShaderDescriptorOnComputeShaderType);
|
||||
public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = [MissingComputeShaderDescriptorOnComputeShaderType];
|
||||
|
||||
/// <inheritdoc/>
|
||||
public override void Initialize(AnalysisContext context)
|
||||
|
||||
+1
-1
@@ -14,7 +14,7 @@ namespace ComputeSharp.SourceGenerators;
|
||||
public sealed class MultipleComputeShaderInterfacesOnShaderTypeAnalyzer : DiagnosticAnalyzer
|
||||
{
|
||||
/// <inheritdoc/>
|
||||
public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(MultipleShaderTypesImplemented);
|
||||
public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = [MultipleShaderTypesImplemented];
|
||||
|
||||
/// <inheritdoc/>
|
||||
public override void Initialize(AnalysisContext context)
|
||||
|
||||
+1
-2
@@ -1,4 +1,3 @@
|
||||
using System.Collections.Immutable;
|
||||
using ComputeSharp.SourceGeneration.Diagnostics;
|
||||
using Microsoft.CodeAnalysis;
|
||||
using Microsoft.CodeAnalysis.Diagnostics;
|
||||
@@ -14,7 +13,7 @@ public sealed class NotReadOnlyComputeShaderTypeWithFieldsAnalyzer : NotReadOnly
|
||||
/// Creates a new <see cref="NotReadOnlyComputeShaderTypeWithFieldsAnalyzer"/> instance.
|
||||
/// </summary>
|
||||
public NotReadOnlyComputeShaderTypeWithFieldsAnalyzer()
|
||||
: base(NotReadOnlyShaderType, ImmutableArray.Create("ComputeSharp.IComputeShader", "ComputeSharp.IComputeShader`1"))
|
||||
: base(NotReadOnlyShaderType, ["ComputeSharp.IComputeShader", "ComputeSharp.IComputeShader`1"])
|
||||
{
|
||||
}
|
||||
}
|
||||
新しいイシューから参照
ユーザーをブロックする