Lines Matching defs:tc
43 def add_version_header(tc):
44 tc["headers"].append("version")
45 return tc
1436 assert feature_test_macros == sorted(feature_test_macros, key=lambda tc: tc["name"])
1437 for tc in feature_test_macros:
1438 assert tc["headers"] == sorted(tc["headers"]), tc
1439 assert ("libcxx_guard" in tc) == ("test_suite_guard" in tc), tc
1441 assert all(key in valid_keys for key in tc.keys()), tc
1538 for tc in feature_test_macros:
1539 if std not in tc["values"]:
1542 if "test_suite_guard" in tc.keys():
1543 result += "# if %s\n" % tc["libcxx_guard"]
1545 if get_value_before(tc["values"], std) is not None:
1546 assert "test_suite_guard" not in tc.keys()
1547 result += "# undef %s\n" % tc["name"]
1548 line = "#%sdefine %s" % ((" " * inner_indent), tc["name"])
1550 line += " %sL" % tc["values"][std]
1551 if "unimplemented" in tc.keys():
1555 if "test_suite_guard" in tc.keys():
1597 for tc in feature_test_macros:
1598 prev_defined_std = get_last_std(tc["values"])
1600 name=tc["name"], indent=indent, value=tc["values"][prev_defined_std]
1602 headers = list(tc["headers"])
1612 prev_defined_std = get_std_before(tc["values"], prev_defined_std)
1617 tc["values"][prev_defined_std],
1723 for tc in test_list:
1724 val = get_for_std(tc["values"], std)
1729 name=tc["name"], std_first=get_first_std(tc["values"])
1731 elif "unimplemented" in tc.keys():
1733 name=tc["name"], value=val, std=std
1735 elif "test_suite_guard" in tc.keys():
1737 name=tc["name"],
1740 test_suite_guard=tc["test_suite_guard"],
1743 result += test_types["defined"].format(name=tc["name"], value=val, std=std)
1779 max_name_len = max([len(tc["name"]) for tc in test_list])
1789 for tc in test_list:
1790 prefix = " %s" % tc["name"]
1791 for std in [s for s in get_std_dialects() if s in tc["values"].keys()]:
1793 prefix, "%sL [%s]" % (tc["values"][std], std.replace("c++", "C++"))
1801 headers = set([h for tc in feature_test_macros for h in tc["headers"]])
1803 test_list = [tc for tc in feature_test_macros if h in tc["headers"]]
1805 for tc in test_list:
1806 assert "unimplemented" in tc.keys()
1902 for tc in feature_test_macros:
1903 if std not in tc["values"].keys():
1905 value = "``%sL``" % tc["values"][std]
1906 if "unimplemented" in tc.keys():
1908 table += [["``%s``" % tc["name"], value]]