I find the state of the o2codechecker pretty confusing.
First, the output of the o2codechecker results in the PR check is very tedious to browse : would it be possible to highlight the errors in some way ? Or to add some doc somewhere instructing what to look for ?
Then, trying to run it locally (to avoid using the CI as a trial and error tool for checking) is also not completely trivial.
My attempt so far (on a Mojave Mac) :
- aliBuild --defaults o2 build o2codechecker => wait for Clang7 to be compiled and then got lots of errors for all over the place in O2.
- trying to narrow to “my” classes :
run_O2CodeChecker.py -clang-tidy-binary $HOME/alice/sw/osx_x86-64/o2codechecker/latest/bin/O2codecheck “-checks=-,alice” “Detectors/MUON/*”
got a lot of errors regarding standard headers :
Error while processing /Users/laurent/alice/O2/Detectors/MUON/MCH/Mapping/test/src/CathodeSegmentation.cxx.
/usr/local/opt/boost/include/boost/config/detail/select_stdlib_config.hpp:18:12: error: ‘cstddef’ file not found [clang-diagnostic-error]
Any idea what stupid mistake(s) I’m doing here ?