From: Jason Ish Date: Fri, 8 Jan 2021 15:05:32 +0000 (-0600) Subject: suricata.c: disable clang-format on long_opts init X-Git-Tag: suricata-7.0.0-beta1~1897 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7bb917b835287bbcabe069267d9743993a55ff2a;p=thirdparty%2Fsuricata.git suricata.c: disable clang-format on long_opts init 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. --- diff --git a/src/suricata.c b/src/suricata.c index 3d6faf15c8..e2f9fa4eaa 100644 --- a/src/suricata.c +++ b/src/suricata.c @@ -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;