Skip to content

Commit 912260b

Browse files
committed
C++: Autoformat tests.
1 parent 795afa8 commit 912260b

File tree

2 files changed

+5
-11
lines changed

2 files changed

+5
-11
lines changed

cpp/ql/test/library-tests/controlflow/stackvariablereachability/StackVariableReachabilityWithReassignment.ql

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import semmle.code.cpp.controlflow.StackVariableReachability
33

44
class MyStackVariableReachability extends StackVariableReachabilityWithReassignment {
55
MyStackVariableReachability() { this = "MyStackVariableReachability" }
6-
6+
77
override predicate isSourceActual(ControlFlowNode node, StackVariable v) {
88
exprDefinition(v, _, node)
99
}
@@ -12,9 +12,7 @@ class MyStackVariableReachability extends StackVariableReachabilityWithReassignm
1212
node.(VariableAccess).getTarget() = v
1313
}
1414

15-
override predicate isBarrier(ControlFlowNode node, StackVariable v) {
16-
exprDefinition(v, _, node)
17-
}
15+
override predicate isBarrier(ControlFlowNode node, StackVariable v) { exprDefinition(v, _, node) }
1816
}
1917

2018
from MyStackVariableReachability svr, ControlFlowNode sink

cpp/ql/test/library-tests/controlflow/stackvariablereachability/stackVariableReachability.ql

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,14 @@ import semmle.code.cpp.controlflow.StackVariableReachability
33

44
class MyStackVariableReachability extends StackVariableReachability {
55
MyStackVariableReachability() { this = "MyStackVariableReachability" }
6-
7-
override predicate isSource(ControlFlowNode node, StackVariable v) {
8-
exprDefinition(v, _, node)
9-
}
6+
7+
override predicate isSource(ControlFlowNode node, StackVariable v) { exprDefinition(v, _, node) }
108

119
override predicate isSink(ControlFlowNode node, StackVariable v) {
1210
node.(VariableAccess).getTarget() = v
1311
}
1412

15-
override predicate isBarrier(ControlFlowNode node, StackVariable v) {
16-
exprDefinition(v, _, node)
17-
}
13+
override predicate isBarrier(ControlFlowNode node, StackVariable v) { exprDefinition(v, _, node) }
1814
}
1915

2016
from MyStackVariableReachability svr, ControlFlowNode sink

0 commit comments

Comments
 (0)