Lines Matching refs:tc

28 def add_version_header(tc):  argument
29 tc["headers"].append("version")
30 return tc
758 assert feature_test_macros == sorted(feature_test_macros, key=lambda tc: tc["name"])
759 assert all(tc["headers"] == sorted(tc["headers"]) for tc in feature_test_macros)
760 assert all(("libcxx_guard" in tc) == ("test_suite_guard" in tc) for tc in feature_test_macros)
761 …s", "libcxx_guard", "test_suite_guard", "unimplemented"] for key in tc.keys()) for tc in feature_t…
846 for tc in feature_test_macros:
847 if std not in tc["values"]:
850 if 'test_suite_guard' in tc.keys():
851 result += "# if %s\n" % tc["libcxx_guard"]
853 if get_value_before(tc["values"], std) is not None:
854 assert 'test_suite_guard' not in tc.keys()
855 result += "# undef %s\n" % tc["name"]
856 line = "#%sdefine %s" % ((" " * inner_indent), tc["name"])
858 line += " %sL" % tc["values"][std]
859 if 'unimplemented' in tc.keys():
863 if 'test_suite_guard' in tc.keys():
899 for tc in feature_test_macros:
900 prev_defined_std = get_last_std(tc["values"])
901 line = "{name: <{indent}}{value}L ".format(name=tc['name'], indent=indent,
902 value=tc["values"][prev_defined_std])
903 headers = list(tc["headers"])
913 prev_defined_std = get_std_before(tc["values"], prev_defined_std)
916 result += "%s%sL // %s\n" % (indent_to("", indent), tc["values"][prev_defined_std],
1018 for tc in test_list:
1019 val = get_for_std(tc["values"], std)
1023 … result += test_types["undefined"].format(name=tc["name"], std_first=get_first_std(tc["values"]))
1024 elif 'unimplemented' in tc.keys():
1025 result += test_types["unimplemented"].format(name=tc["name"], value=val, std=std)
1026 elif "test_suite_guard" in tc.keys():
1027 …sult += test_types["test_suite_guard"].format(name=tc["name"], value=val, std=std, test_suite_guar…
1029 result += test_types["defined"].format(name=tc["name"], value=val, std=std)
1062 max_name_len = max([len(tc["name"]) for tc in test_list])
1069 for tc in test_list:
1070 prefix = " %s" % tc["name"]
1071 for std in [s for s in get_std_dialects() if s in tc["values"].keys()]:
1072 result += mk_line(prefix, "%sL [%s]" % (tc["values"][std], std.replace("c++", "C++")))
1078 headers = set([h for tc in feature_test_macros for h in tc["headers"]])
1080 test_list = [tc for tc in feature_test_macros if h in tc["headers"]]
1082 for tc in test_list:
1083 assert 'unimplemented' in tc.keys()
1166 for tc in feature_test_macros:
1167 if std not in tc["values"].keys():
1169 value = "``%sL``" % tc["values"][std]
1170 if 'unimplemented' in tc.keys():
1172 table += [["``%s``" % tc["name"], value]]