Merge pull request #10470 from akallabeth/timzeone_generator_no_format
[winpr,timezone] disable clang-format for WindowsZones
This commit is contained in:
commit
1dd9f32e76
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user