Skip to content

Commit 5753a2d

Browse files
committed
C++: autoformat
1 parent 693626e commit 5753a2d

File tree

5 files changed

+15
-20
lines changed

5 files changed

+15
-20
lines changed

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

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,7 @@ class Instruction extends Construction::TStageInstruction {
9494

9595
private string getConflationPrefix() {
9696
shouldGenerateDumpStrings() and
97-
if isResultConflated()
98-
then result = "%"
99-
else result = ""
97+
if isResultConflated() then result = "%" else result = ""
10098
}
10199

102100
/**
@@ -150,7 +148,8 @@ class Instruction extends Construction::TStageInstruction {
150148
*/
151149
final string getResultString() {
152150
shouldGenerateDumpStrings() and
153-
result = getConflationPrefix() + getResultId() + "(" + getResultLanguageType().getDumpString() + ")"
151+
result =
152+
getConflationPrefix() + getResultId() + "(" + getResultLanguageType().getDumpString() + ")"
154153
}
155154

156155
/**

cpp/ql/src/semmle/code/cpp/ir/implementation/raw/Instruction.qll

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,7 @@ class Instruction extends Construction::TStageInstruction {
9494

9595
private string getConflationPrefix() {
9696
shouldGenerateDumpStrings() and
97-
if isResultConflated()
98-
then result = "%"
99-
else result = ""
97+
if isResultConflated() then result = "%" else result = ""
10098
}
10199

102100
/**
@@ -150,7 +148,8 @@ class Instruction extends Construction::TStageInstruction {
150148
*/
151149
final string getResultString() {
152150
shouldGenerateDumpStrings() and
153-
result = getConflationPrefix() + getResultId() + "(" + getResultLanguageType().getDumpString() + ")"
151+
result =
152+
getConflationPrefix() + getResultId() + "(" + getResultLanguageType().getDumpString() + ")"
154153
}
155154

156155
/**

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

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,7 @@ class Instruction extends Construction::TStageInstruction {
9494

9595
private string getConflationPrefix() {
9696
shouldGenerateDumpStrings() and
97-
if isResultConflated()
98-
then result = "%"
99-
else result = ""
97+
if isResultConflated() then result = "%" else result = ""
10098
}
10199

102100
/**
@@ -150,7 +148,8 @@ class Instruction extends Construction::TStageInstruction {
150148
*/
151149
final string getResultString() {
152150
shouldGenerateDumpStrings() and
153-
result = getConflationPrefix() + getResultId() + "(" + getResultLanguageType().getDumpString() + ")"
151+
result =
152+
getConflationPrefix() + getResultId() + "(" + getResultLanguageType().getDumpString() + ")"
154153
}
155154

156155
/**

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

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,7 @@ class Instruction extends Construction::TStageInstruction {
9494

9595
private string getConflationPrefix() {
9696
shouldGenerateDumpStrings() and
97-
if isResultConflated()
98-
then result = "%"
99-
else result = ""
97+
if isResultConflated() then result = "%" else result = ""
10098
}
10199

102100
/**
@@ -150,7 +148,8 @@ class Instruction extends Construction::TStageInstruction {
150148
*/
151149
final string getResultString() {
152150
shouldGenerateDumpStrings() and
153-
result = getConflationPrefix() + getResultId() + "(" + getResultLanguageType().getDumpString() + ")"
151+
result =
152+
getConflationPrefix() + getResultId() + "(" + getResultLanguageType().getDumpString() + ")"
154153
}
155154

156155
/**

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

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,7 @@ class Instruction extends Construction::TStageInstruction {
9494

9595
private string getConflationPrefix() {
9696
shouldGenerateDumpStrings() and
97-
if isResultConflated()
98-
then result = "%"
99-
else result = ""
97+
if isResultConflated() then result = "%" else result = ""
10098
}
10199

102100
/**
@@ -150,7 +148,8 @@ class Instruction extends Construction::TStageInstruction {
150148
*/
151149
final string getResultString() {
152150
shouldGenerateDumpStrings() and
153-
result = getConflationPrefix() + getResultId() + "(" + getResultLanguageType().getDumpString() + ")"
151+
result =
152+
getConflationPrefix() + getResultId() + "(" + getResultLanguageType().getDumpString() + ")"
154153
}
155154

156155
/**

0 commit comments

Comments
 (0)