Merge pull request #10470 from akallabeth/timzeone_generator_no_format

[winpr,timezone] disable clang-format for WindowsZones
This commit is contained in:
akallabeth 2024-08-12 15:55:44 +02:00 committed by GitHub
commit 1dd9f32e76
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -158,11 +158,6 @@ internal class Program
fs.WriteLine(" * version: " + nr.InnerText);
}
fs.WriteLine("");
fs.WriteLine("#include \"" + fname + ".h\"");
fs.WriteLine("");
fs.WriteLine("const \" + fname + \"Entry \" + fname + \"[] ={");
foreach (XmlNode node in zones)
{
XmlNode over = node.Attributes.GetNamedItem("otherVersion");
@ -175,6 +170,7 @@ internal class Program
fs.WriteLine("");
fs.WriteLine("#include \"" + fname + ".h\"");
fs.WriteLine("");
fs.WriteLine("// clang-format off");
fs.WriteLine("const WINDOWS_TZID_ENTRY " + fname + "[] = {");
foreach (XmlNode mzone in mzones)
@ -190,6 +186,7 @@ internal class Program
fs.WriteLine("};");
fs.WriteLine("");
fs.WriteLine("const size_t " + fname + "NrElements = ARRAYSIZE(" + fname + ");");
fs.WriteLine("// clang-format on");
}
stdout.WriteLine("Finished update");
return true;