Skip to content

Commit

Permalink
Format
Browse files Browse the repository at this point in the history
  • Loading branch information
pfultz2 committed Aug 4, 2023
1 parent 916a48a commit f27c6de
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions share/rocm/cmake/ROCMClangTidy.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,9 @@ else()
message(STATUS "Clang tidy found: ${CLANG_TIDY_VERSION}")
endif()

set(CMAKE_EXPORT_COMPILE_COMMANDS ON CACHE INTERNAL "")
set(CMAKE_EXPORT_COMPILE_COMMANDS
ON
CACHE INTERNAL "")

set(CLANG_TIDY_CACHE
"${CMAKE_BINARY_DIR}/tidy-cache"
Expand Down Expand Up @@ -99,8 +101,7 @@ macro(rocm_enable_clang_tidy)
string(REPLACE ";" "," CLANG_TIDY_ERRORS "${PARSE_ERRORS}")

if(PARSE_UNPARSED_ARGUMENTS)
message(
FATAL_ERROR "Unknown keywords given to rocm_enable_clang_tidy(): \"${PARSE_UNPARSED_ARGUMENTS}\"")
message(FATAL_ERROR "Unknown keywords given to rocm_enable_clang_tidy(): \"${PARSE_UNPARSED_ARGUMENTS}\"")
endif()

message(STATUS "Clang tidy checks: ${CLANG_TIDY_CHECKS}")
Expand Down Expand Up @@ -293,7 +294,8 @@ function(rocm_clang_tidy_check TARGET)
")
add_custom_target(
${tidy_target}
COMMAND ${CMAKE_COMMAND} ${CLANG_TIDY_DEV_WARNINGS_AS_ERRORS} -P ${CMAKE_CURRENT_BINARY_DIR}/${tidy_target}.cmake
COMMAND ${CMAKE_COMMAND} ${CLANG_TIDY_DEV_WARNINGS_AS_ERRORS} -P
${CMAKE_CURRENT_BINARY_DIR}/${tidy_target}.cmake
COMMENT "clang-tidy: Running clang-tidy on target ${SOURCE}...")
else()
add_custom_target(
Expand Down

0 comments on commit f27c6de

Please sign in to comment.