Open ClausKlein opened 3 years ago
the sandbox source tree was checked with this clang-tidy config file:
https://github.com/ClausKlein/cereal/blob/develop/.clang-tidy
Claus-iMac:cereal clausklein$ make -n run-clang-tidy
mkdir -p ../.build-cereal-Debug
cd ../.build-cereal-Debug && cmake -G Ninja -Wdeprecated -Wdev \
-DUSE_LCOV=OFF -DCMAKE_BUILD_TYPE=Debug \
-DCMAKE_FIND_ROOT_PATH_MODE_PACKAGE=BOTH \
-DCMAKE_PREFIX_PATH="/usr/local;/usr/local;/usr/local/opt/boost;/opt/local;/usr" \
-DCMAKE_STAGING_PREFIX=/usr/local \
-DCMAKE_PROJECT_INCLUDE_BEFORE=/Users/clausklein/Workspace/cmake/before_project_setup.cmake \
-DCMAKE_PROJECT_INCLUDE=/Users/clausklein/Workspace/cmake/build_options.cmake \
-DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DCMAKE_C_COMPILER=cc -DCMAKE_CXX_COMPILER=c++ /Users/clausklein/Workspace/cpp/cereal
ln -sf ../.build-cereal-Debug/compile_commands.json .
run-clang-tidy -header-filter='/Users/clausklein/Workspace/cpp/cereal/.*' -checks='-*non-private-member-*' sandbox 2>&1 | tee .run-clang-tidy.log
egrep '\b(warning|error):' .run-clang-tidy.log | perl -pe 's/(^.*) (warning|error):/\2/' | sort -u
builddriver cat .run-clang-tidy.log 2>&1 > builddriver.log
Claus-iMac:cereal clausklein$