Skip to content

got rid of global CTU::maxCtuDepth#6892

Merged
firewave merged 1 commit intocppcheck-opensource:mainfrom
firewave:ctu
Oct 16, 2024
Merged

got rid of global CTU::maxCtuDepth#6892
firewave merged 1 commit intocppcheck-opensource:mainfrom
firewave:ctu

Conversation

@firewave
Copy link
Copy Markdown
Collaborator

No description provided.

@firewave firewave changed the title got rid of global CTU::maxCtuDepth [skip ci] got rid of global CTU::maxCtuDepth Oct 10, 2024
Comment thread cli/cmdlineparser.cpp
int temp = 0;
if (!parseNumberArg(argv[i], 16, temp))
return Result::Fail;
if (temp > 10) {
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would like to keep this cap for a few versions (with a deprecation) because users might have specified a higher value and removing it would lead to different behavior and possibly decreased performance.

That cap previously lived in the function findPath() in lib/ctu.cpp.

@firewave firewave force-pushed the ctu branch 2 times, most recently from be3f996 to 307909f Compare October 12, 2024 15:19
@firewave firewave marked this pull request as ready for review October 14, 2024 18:33
@firewave firewave marked this pull request as draft October 14, 2024 19:04
@firewave firewave marked this pull request as ready for review October 14, 2024 19:10
@firewave
Copy link
Copy Markdown
Collaborator Author

The initial changes exposes some currently horrible design with the checks having mSettings which might not be set. That is supposed to be started to be addressed with #5323.

@firewave
Copy link
Copy Markdown
Collaborator Author

I filed https://trac.cppcheck.net/ticket/13237 about removing this limitation.

@firewave firewave merged commit 56b7b6a into cppcheck-opensource:main Oct 16, 2024
@firewave firewave deleted the ctu branch October 16, 2024 18:43
ludviggunne pushed a commit to ludviggunne/cppcheck that referenced this pull request Oct 19, 2024
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.

2 participants