Skip to content

Commit

Permalink
add -sort-includes=false to clang-format
Browse files Browse the repository at this point in the history
  • Loading branch information
Norihiro Watanabe committed Apr 4, 2016
1 parent 97e3a31 commit a5a4677
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion scripts/clang-format/run-clang-format.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
#!/bin/bash

# run this script at the source root directory
find . \( -name "*.h" -or -name "*.cpp" \) -print0 | xargs -0 clang-format -i -style=file

# for CLANG <= 3.7
#find . \( -name "*.h" -or -name "*.cpp" \) -print0 | xargs -0 clang-format -i -style=file

# for CLANG > 3.7
find . \( -name "*.h" -or -name "*.cpp" \) -print0 | xargs -0 clang-format -i -sort-includes=false -style=file

0 comments on commit a5a4677

Please sign in to comment.