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/replay_samples_from_file.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'host/examples/replay_samples_from_file.cpp') diff --git a/host/examples/replay_samples_from_file.cpp b/host/examples/replay_samples_from_file.cpp index a8b5d40e9..07691df2b 100644 --- a/host/examples/replay_samples_from_file.cpp +++ b/host/examples/replay_samples_from_file.cpp @@ -63,6 +63,7 @@ int UHD_SAFE_MAIN(int argc, char *argv[]) size_t radio_id, radio_chan, replay_id, replay_chan, nsamps; po::options_description desc("Allowed Options"); + // clang-format off desc.add_options() ("help", "help message") ("args", po::value(&args)->default_value(""), "multi uhd device address args") @@ -80,6 +81,7 @@ int UHD_SAFE_MAIN(int argc, char *argv[]) ("bw", po::value(&bw), "analog front-end filter bandwidth in Hz") ("ref", po::value(&ref)->default_value("internal"), "reference source (internal, external, mimo)") ; + // clang-format on po::variables_map vm; po::store(po::parse_command_line(argc, argv, desc), vm); po::notify(vm); -- cgit v1.2.3