Skip to content

Support clang-tidy (all current warnings disabled)

Wuttke, Joachim requested to merge tidy into develop

Add file .clang-tidy and CMake option NSX_TIDY to support clang-tidy checks.

Use: cmake .. -DNSX_TIDY=ON -DNSX_PYTHON=OFF -DNSX_TESTDATA_DIR=<path> && make -j4

A lot of checks are disabled. On my system (with clang11), no single warning is generated. The intended use is to remove disabling entries from the bottom of .clang-tidy, run cmake and make, get warnings, and fix them in the sources.

Merge request reports