Skip to content

Commit

Permalink
Do not format CMakeCCompilerId.c generated by CMake. (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
tfpf authored Apr 25, 2024
1 parent 514d3c6 commit 473a027
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions clang-format.bash
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
#! /usr/bin/env bash

shopt -s globstar
shopt -s extglob globstar

# Switch to the directory containing the script so that relative paths may be
# used.
cd "${0%/*}"
files=(**/*.c **/*.cc **/*.h)
files=(!(build)/**/*.c **/*.cc **/*.h)
if [ "$1" = check ]
then
clang-format --verbose --dry-run -Werror ${files[@]}
Expand Down

0 comments on commit 473a027

Please sign in to comment.