[polly] r274557 - cmake: do not check-format anything in lib/External

Tobias Grosser via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 5 08:26:33 PDT 2016


Author: grosser
Date: Tue Jul  5 10:26:33 2016
New Revision: 274557

URL: http://llvm.org/viewvc/llvm-project?rev=274557&view=rev
Log:
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.

Modified:
    polly/trunk/CMakeLists.txt

Modified: polly/trunk/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/CMakeLists.txt?rev=274557&r1=274556&r2=274557&view=diff
==============================================================================
--- polly/trunk/CMakeLists.txt (original)
+++ polly/trunk/CMakeLists.txt Tue Jul  5 10:26:33 2016
@@ -169,10 +169,8 @@ configure_file( ${CMAKE_CURRENT_SOURCE_D
 # 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)




More information about the llvm-commits mailing list