Skip to content

Commit cde05e1

Browse files
committed
Data flow: Sync files
1 parent c65780e commit cde05e1

Some content is hidden

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

43 files changed

+5858
-4778
lines changed

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

Lines changed: 160 additions & 130 deletions
Large diffs are not rendered by default.

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

Lines changed: 160 additions & 130 deletions
Large diffs are not rendered by default.

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

Lines changed: 160 additions & 130 deletions
Large diffs are not rendered by default.

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

Lines changed: 160 additions & 130 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 TParamNodeOption =
920-
TParamNodeNone() or
921-
TParamNodeSome(ParamNode p)
919+
newtype TParameterPositionOption =
920+
TParameterPositionNone() or
921+
TParameterPositionSome(ParameterPosition pos)
922922

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

929929
cached
930930
newtype TTypedContent = MkTypedContent(Content c, DataFlowType t) { store(_, c, _, _, t) }
@@ -1315,15 +1315,15 @@ class DataFlowCallOption extends TDataFlowCallOption {
13151315
}
13161316
}
13171317

1318-
/** An optional `ParamNode`. */
1319-
class ParamNodeOption extends TParamNodeOption {
1318+
/** An optional `ParameterPosition`. */
1319+
class ParameterPositionOption extends TParameterPositionOption {
13201320
string toString() {
1321-
this = TParamNodeNone() and
1321+
this = TParameterPositionNone() and
13221322
result = "(none)"
13231323
or
1324-
exists(ParamNode p |
1325-
this = TParamNodeSome(p) and
1326-
result = p.toString()
1324+
exists(ParameterPosition pos |
1325+
this = TParameterPositionSome(pos) and
1326+
result = pos.toString()
13271327
)
13281328
}
13291329
}
@@ -1335,7 +1335,7 @@ class ParamNodeOption extends TParamNodeOption {
13351335
*
13361336
* - `TReturnCtxNone()`: no return flow.
13371337
* - `TReturnCtxNoFlowThrough()`: return flow, but flow through is not possible.
1338-
* - `TReturnCtxMaybeFlowThrough(ReturnPosition pos)`: return flow, of kind `pos`, and
1338+
* - `TReturnCtxMaybeFlowThrough(ReturnKindExt kind)`: return flow, of kind `kind`, and
13391339
* flow through may be possible.
13401340
*/
13411341
class ReturnCtx extends TReturnCtx {
@@ -1346,9 +1346,9 @@ class ReturnCtx extends TReturnCtx {
13461346
this = TReturnCtxNoFlowThrough() and
13471347
result = "(no flow through)"
13481348
or
1349-
exists(ReturnPosition pos |
1350-
this = TReturnCtxMaybeFlowThrough(pos) and
1351-
result = pos.toString()
1349+
exists(ReturnKindExt kind |
1350+
this = TReturnCtxMaybeFlowThrough(kind) and
1351+
result = kind.toString()
13521352
)
13531353
}
13541354
}

0 commit comments

Comments
 (0)