Skip to content

Commit e3f136f

Browse files
committed
build: enabled header diagnostics in clang-tidy
1 parent 23321c9 commit e3f136f

File tree

4 files changed

+12
-1
lines changed

4 files changed

+12
-1
lines changed

.clang-tidy

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
HeaderFilterRegex: '/(examples|include|src|tests)/.*\.hpp'
2+
3+
FormatStyle: file
4+
15
Checks: >
26
-*,
37
readability-identifier-naming,

cmake/platform.cmake

+2-1
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,8 @@ elseif(UNIX OR MINGW)
349349
set(CMAKE_CXX_CLANG_TIDY ${CLANG_TIDY})
350350
message(STATUS "Using clang-tidy to run checks")
351351
elseif(DNNL_USE_CLANG_TIDY STREQUAL "FIX")
352-
set(CMAKE_CXX_CLANG_TIDY ${CLANG_TIDY} -fix)
352+
set(CMAKE_CXX_CLANG_TIDY ${CLANG_TIDY}
353+
-fix)
353354
message(STATUS "Using clang-tidy to run checks and fix found issues")
354355
endif()
355356
endif()

src/gpu/intel/jit/gemm/.clang-tidy

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Checks: '-*,misc-definitions-in-headers'
2+
CheckOptions:
3+
- { key: HeaderFileExtensions, value: "x" }
+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Checks: '-*,misc-definitions-in-headers'
2+
CheckOptions:
3+
- { key: HeaderFileExtensions, value: "x" }

0 commit comments

Comments
 (0)