[polly] r250393 - Add -sort-includes to our automatic source code formatting
Tobias Grosser via llvm-commits
llvm-commits at lists.llvm.org
Thu Oct 15 05:18:37 PDT 2015
Author: grosser
Date: Thu Oct 15 07:18:37 2015
New Revision: 250393
URL: http://llvm.org/viewvc/llvm-project?rev=250393&view=rev
Log:
Add -sort-includes to our automatic source code formatting
Modified:
polly/trunk/CMakeLists.txt
Modified: polly/trunk/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/CMakeLists.txt?rev=250393&r1=250392&r2=250393&view=diff
==============================================================================
--- polly/trunk/CMakeLists.txt (original)
+++ polly/trunk/CMakeLists.txt Thu Oct 15 07:18:37 2015
@@ -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}..."
)
More information about the llvm-commits
mailing list