Skip to content

Commit

Permalink
[cmake] Exclude files from clang-format targets
Browse files Browse the repository at this point in the history
  • Loading branch information
Vikort committed Apr 1, 2022
1 parent 0ce41c7 commit f66563e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cmake/ClangFormat.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -65,5 +65,6 @@ endfunction()

function(target_clangformat_setup target)
get_target_property(target_sources ${target} SOURCES)
list(FILTER target_sources EXCLUDE REGEX \(.*/generated/.*|.*/scs/*.\))
prefix_clangformat_setup(${target} ${target_sources})
endfunction()

0 comments on commit f66563e

Please sign in to comment.