From: Carmine Scarpitta Date: Thu, 20 Feb 2025 10:20:52 +0000 (+0100) Subject: staticd: Correct the incorrect style formatting applied by clang X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=bb5a907b34b8c534ab6c4825efac777ea140e8f4;p=mirror%2Ffrr.git staticd: Correct the incorrect style formatting applied by clang clang-format tends to alter the formatting of the struct frr_yang_module_info, reducing its readability. This commit resolves the issue by disabling clang-format for this specific struct. Signed-off-by: Carmine Scarpitta --- diff --git a/staticd/static_main.c b/staticd/static_main.c index 99f8b676d9..3a976a294c 100644 --- a/staticd/static_main.c +++ b/staticd/static_main.c @@ -111,6 +111,7 @@ struct frr_signal_t static_signals[] = { }, }; +/* clang-format off */ static const struct frr_yang_module_info *const staticd_yang_modules[] = { &frr_backend_info, &frr_interface_info, @@ -118,6 +119,7 @@ static const struct frr_yang_module_info *const staticd_yang_modules[] = { &frr_routing_info, &frr_staticd_info, }; +/* clang-format on */ /* * NOTE: .flags == FRR_NO_SPLIT_CONFIG to avoid reading split config, mgmtd will