Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions shared/dataflow/codeql/dataflow/DataFlow.qll
Original file line number Diff line number Diff line change
Expand Up @@ -342,6 +342,9 @@ signature module InputSig<LocationSig Location> {
any()
}

/** Gets the default value for the `fieldFlowBranchLimit` */
default int defaultFieldFlowBranchLimit() { result = 2 }

/** Holds if `fieldFlowBranchLimit` should be ignored for flow going into/out of `c`. */
default predicate ignoreFieldFlowBranchLimit(DataFlowCallable c) { none() }
}
Expand Down Expand Up @@ -399,7 +402,7 @@ module Configs<LocationSig Location, InputSig<Location> Lang> {
* This can be overridden to a smaller value to improve performance (a
* value of 0 disables field flow), or a larger value to get more results.
*/
default int fieldFlowBranchLimit() { result = 2 }
default int fieldFlowBranchLimit() { result = Lang::defaultFieldFlowBranchLimit() }

/** Gets the access path limit. */
default int accessPathLimit() { result = Lang::accessPathLimit() }
Expand Down Expand Up @@ -548,7 +551,7 @@ module Configs<LocationSig Location, InputSig<Location> Lang> {
* This can be overridden to a smaller value to improve performance (a
* value of 0 disables field flow), or a larger value to get more results.
*/
default int fieldFlowBranchLimit() { result = 2 }
default int fieldFlowBranchLimit() { result = Lang::defaultFieldFlowBranchLimit() }

/** Gets the access path limit. */
default int accessPathLimit() { result = Lang::accessPathLimit() }
Expand Down
Loading