File: format.sh

package info (click to toggle)
corectrl 1.5.1%2Bds-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,644 kB
  • sloc: cpp: 42,650; ansic: 174; javascript: 158; makefile: 18; sh: 3
file content (7 lines) | stat: -rwxr-xr-x 206 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
#!/bin/bash

echo "Formatting code..."

find . -type d -name 3rdparty -prune -o -type f \( -name "*\.h" -o -name "*\.cpp" \) -print0 | xargs -0 -I '{}' sh -c "clang-format -i {}; echo -n '.'"

echo "Done."