mirror of
https://github.com/uxlfoundation/oneDNN.git
synced 2025-10-20 18:43:49 +08:00
build: enabled header diagnostics in clang-tidy
This commit is contained in:
committed by
Vadim Pirogov
parent
23321c91c9
commit
e3f136f8ec
@ -1,3 +1,7 @@
|
||||
HeaderFilterRegex: '/(examples|include|src|tests)/.*\.hpp'
|
||||
|
||||
FormatStyle: file
|
||||
|
||||
Checks: >
|
||||
-*,
|
||||
readability-identifier-naming,
|
||||
|
@ -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()
|
||||
|
3
src/gpu/intel/jit/gemm/.clang-tidy
Normal file
3
src/gpu/intel/jit/gemm/.clang-tidy
Normal file
@ -0,0 +1,3 @@
|
||||
Checks: '-*,misc-definitions-in-headers'
|
||||
CheckOptions:
|
||||
- { key: HeaderFileExtensions, value: "x" }
|
3
src/gpu/intel/microkernels/.clang-tidy
Normal file
3
src/gpu/intel/microkernels/.clang-tidy
Normal file
@ -0,0 +1,3 @@
|
||||
Checks: '-*,misc-definitions-in-headers'
|
||||
CheckOptions:
|
||||
- { key: HeaderFileExtensions, value: "x" }
|
Reference in New Issue
Block a user