File: git-grep-braces.sh

package info (click to toggle)
colobot 0.2.2-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 415,516 kB
  • sloc: cpp: 129,242; ansic: 8,872; python: 2,158; sh: 672; awk: 91; xml: 35; makefile: 31
file content (4 lines) | stat: -rwxr-xr-x 98 bytes parent folder | download | duplicates (10)
1
2
3
4
#!/bin/bash

# Finds all "hanging" braces
git grep -n -E '^( *[^ ]+)+[^@]\{\s*$' -- '*.cpp' '*.h'