Add -sort-includes to our automatic source code formatting

llvm-svn: 250393
This commit is contained in:
Tobias Grosser 2015-10-15 12:18:37 +00:00
parent 0e3a6b13a4
commit 5da48f392c

View File

@ -176,14 +176,14 @@ set(update_format_depends)
set(i 0)
foreach (file IN LISTS files)
add_custom_command(OUTPUT polly-check-format${i}
COMMAND clang-format -style=llvm ${file} | diff -u ${file} -
COMMAND clang-format -sort-includes -style=llvm ${file} | diff -u ${file} -
VERBATIM
COMMENT "Checking format of ${file}..."
)
list(APPEND check_format_depends "polly-check-format${i}")
add_custom_command(OUTPUT polly-update-format${i}
COMMAND clang-format -i -style=llvm ${file}
COMMAND clang-format -sort-includes -i -style=llvm ${file}
VERBATIM
COMMENT "Updating format of ${file}..."
)