clang: Make changes in 7c8bb409f3 py2.7-compatible

This commit is contained in:
Nico Weber 2020-09-18 16:15:24 -04:00
parent d3b0644e22
commit 7502040ed2

View File

@ -642,7 +642,9 @@ def dump_input_lines(output_lines, test_info, prefix_set, comment_string):
def add_checks_at_end(output_lines, prefix_list, func_order,
comment_string, check_generator):
added = set()
for prefixes, tool_args, *rest in prefix_list:
for prefix in prefix_list:
prefixes = prefix[0]
tool_args = prefix[1]
for prefix in prefixes:
for func in func_order[prefix]:
if added: