Skip to content
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

Cppcheck 2.14.0 support #2668

Closed
Nekto89 opened this issue Apr 21, 2024 · 3 comments · Fixed by #2677
Closed

Cppcheck 2.14.0 support #2668

Nekto89 opened this issue Apr 21, 2024 · 3 comments · Fixed by #2677
Assignees
Milestone

Comments

@Nekto89
Copy link
Contributor

Nekto89 commented Apr 21, 2024

Cppcheck 2.14.0 has been released yesterday.

https://github.com/danmar/cppcheck/releases/tag/2.14.0

There are 2 new checks:

  • eraseIteratorOutOfBounds: warns when erase() is called on an iterator that is out of bounds
  • returnByReference: warns when a large class member is returned by value from a getter function
@guwirth
Copy link
Collaborator

guwirth commented Apr 23, 2024

@Nekto89, download of installer is not working https://cppcheck.sourceforge.io/#download

@Nekto89
Copy link
Contributor Author

Nekto89 commented Apr 23, 2024

guwirth added a commit to guwirth/sonar-cxx that referenced this issue May 7, 2024
- https://sourceforge.net/p/cppcheck/news/2024/04/cppcheck-2140/
- new rules:
  - eraseIteratorOutOfBounds
  - eraseIteratorOutOfBoundsCond
  - returnByReference
  - uselessOverride
- close SonarOpenCommunity#2668
@guwirth guwirth self-assigned this May 7, 2024
@guwirth
Copy link
Collaborator

guwirth commented May 7, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging a pull request may close this issue.

2 participants