diff options
author | Brent Stapleton <brent.stapleton@ettus.com> | 2019-01-10 15:19:48 -0800 |
---|---|---|
committer | Brent Stapleton <brent.stapleton@ettus.com> | 2019-01-16 11:40:23 -0800 |
commit | 601e0ed87bd97a54f5243fffa7ccd60e31e42425 (patch) | |
tree | 596988e677e7929d5c24259d3b0870f93f107ded /host/examples/test_clock_synch.cpp | |
parent | 8bd7498ed9fea9c46fa34705986968416d818029 (diff) | |
download | uhd-601e0ed87bd97a54f5243fffa7ccd60e31e42425.tar.gz uhd-601e0ed87bd97a54f5243fffa7ccd60e31e42425.tar.bz2 uhd-601e0ed87bd97a54f5243fffa7ccd60e31e42425.zip |
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.
Diffstat (limited to 'host/examples/test_clock_synch.cpp')
-rw-r--r-- | host/examples/test_clock_synch.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/host/examples/test_clock_synch.cpp b/host/examples/test_clock_synch.cpp index a0b67a95b..cb34e625c 100644 --- a/host/examples/test_clock_synch.cpp +++ b/host/examples/test_clock_synch.cpp @@ -38,6 +38,7 @@ int UHD_SAFE_MAIN(int argc, char *argv[]){ //Set up program options po::options_description desc("Allowed options"); + // clang-format off desc.add_options() ("help", "Display this help message") ("clock-args", po::value<std::string>(&clock_args), "Clock device arguments") @@ -45,6 +46,7 @@ int UHD_SAFE_MAIN(int argc, char *argv[]){ ("max-interval", po::value<uint32_t>(&max_interval)->default_value(10000), "Maximum interval between comparisons (in ms)") ("num-tests", po::value<uint32_t>(&num_tests)->default_value(10), "Number of times to compare device times") ; + // clang-format on po::variables_map vm; po::store(po::parse_command_line(argc, argv, desc), vm); po::notify(vm); |