From 601e0ed87bd97a54f5243fffa7ccd60e31e42425 Mon Sep 17 00:00:00 2001 From: Brent Stapleton Date: Thu, 10 Jan 2019 15:19:48 -0800 Subject: examples: utils: skip formatting program options Turning off clang formatting around the program option declarations. clang-format makes them looks bad an unreadable because it thinks the options are function calls or something. --- host/utils/latency/responder.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'host/utils/latency/responder.cpp') diff --git a/host/utils/latency/responder.cpp b/host/utils/latency/responder.cpp index ebe67f732..6216f15e6 100644 --- a/host/utils/latency/responder.cpp +++ b/host/utils/latency/responder.cpp @@ -17,6 +17,7 @@ po::options_description get_program_options_description() { po::options_description desc("Allowed options"); + // clang-format off desc.add_options() ("help", "help message") ("title", po::value(&prog.test_title)->default_value(""), "title to show during test") @@ -66,6 +67,7 @@ get_program_options_description() ("priority", po::value(&prog.rt_priority)->default_value(1.0), "scheduler priority") ("no-realtime", "don't enable real-time") ; + // clang-format on return desc; } -- cgit v1.2.3