aboutsummaryrefslogtreecommitdiff
path: root/backend/check
blob: 445dbbe69133610f8554ee65a32ae245b30aec0c (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"
	# forbidden STL containers
	grep -Hn '\<make_unique\>' "$file"
	grep -Hn '\<vector\>' "$file"
	grep -Hn '\<pair\>' "$file"
done
exit 0