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 8, 2025
1 parent 78c8961 commit c12dde1
Show file tree
Hide file tree
Showing 2 changed files with 6 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,5 @@
HeaderFilterRegex: '/(examples|include|src|tests)/.*'

Checks: >
-*,
readability-identifier-naming,
Expand Down Expand Up @@ -63,3 +65,5 @@ CheckOptions:
value: _t
- key: readability-identifier-naming.StructSuffix
value: _t

FormatStyle: file
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

0 comments on commit c12dde1

Please sign in to comment.