Skip to content

Commit 3432304

Browse files
committed
C#: Autoformat.
1 parent aa07020 commit 3432304

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+49
-105
lines changed

csharp/ql/src/Language Abuse/UselessUpcast.ql

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,6 @@ private class ConstructorCall extends Call {
7575
/** An explicit upcast. */
7676
class ExplicitUpcast extends ExplicitCast {
7777
ValueOrRefType src;
78-
7978
ValueOrRefType dest;
8079

8180
ExplicitUpcast() {

csharp/ql/src/Likely Bugs/Collections/ContainerLengthCmpOffByOne.ql

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ import semmle.code.csharp.commons.ComparisonTest
1919
/** A comparison of an index variable with the length of an array. */
2020
class IndexGuard extends ComparisonTest {
2121
VariableAccess indexAccess;
22-
2322
Variable array;
2423

2524
IndexGuard() {

csharp/ql/src/Likely Bugs/NestedLoopsSameVariable.ql

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,8 @@ class NestedForConditions extends SC::StructuralComparisonConfiguration {
3030
/** A nested `for` statement that shares the same iteration variable as an outer `for` statement. */
3131
class NestedForLoopSameVariable extends ForStmt {
3232
ForStmt outer;
33-
3433
Variable iteration;
35-
3634
MutatorOperation innerUpdate;
37-
3835
MutatorOperation outerUpdate;
3936

4037
NestedForLoopSameVariable() {

csharp/ql/src/Security Features/CWE-937/Vulnerability.qll

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import csharp
66
*/
77
class Package extends XMLElement {
88
string name;
9-
109
Version version;
1110

1211
Package() {

csharp/ql/src/semmle/code/cil/CallableReturns.qll

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ private module Cached {
2828
forex(Throw ex | ex = m.getImplementation().getAnInstruction() | t = ex.getExpr().getType())
2929
}
3030
}
31+
3132
import Cached
3233

3334
pragma[noinline]

csharp/ql/src/semmle/code/cil/DataFlow.qll

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,7 @@ module DefUse {
204204
exists(VariableUpdate vu | def = vu.getSource() | variableUpdateUse(target, vu, use))
205205
}
206206
}
207+
207208
private import DefUse
208209

209210
abstract library class VariableUpdate extends Instruction {

csharp/ql/src/semmle/code/cil/Method.qll

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,7 @@ class Method extends DotNet::Callable, Element, Member, TypeContainer, DataFlowN
8585

8686
override Location getLocation() { result = Element.super.getLocation() }
8787

88-
override Location getALocation() {
89-
cil_method_location(this.getSourceDeclaration(), result)
90-
}
88+
override Location getALocation() { cil_method_location(this.getSourceDeclaration(), result) }
9189

9290
override Parameter getRawParameter(int n) { cil_parameter(result, this, n, _) }
9391

csharp/ql/src/semmle/code/cil/Stubs.qll

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ private module Cached {
4040
exists(mi.getAnInstruction())
4141
}
4242
}
43+
4344
private import Cached
4445

4546
predicate assemblyIsStub = assemblyIsStubImpl/1;

csharp/ql/src/semmle/code/cil/Type.qll

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,7 @@ class Type extends DotNet::Type, Declaration, TypeContainer, @cil_type {
5757
qualifier = this.getParent().getQualifiedName()
5858
}
5959

60-
override Location getALocation() {
61-
cil_type_location(this.getSourceDeclaration(), result)
62-
}
60+
override Location getALocation() { cil_type_location(this.getSourceDeclaration(), result) }
6361

6462
/** Holds if this type is a class. */
6563
predicate isClass() { cil_class(this) }

csharp/ql/src/semmle/code/csharp/AnnotatedType.qll

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,6 @@ private newtype TAnnotatedType =
175175
/** A type with additional information. */
176176
class AnnotatedType extends TAnnotatedType {
177177
Type type;
178-
179178
Annotations::TypeAnnotations annotations;
180179

181180
AnnotatedType() { this = TAnnotatedTypeNullability(type, annotations) }

0 commit comments

Comments
 (0)