Skip to content

Commit 722b220

Browse files
committed
propagate back changes from CppCheck object to Settings
1 parent dd13276 commit 722b220

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cli/cppcheckexecutor.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,13 +304,14 @@ int CppCheckExecutor::check_internal(Settings& settings)
304304
}
305305

306306
CppCheck cppcheck(*this, true, executeCommand);
307-
cppcheck.settings() = settings;
307+
cppcheck.settings() = settings; // this is a copy
308308

309309
unsigned int returnValue = 0;
310310
if (settings.useSingleJob()) {
311311
// Single process
312312
SingleExecutor executor(cppcheck, mFiles, settings, *this);
313313
returnValue = executor.check();
314+
settings = cppcheck.settings(); // propagate back changes
314315
} else {
315316
#if defined(THREADING_MODEL_THREAD)
316317
ThreadExecutor executor(mFiles, settings, *this);

0 commit comments

Comments
 (0)