Skip to content

valueflow.cpp: removed unnecessary lambda encapsulation in valueFlowForwardConst()#7752

Closed
firewave wants to merge 1 commit intodanmar:mainfrom
firewave:vf-labda
Closed

valueflow.cpp: removed unnecessary lambda encapsulation in valueFlowForwardConst()#7752
firewave wants to merge 1 commit intodanmar:mainfrom
firewave:vf-labda

Conversation

@firewave
Copy link
Copy Markdown
Collaborator

No description provided.

@firewave
Copy link
Copy Markdown
Collaborator Author

Hide whitespaces in the diff for easier review.

@sonarqubecloud
Copy link
Copy Markdown

@firewave
Copy link
Copy Markdown
Collaborator Author

Okay, obviously I have no idea what that code is actually doing 😕. Someone please enlighten me ...

Copy link
Copy Markdown
Collaborator

@chrchr-github chrchr-github left a comment

Choose a reason for hiding this comment

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

There is a return that applies to the lambda, not the enclosing function.

@firewave
Copy link
Copy Markdown
Collaborator Author

Oh, that's cheeky.

@firewave firewave closed this Aug 19, 2025
@firewave firewave deleted the vf-labda branch August 19, 2025 09:08
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