Skip to content

fix: Static analysis issues#3208

Closed
ghost wants to merge 2 commits into
masterfrom
unknown repository
Closed

fix: Static analysis issues#3208
ghost wants to merge 2 commits into
masterfrom
unknown repository

Conversation

@ghost

@ghost ghost commented Nov 28, 2022

Copy link
Copy Markdown

fixes #3204 – issues reported by Klocwork

Comment thread include/fmt/core.h
Comment on lines +2715 to +2716
handler_.on_text(from, to);
return;

@vitaut vitaut Nov 30, 2022

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

These and similar changes elsewhere look unnecessary, please revert.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

I commented on the #3204 reasons for this change and 2 more below.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks for providing more context but I still don't see reasons for changing this. Let's revert. The other changes seem fine.

@vitaut vitaut left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Mostly looks good but I don't think we need to change parsing logic. Those returns are perfectly valid code and make the logic a bit more readable.

@vitaut

vitaut commented Dec 1, 2022

Copy link
Copy Markdown
Contributor

Partly merged in b0c8263, thanks.

@vitaut vitaut closed this Dec 1, 2022
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.

Static analysis issues

1 participant