Skip to content

Fix #9282 FP Unused private function#4327

Merged
danmar merged 6 commits intocppcheck-opensource:mainfrom
chrchr-github:chr_Fix9282
Aug 7, 2022
Merged

Fix #9282 FP Unused private function#4327
danmar merged 6 commits intocppcheck-opensource:mainfrom
chrchr-github:chr_Fix9282

Conversation

@chrchr-github
Copy link
Copy Markdown
Collaborator

No description provided.

@chrchr-github
Copy link
Copy Markdown
Collaborator Author

CI failure seems unrelated.

@firewave
Copy link
Copy Markdown
Collaborator

CI failure seems unrelated.

Yeah - upstream issue. See #4329 (comment) for some of my comments.

@chrchr-github
Copy link
Copy Markdown
Collaborator Author

The simplification noexcept -> noexcept (true) does not work so well, see the second test case. Why do we have that? At least one test case actually relies on it, but I don't know how.

@firewave
Copy link
Copy Markdown
Collaborator

firewave commented Aug 2, 2022

The build has been fixed - please rebase.

@danmar
Copy link
Copy Markdown
Collaborator

danmar commented Aug 5, 2022

The simplification noexcept -> noexcept (true) does not work so well, see the second test case. Why do we have that? At least one test case actually relies on it, but I don't know how.

We can remove that simplification

@danmar
Copy link
Copy Markdown
Collaborator

danmar commented Aug 5, 2022

The simplification noexcept -> noexcept (true) does not work so well

stupid question: what is the difference?

@chrchr-github
Copy link
Copy Markdown
Collaborator Author

I thought you might know why it was done? If the simplification is removed, one or two test cases fails due to an AST error. So I thought it might be easier to just apply the simplification consistently.

@danmar
Copy link
Copy Markdown
Collaborator

danmar commented Aug 7, 2022

The simplification was added here: 1d491bd

I believe the simplification was added because it's easier to handle one syntax. But yes it was not simplified properly. If we remove the simplification we must ensure that all code handles both types of syntax.
In theory I would prefer that we remove simplifications and handle the code as is properly if it's not too much handling required here and there in various places.

@danmar danmar merged commit 974e344 into cppcheck-opensource:main Aug 7, 2022
@chrchr-github chrchr-github deleted the chr_Fix9282 branch October 22, 2022 09:48
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.

3 participants