Skip to content

Fix #11824 (Option --max-configs has no effect if -D is used)#7980

Merged
danmar merged 2 commits intodanmar:mainfrom
cppchecksolutions:fix-11824
Nov 27, 2025
Merged

Fix #11824 (Option --max-configs has no effect if -D is used)#7980
danmar merged 2 commits intodanmar:mainfrom
cppchecksolutions:fix-11824

Conversation

@danmar
Copy link
Copy Markdown
Owner

@danmar danmar commented Nov 22, 2025

Number of checked configurations:
cppcheck file.c => 12
cppcheck -DX file.c => 1
cppcheck -DX --max-configs=6 file.c => 6

move logic from cmdlineparser to Settings class where the code can be reused (from GUI). The Settings::checkAllConfigs is removed.

@danmar danmar marked this pull request as ready for review November 27, 2025 14:56
@danmar
Copy link
Copy Markdown
Owner Author

danmar commented Nov 27, 2025

ok after #7985 has been merged I feel I can properly test this PR.

@sonarqubecloud
Copy link
Copy Markdown

@danmar danmar merged commit bb2bb4f into danmar:main Nov 27, 2025
2 checks passed
@danmar danmar deleted the fix-11824 branch November 30, 2025 16:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant