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