Skip to content

Commit 807a5e7

Browse files
committed
[CI] Specify style for clang-format explicitly
When the "-style" option is not specified, clang-format looks for ".clang-format". Since we don't have this file in the project, the tool finds it recursively in parent directories. If occasionally there is a .clang-format of some other project, it will be chosen.
1 parent 4b50224 commit 807a5e7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ci/clang-format.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33
set -e
44

55
echo "Checking clang-format"
6-
find -name *.h -or -name *.cpp | xargs clang-format -i
6+
find -name *.h -or -name *.cpp | xargs clang-format -i -style=llvm
77
git diff --exit-code

0 commit comments

Comments
 (0)