Skip to content

Commit 8ad1159

Browse files
authored
Merge pull request github#13199 from jketema/private-prod-flow
C++: Add forgotten `private` specifiers in product flow
2 parents e143002 + 883ec7a commit 8ad1159

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cpp/ql/lib/experimental/semmle/code/cpp/dataflow/ProductFlow.qll

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -290,9 +290,9 @@ module ProductFlow {
290290
predicate isBarrierIn(DataFlow::Node node) { Config::isBarrierIn1(node) }
291291
}
292292

293-
module Flow1 = DataFlow::GlobalWithState<Config1>;
293+
private module Flow1 = DataFlow::GlobalWithState<Config1>;
294294

295-
module Config2 implements DataFlow::StateConfigSig {
295+
private module Config2 implements DataFlow::StateConfigSig {
296296
class FlowState = FlowState2;
297297

298298
predicate isSource(DataFlow::Node source, FlowState state) {
@@ -322,7 +322,7 @@ module ProductFlow {
322322
predicate isBarrierIn(DataFlow::Node node) { Config::isBarrierIn2(node) }
323323
}
324324

325-
module Flow2 = DataFlow::GlobalWithState<Config2>;
325+
private module Flow2 = DataFlow::GlobalWithState<Config2>;
326326

327327
pragma[nomagic]
328328
private predicate reachableInterprocEntry(

0 commit comments

Comments
 (0)