File tree Expand file tree Collapse file tree 4 files changed +19
-16
lines changed
Expand file tree Collapse file tree 4 files changed +19
-16
lines changed Original file line number Diff line number Diff line change 1+ repos :
2+ - repo : https://github.com/pre-commit/mirrors-clang-format
3+ rev : " v21.1.5"
4+ hooks :
5+ - id : clang-format
6+
7+
8+ - repo : https://github.com/pre-commit/pre-commit-hooks
9+ rev : v6.0.0
10+ hooks :
11+ - id : check-case-conflict
12+ - id : check-merge-conflict
13+ - id : trailing-whitespace
14+ - id : mixed-line-ending
Original file line number Diff line number Diff line change 1+ DisableFormat : true
2+ SortIncludes : Never
Original file line number Diff line number Diff line change 1+ DisableFormat : true
2+ SortIncludes : Never
Original file line number Diff line number Diff line change @@ -4,19 +4,4 @@ which -a clang-format-20 > /dev/null \
44 || (echo -e " 20.0.0\n$( clang-format${1+-$1 } --version | grep -Eo ' ([0-9]+\.[0-9]+\.[0-9]+)' ) " | sort -CV ) \
55 || { echo " use '${0} <clang-format-version-not-less-than-20>' to call exact proper version" ; exit 1 ; }
66
7- IGNORED_DIRS=(
8- " ./generated_cpp_515"
9- " ./examples"
10- " ./generator/simplecpp"
11- " ./build"
12- )
13-
14- IGNORE_CMD=" "
15-
16- for DIR in " ${IGNORED_DIRS[@]} " ; do
17- IGNORE_CMD+=" -path $DIR -o"
18- done
19-
20- IGNORE_CMD=${IGNORE_CMD% -o}
21-
22- find . \( $IGNORE_CMD \) -prune -o -name ' *.cpp' -print0 -o -name ' *.h' -print0 | xargs -0 clang-format-20 --style=file -i
7+ find . -prune -o -name ' *.cpp' -print0 -o -name ' *.h' -print0 | xargs -0 clang-format-20 --style=file -i
You can’t perform that action at this time.
0 commit comments