Add the following CMake options:
* EVTGEN_RUN_CLANG_TIDY
* EVTGEN_CLANG_TIDY_FIX
* EVTGEN_CLANG_TIDY_CHECKS
to control running of clang-tidy static analysis checks during build.
* The first toggles whether the checks should be run.
* The second toggles whether auto-fix should be enabled.
* The third allows customisation of the exact checks to be run.
The checks currently default to a single check:
* modernize-use-nullptr
just to test that things are working as expected.
Going forward, we can use the large set of possible checks to gradually improve the code.
Eventually we can establish a set of checks to run in the CI to test new/changed code.
See:
https://clang.llvm.org/extra/clang-tidy/index.html
for general info on clang-tidy, and
https://clang.llvm.org/extra/clang-tidy/checks/list.html
for the list of all currently supported checks.