Skip to content

Commit f3212fe

Browse files
committed
C++: Autoformat.
1 parent 494afdd commit f3212fe

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

cpp/ql/lib/experimental/semmle/code/cpp/semantic/SemanticExprSpecific.qll

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -120,16 +120,15 @@ module SemanticExprConfig {
120120
int getBasicBlockUniqueId(BasicBlock block) { idOf(block.getFirstInstruction().getAst(), result) }
121121

122122
newtype TSsaVariable =
123-
TSsaInstruction(IR::Instruction instr) {
124-
instr.hasMemoryResult()
125-
} or
123+
TSsaInstruction(IR::Instruction instr) { instr.hasMemoryResult() } or
126124
TSsaOperand(IR::Operand op) { op.isDefinitionInexact() } or
127125
TSsaPointerArithmeticGuard(IR::PointerArithmeticInstruction instr) {
128126
exists(Guard g, IR::Operand use | use = instr.getAUse() |
129127
g.comparesLt(use, _, _, _, _) or
130128
g.comparesLt(_, use, _, _, _) or
131129
g.comparesEq(use, _, _, _, _) or
132-
g.comparesEq(_, use, _, _, _))
130+
g.comparesEq(_, use, _, _, _)
131+
)
133132
}
134133

135134
class SsaVariable extends TSsaVariable {
@@ -238,7 +237,7 @@ module SemanticExprConfig {
238237
exists(IR::Operand operand |
239238
operand.getDef() = v.asInstruction() or
240239
operand.getDef() = valueNumber(v.asPointerArithGuard()).getAnInstruction()
241-
|
240+
|
242241
not operand instanceof IR::PhiInputOperand and
243242
operand.getUse().getBlock() = block
244243
)
@@ -259,7 +258,7 @@ module SemanticExprConfig {
259258
exists(IR::PhiInputOperand operand |
260259
operand.getDef() = v.asInstruction() or
261260
operand.getDef() = valueNumber(v.asPointerArithGuard()).getAnInstruction()
262-
|
261+
|
263262
operand.getPredecessorBlock() = pred and
264263
operand.getUse().getBlock() = succ
265264
)

0 commit comments

Comments
 (0)