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

Skip to content

Commit 1063301

Browse files
author
Robert Marsh
committed
C++: autoformat
1 parent 2e187a5 commit 1063301

1 file changed

Lines changed: 8 additions & 7 deletions

File tree

  • cpp/ql/src/semmle/code/cpp/dataflow/internal

cpp/ql/src/semmle/code/cpp/dataflow/internal/FlowVar.qll

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -130,10 +130,9 @@ private module PartialDefinitions {
130130
* Holds if this `PartialDefinition` defines variable `v` at control-flow
131131
* node `cfn`.
132132
*/
133-
pragma[noinline] // does this work with a dispred?
134-
predicate partiallyDefinesVariableAt(Variable v, ControlFlowNode cfn) {
135-
none()
136-
}
133+
// does this work with a dispred?
134+
pragma[noinline]
135+
predicate partiallyDefinesVariableAt(Variable v, ControlFlowNode cfn) { none() }
137136

138137
/**
139138
* Holds if this partial definition may modify `inner` (or what it points
@@ -180,7 +179,7 @@ private module PartialDefinitions {
180179
inner = innerDefinedExpr and
181180
outer = this
182181
}
183-
182+
184183
override predicate partiallyDefinesVariableAt(Variable v, ControlFlowNode cfn) {
185184
v = collection and
186185
cfn = node
@@ -198,7 +197,9 @@ private module PartialDefinitions {
198197
)
199198
}
200199

201-
deprecated override predicate partiallyDefines(Variable v) { innerDefinedExpr = v.getAnAccess() }
200+
deprecated override predicate partiallyDefines(Variable v) {
201+
innerDefinedExpr = v.getAnAccess()
202+
}
202203

203204
deprecated override predicate partiallyDefinesThis(ThisExpr e) { innerDefinedExpr = e }
204205

@@ -214,7 +215,7 @@ private module PartialDefinitions {
214215
inner = innerDefinedExpr and
215216
outer = this
216217
}
217-
218+
218219
override predicate partiallyDefinesVariableAt(Variable v, ControlFlowNode cfn) {
219220
innerDefinedExpr = v.getAnAccess() and
220221
cfn = node

0 commit comments

Comments
 (0)