File: run_clang_format.sh

package info (click to toggle)
gobject-introspection 1.86.0-6
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 72,464 kB
  • sloc: ansic: 562,805; python: 23,750; xml: 16,240; perl: 1,878; yacc: 1,720; sh: 1,139; lex: 513; cpp: 487; makefile: 197; javascript: 15; lisp: 1
file content (9 lines) | stat: -rwxr-xr-x 217 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
#!/bin/bash

# SPDX-License-Identifier: MIT
# SPDX-FileCopyrightText: 2024 Philip Chimento <philip.chimento@gmail.com>

CLANG_FORMAT=${CLANG_FORMAT:-clang-format}
for file in *.c *.h; do
  $CLANG_FORMAT -i $file
done