cppcheck
cppcheck copied to clipboard
added `triage.py` for running a code sample against a given amount of Cppcheck binaries
I have been using this for quite a while now and made adjustments so it will also work with commit hashes so I think this is ready for a review now.
There's still some polishing needed and I need to finish the version handling. Also some documentation is needed.
Integrating it better with the bisect script from #4286 also seems to make sense. As well as somehow integrating it with reduce.py or even daca comes to mind.
Also the name is totally wrong since it won't "diff" anything by default (and doesn't even diff anything yet). compare also seems wrong. Any suggestions are welcome.
Maybe binbisect?
Maybe
binbisect?
It does not bisect anything. It just iterated over a list of executables.
That would be a sub-functionality like actual diff. Finding out between which versions it changed and invoking the appropriate bisect - essentially automating what I do manually now.
I decided to name it triage.py which seems to make more sense given the future integration with things like bisect and reduce as well as daca.
I will also look into sharing some of the functionality with the triage GUI tool.
There's also some other tools in the tools (like the times stuff) folder which could probably be merged into this.
I think this is now fine for a first version to commit. So please review now.
I keep this as draft until it is approved since I currently removed all the GitHub actions to avoid unnecessary builds.
@chrchr-github @danmar This appears to be quite stable now (I had not have to make adjustments for a week now) and I would like to get it merged - so an actual review would be appreciated. The documentation could probably be improved but I think it is mainly self-explanatory.
Also as mentioned before I will keep the GitHub Actions removed until the reviews are done to reduce the turnaround times and avoid unnecessary builds.
I decided to name it triage.py which seems to make more sense given the future integration with things like bisect and reduce as well as daca.
It would be nice to rename this to triage_version.py. As it would be nice to have a triage.py script in the future to handle the daca@home debugging as the GUI is not easy to use especially over remote machines. It would be nice to have a script to download the source files, run cppcheck, and open relevant files using $EDITOR.
It would be nice to rename this to
triage_version.py. As it would be nice to have atriage.pyscript in the future to handle the daca@home debugging as the GUI is not easy to use especially over remote machines. It would be nice to have a script to download the source files, run cppcheck, and open relevant files using$EDITOR.
As mentioned in my comments above that's what I am planning to in the future. Integrating all of those parts/functionality together - even the GUI.
It would be nice to rename this to
triage_version.py.
I am gonna rename this so we can get it pushed. After all it's just a name and we can still change it afterwards.