Skip to content

Commit 50edf44

Browse files
committed
C++/C#: autoformat and sync files
1 parent 8919e55 commit 50edf44

File tree

6 files changed

+19
-16
lines changed

6 files changed

+19
-16
lines changed

cpp/ql/src/semmle/code/cpp/ir/implementation/aliased_ssa/Operand.qll

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,13 @@ private class TStageOperand =
2727
class Operand extends TStageOperand {
2828
Operand() {
2929
// Ensure that the operand does not refer to instructions from earlier stages that are unreachable here
30-
exists(Instruction use, Instruction def | this = registerOperand(use, _, def))
30+
this = registerOperand(_, _, _)
3131
or
32-
exists(Instruction use | this = nonSSAMemoryOperand(use, _))
32+
this = nonSSAMemoryOperand(_, _)
3333
or
34-
exists(Instruction use, Instruction def, IRBlock block | this = phiOperand(use, def, block, _))
34+
this = phiOperand(_, _, _, _)
3535
or
36-
exists(Instruction use | this = chiOperand(use, _))
36+
this = chiOperand(_, _)
3737
}
3838

3939
/** Gets a textual representation of this element. */

cpp/ql/src/semmle/code/cpp/ir/implementation/internal/TOperand.qll

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,7 @@ module UnaliasedSSAOperands {
132132
class TChiOperand = Internal::TNoOperand;
133133

134134
class TNonPhiMemoryOperand = TNonSSAMemoryOperand or TChiOperand;
135+
135136
/**
136137
* Returns the Phi operand with the specified parameters.
137138
*/
@@ -162,6 +163,7 @@ module AliasedSSAOperands {
162163
class TChiOperand = Internal::TAliasedChiOperand;
163164

164165
class TNonPhiMemoryOperand = TNonSSAMemoryOperand or TChiOperand;
166+
165167
/**
166168
* Returns the Phi operand with the specified parameters.
167169
*/

cpp/ql/src/semmle/code/cpp/ir/implementation/unaliased_ssa/Operand.qll

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,13 @@ private class TStageOperand =
2727
class Operand extends TStageOperand {
2828
Operand() {
2929
// Ensure that the operand does not refer to instructions from earlier stages that are unreachable here
30-
exists(Instruction use, Instruction def | this = registerOperand(use, _, def))
30+
this = registerOperand(_, _, _)
3131
or
32-
exists(Instruction use | this = nonSSAMemoryOperand(use, _))
32+
this = nonSSAMemoryOperand(_, _)
3333
or
34-
exists(Instruction use, Instruction def, IRBlock block | this = phiOperand(use, def, block, _))
34+
this = phiOperand(_, _, _, _)
3535
or
36-
exists(Instruction use | this = chiOperand(use, _))
36+
this = chiOperand(_, _)
3737
}
3838

3939
/** Gets a textual representation of this element. */

csharp/ql/src/experimental/ir/implementation/internal/TOperand.qll

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ module RawOperands {
8181
class TChiOperand = Internal::TNoOperand;
8282

8383
class TNonPhiMemoryOperand = TNonSSAMemoryOperand or TChiOperand;
84+
8485
/**
8586
* Returns the Phi operand with the specified parameters.
8687
*/

csharp/ql/src/experimental/ir/implementation/raw/Operand.qll

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,13 @@ private class TStageOperand =
2727
class Operand extends TStageOperand {
2828
Operand() {
2929
// Ensure that the operand does not refer to instructions from earlier stages that are unreachable here
30-
exists(Instruction use, Instruction def | this = registerOperand(use, _, def))
30+
this = registerOperand(_, _, _)
3131
or
32-
exists(Instruction use | this = nonSSAMemoryOperand(use, _))
32+
this = nonSSAMemoryOperand(_, _)
3333
or
34-
exists(Instruction use, Instruction def, IRBlock block | this = phiOperand(use, def, block, _))
34+
this = phiOperand(_, _, _, _)
3535
or
36-
exists(Instruction use | this = chiOperand(use, _))
36+
this = chiOperand(_, _)
3737
}
3838

3939
/** Gets a textual representation of this element. */

csharp/ql/src/experimental/ir/implementation/unaliased_ssa/Operand.qll

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,13 @@ private class TStageOperand =
2727
class Operand extends TStageOperand {
2828
Operand() {
2929
// Ensure that the operand does not refer to instructions from earlier stages that are unreachable here
30-
exists(Instruction use, Instruction def | this = registerOperand(use, _, def))
30+
this = registerOperand(_, _, _)
3131
or
32-
exists(Instruction use | this = nonSSAMemoryOperand(use, _))
32+
this = nonSSAMemoryOperand(_, _)
3333
or
34-
exists(Instruction use, Instruction def, IRBlock block | this = phiOperand(use, def, block, _))
34+
this = phiOperand(_, _, _, _)
3535
or
36-
exists(Instruction use | this = chiOperand(use, _))
36+
this = chiOperand(_, _)
3737
}
3838

3939
/** Gets a textual representation of this element. */

0 commit comments

Comments
 (0)