From 1aee1ae5326cf1f6d03b4b7adbdcc2b499f044fc Mon Sep 17 00:00:00 2001 From: Vitaly Buka Date: Fri, 3 Apr 2020 01:26:51 -0700 Subject: [PATCH] Use --style file instead of --style LLVM LLVM includes .clang-format files which must be respected. --- utils/arcanist/clang-format.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/arcanist/clang-format.sh b/utils/arcanist/clang-format.sh index 4fa2dd9..fba3e2a 100755 --- a/utils/arcanist/clang-format.sh +++ b/utils/arcanist/clang-format.sh @@ -41,7 +41,7 @@ trap 'cleanup' INT HUP QUIT TERM EXIT if git rev-parse --git-dir >/dev/null; then arc_base_commit=$(arc which --show-base) # An alternative is to use git-clang-format. - >&2 git-clang-format --quiet --force --style LLVM "${arc_base_commit}" + >&2 git-clang-format --quiet --force --style file "${arc_base_commit}" else >&2 echo "repo is expected to be a git directory" fi -- 1.8.3.1