From bb5a907b34b8c534ab6c4825efac777ea140e8f4 Mon Sep 17 00:00:00 2001 From: Carmine Scarpitta Date: Thu, 20 Feb 2025 11:20:52 +0100 Subject: [PATCH] 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 --- staticd/static_main.c | 2 ++ 1 file changed, 2 insertions(+) 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 -- 2.39.5