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/examples/rfnoc_nullsource_ce_rx.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'host/examples/rfnoc_nullsource_ce_rx.cpp') diff --git a/host/examples/rfnoc_nullsource_ce_rx.cpp b/host/examples/rfnoc_nullsource_ce_rx.cpp index 6289deabe..f6aa6e1a4 100644 --- a/host/examples/rfnoc_nullsource_ce_rx.cpp +++ b/host/examples/rfnoc_nullsource_ce_rx.cpp @@ -222,6 +222,7 @@ int UHD_SAFE_MAIN(int argc, char *argv[]) //setup the program options po::options_description desc("Allowed options"); + // clang-format off desc.add_options() ("help", "help message") ("args", po::value(&args)->default_value("type=x300"), "multi uhd device address args") @@ -242,6 +243,7 @@ int UHD_SAFE_MAIN(int argc, char *argv[]) ("blockid", po::value(&blockid)->default_value("FIFO"), "The block ID for the processing block.") ("blockid2", po::value(&blockid2)->default_value(""), "Optional: The block ID for the 2nd processing block.") ; + // clang-format on po::variables_map vm; po::store(po::parse_command_line(argc, argv, desc), vm); po::notify(vm); -- cgit v1.2.3