chore(3p/nix): disable clang-tidy in cmake

Change-Id: I9ff1ae10afe5af066aaff377424522a19977dc3d
Reviewed-on: https://cl.tvl.fyi/c/depot/+/1428
Tested-by: BuildkiteCI
Reviewed-by: glittershark <grfn@gws.fyi>
This commit is contained in:
Kane York 2020-07-24 19:35:12 -07:00 committed by kanepyork
parent 0b74688e9c
commit bbbb97e142

View file

@ -30,8 +30,9 @@ find_package(glog REQUIRED)
find_program(CLANG_TIDY_PATH clang-tidy)
if (CLANG_TIDY_PATH)
message("Found clang-tidy: ${CLANG_TIDY_PATH}")
set(CMAKE_CXX_CLANG_TIDY "${CLANG_TIDY_PATH}")
# TODO(kanepyork): figure out how to reenable
#message("Found clang-tidy: ${CLANG_TIDY_PATH}")
#set(CMAKE_CXX_CLANG_TIDY "${CLANG_TIDY_PATH};--line-filter=[{\"name\":\"src/cpptoml/cpptoml.h\"},{\"name\":\"google/protobuf/metadata_lite.h\"}]")
# nix's toolchain has a problem with system header includes, so clang-tidy requires a manual -isystem
if (DEFINED ENV{LIBCXX_INCLUDE})