-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CheckInternal::checkRedundantNextPrevious(): Fix FN, simplify #6478
Conversation
The merge is bad - it removes unrelated stuff. |
It still changed unrelated code - see |
@@ -6749,7 +6749,7 @@ void Tokenizer::simplifyFunctionParameters() | |||
// First step: Get list of argument names in parentheses | |||
std::map<std::string, Token *> argumentNames; | |||
bool bailOut = false; | |||
Token * tokparam = nullptr; | |||
const Token * tokparam = nullptr; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.