Skip to content

Commit 6eda042

Browse files
committed
Data flow: Sync files
1 parent adc738c commit 6eda042

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+4525
-5513
lines changed

cpp/ql/lib/experimental/semmle/code/cpp/ir/dataflow/internal/DataFlowImpl.qll

Lines changed: 116 additions & 142 deletions
Large diffs are not rendered by default.

cpp/ql/lib/experimental/semmle/code/cpp/ir/dataflow/internal/DataFlowImpl2.qll

Lines changed: 116 additions & 142 deletions
Large diffs are not rendered by default.

cpp/ql/lib/experimental/semmle/code/cpp/ir/dataflow/internal/DataFlowImpl3.qll

Lines changed: 116 additions & 142 deletions
Large diffs are not rendered by default.

cpp/ql/lib/experimental/semmle/code/cpp/ir/dataflow/internal/DataFlowImpl4.qll

Lines changed: 116 additions & 142 deletions
Large diffs are not rendered by default.

cpp/ql/lib/experimental/semmle/code/cpp/ir/dataflow/internal/DataFlowImplCommon.qll

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -916,15 +916,15 @@ private module Cached {
916916
TDataFlowCallSome(DataFlowCall call)
917917

918918
cached
919-
newtype TParameterPositionOption =
920-
TParameterPositionNone() or
921-
TParameterPositionSome(ParameterPosition pos)
919+
newtype TParamNodeOption =
920+
TParamNodeNone() or
921+
TParamNodeSome(ParamNode p)
922922

923923
cached
924924
newtype TReturnCtx =
925925
TReturnCtxNone() or
926926
TReturnCtxNoFlowThrough() or
927-
TReturnCtxMaybeFlowThrough(ReturnKindExt kind)
927+
TReturnCtxMaybeFlowThrough(ReturnPosition pos)
928928

929929
cached
930930
newtype TTypedContentApprox =
@@ -1343,15 +1343,15 @@ class DataFlowCallOption extends TDataFlowCallOption {
13431343
}
13441344
}
13451345

1346-
/** An optional `ParameterPosition`. */
1347-
class ParameterPositionOption extends TParameterPositionOption {
1346+
/** An optional `ParamNode`. */
1347+
class ParamNodeOption extends TParamNodeOption {
13481348
string toString() {
1349-
this = TParameterPositionNone() and
1349+
this = TParamNodeNone() and
13501350
result = "(none)"
13511351
or
1352-
exists(ParameterPosition pos |
1353-
this = TParameterPositionSome(pos) and
1354-
result = pos.toString()
1352+
exists(ParamNode p |
1353+
this = TParamNodeSome(p) and
1354+
result = p.toString()
13551355
)
13561356
}
13571357
}
@@ -1363,7 +1363,7 @@ class ParameterPositionOption extends TParameterPositionOption {
13631363
*
13641364
* - `TReturnCtxNone()`: no return flow.
13651365
* - `TReturnCtxNoFlowThrough()`: return flow, but flow through is not possible.
1366-
* - `TReturnCtxMaybeFlowThrough(ReturnKindExt kind)`: return flow, of kind `kind`, and
1366+
* - `TReturnCtxMaybeFlowThrough(ReturnPosition pos)`: return flow, of kind `pos`, and
13671367
* flow through may be possible.
13681368
*/
13691369
class ReturnCtx extends TReturnCtx {
@@ -1374,9 +1374,9 @@ class ReturnCtx extends TReturnCtx {
13741374
this = TReturnCtxNoFlowThrough() and
13751375
result = "(no flow through)"
13761376
or
1377-
exists(ReturnKindExt kind |
1378-
this = TReturnCtxMaybeFlowThrough(kind) and
1379-
result = kind.toString()
1377+
exists(ReturnPosition pos |
1378+
this = TReturnCtxMaybeFlowThrough(pos) and
1379+
result = pos.toString()
13801380
)
13811381
}
13821382
}

cpp/ql/lib/semmle/code/cpp/dataflow/internal/DataFlowImpl.qll

Lines changed: 116 additions & 142 deletions
Large diffs are not rendered by default.

cpp/ql/lib/semmle/code/cpp/dataflow/internal/DataFlowImpl2.qll

Lines changed: 116 additions & 142 deletions
Large diffs are not rendered by default.

cpp/ql/lib/semmle/code/cpp/dataflow/internal/DataFlowImpl3.qll

Lines changed: 116 additions & 142 deletions
Large diffs are not rendered by default.

cpp/ql/lib/semmle/code/cpp/dataflow/internal/DataFlowImpl4.qll

Lines changed: 116 additions & 142 deletions
Large diffs are not rendered by default.

cpp/ql/lib/semmle/code/cpp/dataflow/internal/DataFlowImplCommon.qll

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -916,15 +916,15 @@ private module Cached {
916916
TDataFlowCallSome(DataFlowCall call)
917917

918918
cached
919-
newtype TParameterPositionOption =
920-
TParameterPositionNone() or
921-
TParameterPositionSome(ParameterPosition pos)
919+
newtype TParamNodeOption =
920+
TParamNodeNone() or
921+
TParamNodeSome(ParamNode p)
922922

923923
cached
924924
newtype TReturnCtx =
925925
TReturnCtxNone() or
926926
TReturnCtxNoFlowThrough() or
927-
TReturnCtxMaybeFlowThrough(ReturnKindExt kind)
927+
TReturnCtxMaybeFlowThrough(ReturnPosition pos)
928928

929929
cached
930930
newtype TTypedContentApprox =
@@ -1343,15 +1343,15 @@ class DataFlowCallOption extends TDataFlowCallOption {
13431343
}
13441344
}
13451345

1346-
/** An optional `ParameterPosition`. */
1347-
class ParameterPositionOption extends TParameterPositionOption {
1346+
/** An optional `ParamNode`. */
1347+
class ParamNodeOption extends TParamNodeOption {
13481348
string toString() {
1349-
this = TParameterPositionNone() and
1349+
this = TParamNodeNone() and
13501350
result = "(none)"
13511351
or
1352-
exists(ParameterPosition pos |
1353-
this = TParameterPositionSome(pos) and
1354-
result = pos.toString()
1352+
exists(ParamNode p |
1353+
this = TParamNodeSome(p) and
1354+
result = p.toString()
13551355
)
13561356
}
13571357
}
@@ -1363,7 +1363,7 @@ class ParameterPositionOption extends TParameterPositionOption {
13631363
*
13641364
* - `TReturnCtxNone()`: no return flow.
13651365
* - `TReturnCtxNoFlowThrough()`: return flow, but flow through is not possible.
1366-
* - `TReturnCtxMaybeFlowThrough(ReturnKindExt kind)`: return flow, of kind `kind`, and
1366+
* - `TReturnCtxMaybeFlowThrough(ReturnPosition pos)`: return flow, of kind `pos`, and
13671367
* flow through may be possible.
13681368
*/
13691369
class ReturnCtx extends TReturnCtx {
@@ -1374,9 +1374,9 @@ class ReturnCtx extends TReturnCtx {
13741374
this = TReturnCtxNoFlowThrough() and
13751375
result = "(no flow through)"
13761376
or
1377-
exists(ReturnKindExt kind |
1378-
this = TReturnCtxMaybeFlowThrough(kind) and
1379-
result = kind.toString()
1377+
exists(ReturnPosition pos |
1378+
this = TReturnCtxMaybeFlowThrough(pos) and
1379+
result = pos.toString()
13801380
)
13811381
}
13821382
}

0 commit comments

Comments
 (0)