Lines Matching +full:clang +full:- +full:format
10 os.path.join(SCRIPT_DIR, "..", "redfish-core", "schema")
15 SCRIPT_DIR, "..", "redfish-core", "include", "generated", "enums"
20 EDMX = "{http://docs.oasis-open.org/odata/ns/edmx}"
21 EDM = "{http://docs.oasis-open.org/odata/ns/edm}"
75 name = re.sub("(.)([A-Z][a-z]+)", r"\1_\2", name)
76 return re.sub("([a-z0-9])([A-Z])", r"\1_\2", name).lower()
81 "// SPDX-License-Identifier: Apache-2.0\n"
82 "// SPDX-FileCopyrightText: Copyright OpenBMC Authors\n"
87 "// clang-format off\n\n".format(snake_case_namespace)
91 redfish_defs_file.write("enum class {}{{\n".format(element.name))
101 enum_value = re.sub(r"[^0-9_a-zA-Z]", "", value)
103 redfish_defs_file.write(" {},\n".format(enum_value))
111 # implementation, and clang-tidy isn't smart enough to figure out that
115 "NLOHMANN_JSON_SERIALIZE_ENUM({}, {{\n".format(element.name)
122 enum_value = re.sub(r"[^0-9_a-zA-Z]", "", value)
124 ' {{{}::{}, "{}"}},\n'.format(
133 redfish_defs_file.write("}\n// clang-format on\n")
152 OUTFOLDER, "{}.hpp".format(snake_case_namespace)
160 print("Reading from {}".format(REDFISH_SCHEMA_DIR))