Skip to content

Commit 145818a

Browse files
Format C sources according to .clang-format upon commit
1 parent 8625be2 commit 145818a

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

on-build/Sources/on-build/Steps/Formatting.swift

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -72,12 +72,8 @@ struct Formatting: Step {
7272
# \
7373
===------------------------------------------------------------------------===
7474
75-
find . -path "*/.build" -prune \
76-
-o -path "external" -prune -o \
77-
-name '*.[c|cpp|cxx|hpp]' \
78-
-print -type \
79-
f -exec clang-format \
80-
--style=Chromium -i {} +;
75+
find . -path "*/.build" -prune -o -path "external" -prune -o -name \
76+
'*.[c|cpp|cxx|hpp]' -print -type f -exec clang-format -i {} +;
8177
swift-format -p -r -i \(projectURL.path())
8278
swift-format lint -p -r -s \(projectURL.path())
8379
git add .

0 commit comments

Comments
 (0)