Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0d4b2e4

Browse files
committed
C#/C++: Autoformat post rebase.
1 parent 726a873 commit 0d4b2e4

6 files changed

Lines changed: 20 additions & 19 deletions

File tree

cpp/ql/src/semmle/code/cpp/ir/dataflow/DefaultTaintTracking.qll

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,8 @@ private predicate instructionTaintStep(Instruction i1, Instruction i2) {
161161
i2.(PointerAddInstruction).getLeft() = i1
162162
or
163163
// Flow from argument to return value
164-
i2 = any(CallInstruction call |
164+
i2 =
165+
any(CallInstruction call |
165166
exists(int indexIn |
166167
modelTaintToReturnValue(call.getStaticCallTarget(), indexIn) and
167168
i1 = getACallArgumentOrIndirection(call, indexIn)
@@ -173,7 +174,8 @@ private predicate instructionTaintStep(Instruction i1, Instruction i2) {
173174
// together in a single virtual variable.
174175
// TODO: Will this work on the test for `TaintedPath.ql`, where the output arg
175176
// is a pointer addition expression?
176-
i2 = any(WriteSideEffectInstruction outNode |
177+
i2 =
178+
any(WriteSideEffectInstruction outNode |
177179
exists(CallInstruction call, int indexIn, int indexOut |
178180
modelTaintToParameter(call.getStaticCallTarget(), indexIn, indexOut) and
179181
i1 = getACallArgumentOrIndirection(call, indexIn) and

cpp/ql/src/semmle/code/cpp/ir/dataflow/internal/DataFlowDispatch.qll

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,8 @@ private module VirtualDispatch {
9292
)
9393
or
9494
exists(Variable var, FieldAccess a |
95-
var = store
95+
var =
96+
store
9697
.getDestinationAddress()
9798
.(FieldAddressInstruction)
9899
.getObjectAddress()

cpp/ql/src/semmle/code/cpp/ir/implementation/aliased_ssa/internal/PrintSSA.qll

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -115,10 +115,10 @@ class PropertyProvider extends IRPropertyProvider {
115115
MemoryLocation useLocation, IRBlock predBlock, IRBlock defBlock, int defIndex, Overlap overlap
116116
|
117117
hasPhiOperandDefinition(_, useLocation, block, predBlock, defBlock, defIndex) and
118-
key = "PhiUse[" + useLocation.toString() + " from " + predBlock.getDisplayIndex().toString() +
119-
"]" and
120-
result = defBlock.getDisplayIndex().toString() + "_" + defIndex + " (" + overlap.toString() +
121-
")"
118+
key =
119+
"PhiUse[" + useLocation.toString() + " from " + predBlock.getDisplayIndex().toString() + "]" and
120+
result =
121+
defBlock.getDisplayIndex().toString() + "_" + defIndex + " (" + overlap.toString() + ")"
122122
)
123123
or
124124
key = "LiveOnEntry" and

cpp/ql/src/semmle/code/cpp/ir/implementation/raw/internal/TranslatedDeclarationEntry.qll

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,8 @@ abstract class TranslatedLocalVariableDeclaration extends TranslatedVariableInit
5252
final override Type getTargetType() { result = getVariableType(getVariable()) }
5353

5454
final override TranslatedInitialization getInitialization() {
55-
result = getTranslatedInitialization(getVariable()
56-
.getInitializer()
57-
.getExpr()
58-
.getFullyConverted())
55+
result =
56+
getTranslatedInitialization(getVariable().getInitializer().getExpr().getFullyConverted())
5957
}
6058

6159
final override Instruction getInitializationSuccessor() {

cpp/ql/src/semmle/code/cpp/ir/implementation/unaliased_ssa/internal/PrintSSA.qll

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -115,10 +115,10 @@ class PropertyProvider extends IRPropertyProvider {
115115
MemoryLocation useLocation, IRBlock predBlock, IRBlock defBlock, int defIndex, Overlap overlap
116116
|
117117
hasPhiOperandDefinition(_, useLocation, block, predBlock, defBlock, defIndex) and
118-
key = "PhiUse[" + useLocation.toString() + " from " + predBlock.getDisplayIndex().toString() +
119-
"]" and
120-
result = defBlock.getDisplayIndex().toString() + "_" + defIndex + " (" + overlap.toString() +
121-
")"
118+
key =
119+
"PhiUse[" + useLocation.toString() + " from " + predBlock.getDisplayIndex().toString() + "]" and
120+
result =
121+
defBlock.getDisplayIndex().toString() + "_" + defIndex + " (" + overlap.toString() + ")"
122122
)
123123
or
124124
key = "LiveOnEntry" and

csharp/ql/src/semmle/code/csharp/ir/implementation/unaliased_ssa/internal/PrintSSA.qll

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -115,10 +115,10 @@ class PropertyProvider extends IRPropertyProvider {
115115
MemoryLocation useLocation, IRBlock predBlock, IRBlock defBlock, int defIndex, Overlap overlap
116116
|
117117
hasPhiOperandDefinition(_, useLocation, block, predBlock, defBlock, defIndex) and
118-
key = "PhiUse[" + useLocation.toString() + " from " + predBlock.getDisplayIndex().toString() +
119-
"]" and
120-
result = defBlock.getDisplayIndex().toString() + "_" + defIndex + " (" + overlap.toString() +
121-
")"
118+
key =
119+
"PhiUse[" + useLocation.toString() + " from " + predBlock.getDisplayIndex().toString() + "]" and
120+
result =
121+
defBlock.getDisplayIndex().toString() + "_" + defIndex + " (" + overlap.toString() + ")"
122122
)
123123
or
124124
key = "LiveOnEntry" and

0 commit comments

Comments
 (0)