Skip to content

Commit 3e58371

Browse files
committed
feat(silo): fix clang-tidy configs (no comment allowed in checks), error on warnings in CMake clang-tidy option
1 parent e187029 commit 3e58371

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

.clang-tidy

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
WarningsAsErrors: "*"
3-
Checks: >
3+
Checks: >-
44
-*,
55
abseil-*,
66
bugprone-*,
@@ -12,7 +12,6 @@ Checks: >
1212
readability-*,
1313
performance-*,
1414
readability-magic-numbers,
15-
# clang-analyzer-cplusplus.NewDeleteLeaks TODO(#632) readd
1615
-misc-non-private-member-variables-in-classes,
1716
-misc-include-cleaner,
1817
-google-readability-avoid-underscore-in-googletest-name,

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ if (NOT CMAKE_BUILD_TYPE STREQUAL Release AND BUILD_WITH_CLANG_TIDY)
101101
else ()
102102
message(STATUS "clang-tidy found: ${CLANG_TIDY_EXE}")
103103
message(STATUS "run clang tidy with: ${CLANG_TIDY_EXE}")
104-
set(CMAKE_CXX_CLANG_TIDY "${CLANG_TIDY_EXE}")
104+
set(CMAKE_CXX_CLANG_TIDY "${CLANG_TIDY_EXE};--warnings-as-errors=*")
105105
endif ()
106106
endif ()
107107

0 commit comments

Comments
 (0)