extracttests.py: add a few missing includes

This commit is contained in:
Daniel Marjamäki 2021-05-13 20:50:24 +02:00
parent 6d3d907e10
commit 2925627eb6
1 changed files with 4 additions and 1 deletions

View File

@ -33,6 +33,7 @@ def add_includes(code):
('free','cstdlib'),
('malloc','cstdlib'),
('realloc','cstdlib'),
('memcpy','cstring'),
('stdin','cstdio'),
('strcat','cstring'),
('strchr','cstring'),
@ -41,9 +42,11 @@ def add_includes(code):
('strncat','cstring'),
('strncpy','cstring'),
('std::cout','iostream'),
('std::pair','utility'),
('std::shared_ptr','memory'),
('std::string','string'),
('std::unique_ptr','memory'))
('std::unique_ptr','memory'),
('std::vector','vector'))
for i in includes:
if i[0] in code: