File: run_formatter.sh

package info (click to toggle)
generate-ninja 0.0~git20250917.1a7c151-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 7,640 kB
  • sloc: cpp: 87,856; python: 2,121; sh: 205; objc: 159; lisp: 130; makefile: 23; xml: 7
file content (12 lines) | stat: -rwxr-xr-x 357 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh

cd $(dirname $(dirname $0))

ensure_file=$(mktemp)

# https://chrome-infra-packages.appspot.com/p/fuchsia/third_party/clang
echo 'fuchsia/third_party/clang/${platform} integration' > $ensure_file
cipd ensure -ensure-file $ensure_file -root clang

git ls-files | egrep '\.(h|cc)$' | fgrep -v 'third_party' |\
    xargs ./clang/bin/clang-format -i