Skip to content

Commit

Permalink
build: enabled header diagnostics in clang-tidy
Browse files Browse the repository at this point in the history
  • Loading branch information
vpirogov committed Jan 15, 2025
1 parent 23321c9 commit e3f136f
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .clang-tidy
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
HeaderFilterRegex: '/(examples|include|src|tests)/.*\.hpp'

FormatStyle: file

Checks: >
-*,
readability-identifier-naming,
Expand Down
3 changes: 2 additions & 1 deletion cmake/platform.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,8 @@ elseif(UNIX OR MINGW)
set(CMAKE_CXX_CLANG_TIDY ${CLANG_TIDY})
message(STATUS "Using clang-tidy to run checks")
elseif(DNNL_USE_CLANG_TIDY STREQUAL "FIX")
set(CMAKE_CXX_CLANG_TIDY ${CLANG_TIDY} -fix)
set(CMAKE_CXX_CLANG_TIDY ${CLANG_TIDY}
-fix)
message(STATUS "Using clang-tidy to run checks and fix found issues")
endif()
endif()
Expand Down
3 changes: 3 additions & 0 deletions src/gpu/intel/jit/gemm/.clang-tidy
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Checks: '-*,misc-definitions-in-headers'
CheckOptions:
- { key: HeaderFileExtensions, value: "x" }
3 changes: 3 additions & 0 deletions src/gpu/intel/microkernels/.clang-tidy
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Checks: '-*,misc-definitions-in-headers'
CheckOptions:
- { key: HeaderFileExtensions, value: "x" }

0 comments on commit e3f136f

Please sign in to comment.