##// END OF EJS Templates
Remove ui files from clang-format
perrinel -
r238:84afba26f11f
parent child
Show More
@@ -63,6 +63,7 FUNCTION(ADD_CLANGFORMAT_TARGETS)
63 63 clangformat_incr(i)
64 64 ENDWHILE()
65 65
66
66 67 # Retrieve source files to format
67 68 IF(recurse)
68 69 FILE(GLOB_RECURSE srcs ${globs})
@@ -81,6 +82,16 FUNCTION(ADD_CLANGFORMAT_TARGETS)
81 82 # Create the directory where the touched files will be saved
82 83 SET(formatDirectory "${CMAKE_CURRENT_BINARY_DIR}/format")
83 84 FILE(MAKE_DIRECTORY ${formatDirectory})
85 # STRING(REPLACE "*.ui" "" srcs ${srcs})
86 FOREACH(item ${globs})
87 STRING(REGEX MATCH ".*\.ui$" item ${item})
88 IF(item)
89 LIST(APPEND UIS ${item})
90 ENDIF(item)
91 ENDFOREACH(item ${globs})
92
93 LIST(REMOVE_ITEM srcs ${UIS})
94 message("format lang: ${srcs}" )
84 95 FOREACH (s ${srcs})
85 96 SET(touchedFile ${formatDirectory}/format_touchedfile_${reportNb})
86 97 IF(addToAll)
General Comments 0
You need to be logged in to leave comments. Login now