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 910e561 commit 969f150
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmake/HalideGeneratorHelpers.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +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 (NOT Halide_NO_DEFAULT_FLAGS)
# Silence many useless warnings in generated C++ code compilation
Expand Down

0 comments on commit 969f150

Please sign in to comment.