Skip to content

Commit 527b6fb

Browse files
committed
Revert "ValueFlow: Set max iterations to 2 in normal analysis (cppcheck-opensource#4951)"
This reverts commit 02a3d03.
1 parent 02a3d03 commit 527b6fb

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

lib/settings.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ Settings::Settings()
7171
showtime(SHOWTIME_MODES::SHOWTIME_NONE),
7272
templateMaxTime(0),
7373
typedefMaxTime(0),
74-
valueFlowMaxIterations(2),
74+
valueFlowMaxIterations(4),
7575
verbose(false),
7676
xml(false),
7777
xml_version(2)
@@ -229,7 +229,6 @@ void Settings::setCheckLevelExhaustive()
229229
{
230230
// Checking can take a little while. ~ 10 times slower than normal analysis is OK.
231231
performanceValueFlowMaxIfCount = -1;
232-
valueFlowMaxIterations = 4;
233232
performanceValueFlowMaxSubFunctionArgs = 256;
234233
}
235234

@@ -238,5 +237,4 @@ void Settings::setCheckLevelNormal()
238237
// Checking should finish in reasonable time.
239238
performanceValueFlowMaxSubFunctionArgs = 8;
240239
performanceValueFlowMaxIfCount = 100;
241-
valueFlowMaxIterations = 2;
242240
}

0 commit comments

Comments
 (0)