cppcheck icon indicating copy to clipboard operation
cppcheck copied to clipboard

refs #12861 - exit early in `ConditionHandler::traverseCondition()`

Open firewave opened this issue 3 months ago • 6 comments

firewave avatar Sep 14 '25 01:09 firewave

Analyzing the code from https://trac.cppcheck.net/ticket/12861:

Clang 20 - 11,437,539,974 -> 3,423,215,226 -> 737,254,030

This needs more testing as it might be detrimental in cases which are not affected by excessive astTop() calls.

firewave avatar Sep 14 '25 01:09 firewave

Can we reduce the timeout in the #12847 test with this?

chrchr-github avatar Sep 15 '25 06:09 chrchr-github

Can we reduce the timeout in the #12847 test with this?

Yes. I forgot to add the reference for the code I tested it with.

firewave avatar Sep 15 '25 07:09 firewave

Clang 20 - 11,437,539,974 -> 3,423,215,226 -> 737,254,030

The second drop does not occur. It was a mistake in an intermediate version.

firewave avatar Sep 26 '25 08:09 firewave

Clang 20 - 11,437,539,974 -> 3,423,215,226 -> 737,254,030

The second drop does not occur. It was a mistake in an intermediate version.

There's a way to address it anyways but let's do that in a separate PR since it also might have detrimental effects on other cases.

firewave avatar Sep 26 '25 08:09 firewave