Skip to content

Commit

Permalink
Don't analyze generated code in clang-tidy builds
Browse files Browse the repository at this point in the history
  • Loading branch information
alexreinking committed Dec 16, 2024
1 parent 969f150 commit 984b324
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cmake/HalideGeneratorHelpers.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -288,9 +288,9 @@ function(_Halide_library_from_generator TARGET)
add_library("${TARGET}" STATIC ${local_out_${ARG_TYPE}})
set_property(TARGET "${TARGET}" PROPERTY POSITION_INDEPENDENT_CODE ON)
set_property(TARGET "${TARGET}" PROPERTY LINKER_LANGUAGE CXX)
set_source_files_properties(
"${local_out_${ARG_TYPE}}" PROPERTIES SKIP_LINTING ON
)
if (ARG_TYPE STREQUAL "c_source")
set_source_files_properties("${local_out_${ARG_TYPE}}" PROPERTIES SKIP_LINTING ON)
endif ()

if (NOT Halide_NO_DEFAULT_FLAGS)
# Silence many useless warnings in generated C++ code compilation
Expand Down

0 comments on commit 984b324

Please sign in to comment.