From 89fd4ade4e67800641c216d6d4ebbc20b6515eeb Mon Sep 17 00:00:00 2001 From: Alexander Kuzmenkov <36882414+akuzm@users.noreply.github.com> Date: Fri, 10 Jan 2025 17:50:56 +0100 Subject: [PATCH] disable clang-tidy for imported code --- tsl/src/import/CMakeLists.txt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tsl/src/import/CMakeLists.txt b/tsl/src/import/CMakeLists.txt index f0bf598d393..d61b88e2506 100644 --- a/tsl/src/import/CMakeLists.txt +++ b/tsl/src/import/CMakeLists.txt @@ -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} + $)