]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
suricata.c: disable clang-format on long_opts init
authorJason Ish <jason.ish@oisf.net>
Fri, 8 Jan 2021 15:05:32 +0000 (09:05 -0600)
committerVictor Julien <victor@inliniac.net>
Wed, 13 Jan 2021 07:55:46 +0000 (08:55 +0100)
clang-format will reformat this to have multiple options on a
single line which is hard to read and I don't see a specific
clang-format option to format this better. So for now,
disable clang-format on this section of code.

src/suricata.c

index 3d6faf15c8b660c9c6d3dfbf9736b65d6e8aa901..e2f9fa4eaa902daec6d66380819dd86c2c18b886 100644 (file)
@@ -1185,6 +1185,7 @@ static TmEcode ParseCommandLine(int argc, char** argv, SCInstance *suri)
     g_ut_covered = 0;
 #endif
 
+    // clang-format off
     struct option long_opts[] = {
         {"dump-config", 0, &dump_config, 1},
         {"dump-features", 0, &dump_features, 1},
@@ -1246,6 +1247,7 @@ static TmEcode ParseCommandLine(int argc, char** argv, SCInstance *suri)
 #endif
         {NULL, 0, NULL, 0}
     };
+    // clang-format on
 
     /* getopt_long stores the option index here. */
     int option_index = 0;