Gitiles
Code Review
Sign In
gerrit.openbmc.org
/
openbmc
/
libmctp
/
8d53b1c368b5d498c4f241b2b492210780010bb9
/
.
/
format-code.sh
blob: d34554d676bf908a81004bdc7c558f3bf9d5ca20 [
file
] [
log
] [
blame
]
#!/bin/bash
:
$
{
CLANG_FORMAT
:=
clang
-
format
}
FILES
=
$
(
comm
-
3
<(
sort
.
clang
-
ignore
)
<(
git ls
-
files
|
grep
'.*\.[ch]$'
|
sort
))
if
[
-
n
"$FILES"
]
then
$CLANG_FORMAT
-
style
=
file
-
i $FILES
fi