Skip to content

Commit

Permalink
disable clang-tidy for imported code
Browse files Browse the repository at this point in the history
  • Loading branch information
akuzm committed Jan 10, 2025
1 parent ef106b7 commit 89fd4ad
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tsl/src/import/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,9 @@ if(USE_UMASH)
list(APPEND SOURCES ${CMAKE_CURRENT_SOURCE_DIR}/umash.c)
endif()

target_sources(${TSL_LIBRARY_NAME} PRIVATE ${SOURCES})
# Disable clang-tidy for imported code
add_library(target_no_static_code_analysis OBJECT ${SOURCES})
set_target_properties(target_no_static_code_analysis PROPERTIES C_CLANG_TIDY "")

target_link_libraries(${TSL_LIBRARY_NAME}
$<TARGET_OBJECTS:target_no_static_code_analysis>)

0 comments on commit 89fd4ad

Please sign in to comment.