diff options
author | Loek Le Blansch <loek@pipeframe.xyz> | 2024-10-30 19:59:38 +0100 |
---|---|---|
committer | Loek Le Blansch <loek@pipeframe.xyz> | 2024-10-30 19:59:38 +0100 |
commit | 6e1d62955c7a7f39bc9126d709a42a70e02a1d30 (patch) | |
tree | c2505409c68d554b1e776cdb0c8104af54d375bf /backend/check | |
parent | c1d43cddee94dd370078f755d33147c9a8181852 (diff) |
create backend string class
Diffstat (limited to 'backend/check')
-rwxr-xr-x | backend/check | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/backend/check b/backend/check index b283acf..f100e41 100755 --- a/backend/check +++ b/backend/check @@ -3,9 +3,15 @@ for file in *.cpp *.hpp *.h ; do # non C-style headers grep -Hn '#include\s*<[^.]\+>' "$file" | grep -v '<random>' # forbidden STL containers + grep -Hn '\<unique_ptr\>' "$file" grep -Hn '\<make_unique\>' "$file" + grep -Hn '\<shared_ptr\>' "$file" + grep -Hn '\<make_shared\>' "$file" grep -Hn '\<vector\>' "$file" + grep -Hn '\<string\>[^.]' "$file" # [^.] is to ignore C's <string.h> grep -Hn '\<pair\>' "$file" + grep -Hn '\<map\>' "$file" + grep -Hn '\<unordered_map\>' "$file" done exit 0 |