forked from OSchip/llvm-project
cmake: do not check-format anything in lib/External
There is no need to specifically match for isl, but we can exclude anything in lib/External from formatting as we assume that externally contributed code should always match the upstream code. This simplifies the cmake script and allows additional external projects to be added without the need to explicitly exclude them from formatting. llvm-svn: 274557
This commit is contained in:
parent
e65b39ec09
commit
d1e90f5929
|
@ -169,10 +169,8 @@ configure_file( ${CMAKE_CURRENT_SOURCE_DIR}/include/polly/Config/config.h.cmake
|
|||
# Add target to check formatting of polly files
|
||||
file( GLOB_RECURSE files *.h lib/*.cpp lib/*.c tools/*.cpp tools/*.c tools/*.h)
|
||||
file( GLOB_RECURSE jsonfiles lib/JSON/*.h lib/JSON/*.cpp)
|
||||
file( GLOB_RECURSE islfiles lib/External/isl/*.h lib/External/isl/*.c
|
||||
lib/External/isl/include/isl/*.h lib/External/isl/imath/*.h
|
||||
lib/External/isl/imath/*.c)
|
||||
list( REMOVE_ITEM files ${jsonfiles} ${islfiles})
|
||||
file( GLOB_RECURSE external lib/External/*.h lib/External/*.c)
|
||||
list( REMOVE_ITEM files ${jsonfiles} ${external})
|
||||
|
||||
set(check_format_depends)
|
||||
set(update_format_depends)
|
||||
|
|
Loading…
Reference in New Issue