aboutsummaryrefslogtreecommitdiff
path: root/backend/check
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2024-10-12 17:23:56 +0200
committerLoek Le Blansch <loek@pipeframe.xyz>2024-10-12 17:23:56 +0200
commitc101364d4aafe50807cf7c8a831fb66eade3fb7f (patch)
tree9f5fcc994997ae3d5068f6c0f5d9a8cd4c8d749a /backend/check
parent957053e7bf25ae9cfda0243d3cbcad1e9abac60a (diff)
Diffstat (limited to 'backend/check')
-rwxr-xr-xbackend/check11
1 files changed, 11 insertions, 0 deletions
diff --git a/backend/check b/backend/check
new file mode 100755
index 0000000..445dbbe
--- /dev/null
+++ b/backend/check
@@ -0,0 +1,11 @@
+#!/bin/sh
+for file in *.cpp *.hpp *.h ; do
+ # non C-style headers
+ grep -Hn '#include\s*<[^.]\+>' "$file"
+ # forbidden STL containers
+ grep -Hn '\<make_unique\>' "$file"
+ grep -Hn '\<vector\>' "$file"
+ grep -Hn '\<pair\>' "$file"
+done
+exit 0
+