aboutsummaryrefslogtreecommitdiff
path: root/backend/check
blob: b283acf056dd9ff8654f78b3a47985fa8790434a (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh
for file in *.cpp *.hpp *.h ; do
	# non C-style headers
	grep -Hn '#include\s*<[^.]\+>' "$file" | grep -v '<random>'
	# forbidden STL containers
	grep -Hn '\<make_unique\>' "$file"
	grep -Hn '\<vector\>' "$file"
	grep -Hn '\<pair\>' "$file"
done
exit 0