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
Add tools/cppcheck.sh and make it a AZP job #328
Conversation
Any interest from the core team for that contribution, before I rebase it to latest master ? |
Seems OK to me? Wonder if we can thin out the AZP matrix so it runs in less that fifty billion hours...? |
a bit of a different topic, but for the Linux builds, you could potentially just test the lower and higher gcc & clang versions, and hope that in-between ones are OK... |
…o avoid cppcheck confusing the class' remove method with std::remove
Rebased on top of latest master |
Note: the CI failures are unrelated to my changes. The same ones occur with master |
Not a core contributor, but I think having this kind of tooling integrated in the CI it's great, in many situations it forces the code to be simpler (and more modern / C++11-esque) and can detect bugs that otherwise are hard to see. The one thing I'm not convinced about, but it's totally personal preference, is the |
the rationale given for this one is that the post-fix operator involves more work in its implementation than the pre-fix one. For the post-fix one, you need to create a copy of an object (for incrementation not on base types). So there's a tiny performance gain in using the pre-fix one. |
I'm going to take it in, let the CI zoo continue to grow :) |
@pramsey I'm confused: this pull request is supposed to have been merged, but I can't see any trace of it in master (here on github I mean). Can't find cppcheck.sh in https://github.com/libgeos/geos/tree/master/tools ... |
I think I mashed a merge button maybe, instead of doing the manual two-step to push to the osgeo repo. Sorry about that, it's done now. |
thanks! (To be clear my rant wasn't about an occasional mess up, but against the process that makes it possible) |
And fixes related warnings
Adapted from script used by GDAL, PROJ, QGIS