Skip to content

Commit

Permalink
Check the clang-format version
Browse files Browse the repository at this point in the history
  • Loading branch information
pcolby committed Jan 4, 2025
1 parent b81b4d7 commit 9e48840
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .clang-format.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
set -o errexit -o noclobber -o nounset -o pipefail
shopt -s extglob globstar inherit_errexit

clang-format --version

for style in LLVM GNU Google Chromium Microsoft Mozilla WebKit; do
#git checkout include src >& /dev/null
sed -i -Ee "s|^(BasedOnStyle:).*|\1 ${style}|" .clang-format
Expand Down

0 comments on commit 9e48840

Please sign in to comment.