mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-01-30 05:36:44 +00:00
Add -sort-includes to our automatic source code formatting
llvm-svn: 250393
This commit is contained in:
parent
0e3a6b13a4
commit
5da48f392c
@ -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}..."
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user