summaryrefslogtreecommitdiffstats
path: root/tools/git-grep-braces.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tools/git-grep-braces.sh')
-rwxr-xr-xtools/git-grep-braces.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/git-grep-braces.sh b/tools/git-grep-braces.sh
new file mode 100755
index 0000000..85823ab
--- /dev/null
+++ b/tools/git-grep-braces.sh
@@ -0,0 +1,4 @@
+#!/bin/bash
+
+# Finds all "hanging" braces
+git grep -n -E '^( *[^ ]+)+[^@]\{\s*$' -- '*.cpp' '*.h'