]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Disable clang-format for Local IPv6 Unicast Addresses strings
authorOndřej Surý <ondrej@isc.org>
Wed, 23 Jul 2025 05:40:41 +0000 (07:40 +0200)
committerOndřej Surý <ondrej@isc.org>
Wed, 23 Jul 2025 05:48:08 +0000 (05:48 +0000)
The LSP server (using clangd) was always complaining about:

    Suspicious string literal, probably missing a comma

for the two Local IPv6 Unicast Addresses strings that spanned
across multiple lines.  Disable clang-format for these two lines.

(cherry picked from commit 6b7c99027d0253ac7e4b7ec83aa96dbcc70fb3ba)

bin/named/server.c

index 5d7afca40378b605f240307cd11c07c1fb38d391..66eb8be466e2107e857c39ad10ad96d2d783b13d 100644 (file)
@@ -377,10 +377,11 @@ const char *empty_zones[] = {
        "255.255.255.255.IN-ADDR.ARPA", /* BROADCAST */
 
        /* Local IPv6 Unicast Addresses */
-       "0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.IP6."
-       "ARPA",
-       "1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.IP6."
-       "ARPA",
+       /* clang-format off */
+       "0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.IP6.ARPA",
+       "1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.IP6.ARPA",
+       /* clang-format on */
+
        /* LOCALLY ASSIGNED LOCAL ADDRESS SCOPE */
        "D.F.IP6.ARPA", "8.E.F.IP6.ARPA", /* LINK LOCAL */
        "9.E.F.IP6.ARPA",                 /* LINK LOCAL */