@@ -16,6 +16,7 @@ import semmle.code.cpp.dataflow.new.DataFlow
16
16
private import DataFlowPrivate
17
17
private import DataFlowUtil
18
18
private import DataFlowImplCommon
19
+ private import DataFlowImplSpecific
19
20
private import codeql.util.Unit
20
21
21
22
/**
@@ -95,10 +96,7 @@ module ProductFlow {
95
96
* This can be overridden to a smaller value to improve performance (a
96
97
* value of 0 disables field flow), or a larger value to get more results.
97
98
*/
98
- default int fieldFlowBranchLimit1 ( ) {
99
- // NOTE: This should be synchronized with the default value in the shared dataflow library
100
- result = 2
101
- }
99
+ default int fieldFlowBranchLimit1 ( ) { result = CppDataFlow:: defaultFieldFlowBranchLimit ( ) }
102
100
103
101
/**
104
102
* Gets the virtual dispatch branching limit when calculating field flow in the second
@@ -107,10 +105,7 @@ module ProductFlow {
107
105
* This can be overridden to a smaller value to improve performance (a
108
106
* value of 0 disables field flow), or a larger value to get more results.
109
107
*/
110
- default int fieldFlowBranchLimit2 ( ) {
111
- // NOTE: This should be synchronized with the default value in the shared dataflow library
112
- result = 2
113
- }
108
+ default int fieldFlowBranchLimit2 ( ) { result = CppDataFlow:: defaultFieldFlowBranchLimit ( ) }
114
109
}
115
110
116
111
/**
@@ -304,10 +299,7 @@ module ProductFlow {
304
299
* This can be overridden to a smaller value to improve performance (a
305
300
* value of 0 disables field flow), or a larger value to get more results.
306
301
*/
307
- default int fieldFlowBranchLimit1 ( ) {
308
- // NOTE: This should be synchronized with the default value in the shared dataflow library
309
- result = 2
310
- }
302
+ default int fieldFlowBranchLimit1 ( ) { result = CppDataFlow:: defaultFieldFlowBranchLimit ( ) }
311
303
312
304
/**
313
305
* Gets the virtual dispatch branching limit when calculating field flow in the second
@@ -316,10 +308,7 @@ module ProductFlow {
316
308
* This can be overridden to a smaller value to improve performance (a
317
309
* value of 0 disables field flow), or a larger value to get more results.
318
310
*/
319
- default int fieldFlowBranchLimit2 ( ) {
320
- // NOTE: This should be synchronized with the default value in the shared dataflow library
321
- result = 2
322
- }
311
+ default int fieldFlowBranchLimit2 ( ) { result = CppDataFlow:: defaultFieldFlowBranchLimit ( ) }
323
312
}
324
313
325
314
/**
0 commit comments