File: coding-styles.sh

package info (click to toggle)
nitrokey-app 1.4.2-1.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 4,400 kB
  • sloc: cpp: 13,948; python: 1,649; ansic: 229; xml: 93; sh: 13; makefile: 10
file content (10 lines) | stat: -rwxr-xr-x 280 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
#!/bin/bash

#style is defined in .clang-format

# run for all files
#cat <(find . -name '*.cpp') <(find . -name '*.h') | xargs -n1 clang-format-3.8 -i

#run only on changed files vs master
git diff master --name-only | grep -e '\.cpp$' -e '\.h$' | xargs -n1 clang-format-3.8 -i