CheckInternal::checkRedundantNextPrevious(): Fix FN, simplify#6478
CheckInternal::checkRedundantNextPrevious(): Fix FN, simplify#6478chrchr-github merged 8 commits intocppcheck-opensource:mainfrom
Conversation
|
The merge is bad - it removes unrelated stuff. |
|
It still changed unrelated code - see |
| std::map<std::string, Token *> argumentNames; | ||
| bool bailOut = false; | ||
| Token * tokparam = nullptr; | ||
| const Token * tokparam = nullptr; |
There was a problem hiding this comment.
It seems strange we can detect this now. Looks like some underlying false negative.
|
Looks clean now. |
|
callgrind in CI: |
|
That's with edf0104 already applied, right? |
I think this is fine. But I wonder if there is a potential matchcompiler pass here. |
Yes. |
|
Just a side note: Calling it "redundant" is a bit misleading as using the |
With such a pass we could get rid of some of the manual optimizations we did by storing the result of an I will file a ticket about this. |
|
No description provided.