From c9cdfd1aca4fa335e1fb0f7805efd02acb13464c Mon Sep 17 00:00:00 2001 From: Abdoulbari Zaher <32519851+a-zakir@users.noreply.github.com> Date: Thu, 9 Jan 2025 17:43:18 +0100 Subject: [PATCH] Move .clang-format at project root (#2568) This seems to be the usual practice for C/C++ code bases. --- src/.clang-format => .clang-format | 0 src/format-code.sh | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) rename src/.clang-format => .clang-format (100%) diff --git a/src/.clang-format b/.clang-format similarity index 100% rename from src/.clang-format rename to .clang-format diff --git a/src/format-code.sh b/src/format-code.sh index 752080ca58..aaededa940 100755 --- a/src/format-code.sh +++ b/src/format-code.sh @@ -20,5 +20,5 @@ fi if ! [ -x "$(command -v clang-format)" ]; then echo 'Warning: clang-format is not installed. Skipping' >&2 else - echo "$SOURCE_FILES" | xargs clang-format -i --verbose + echo "$SOURCE_FILES" | xargs clang-format -style=file:../.clang-format -i --verbose fi