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/uhd_usrp_probe.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'host/utils/uhd_usrp_probe.cpp') diff --git a/host/utils/uhd_usrp_probe.cpp b/host/utils/uhd_usrp_probe.cpp index a838049e2..3522b4148 100644 --- a/host/utils/uhd_usrp_probe.cpp +++ b/host/utils/uhd_usrp_probe.cpp @@ -230,6 +230,7 @@ void print_tree(const uhd::fs_path &path, uhd::property_tree::sptr tree){ int UHD_SAFE_MAIN(int argc, char *argv[]){ po::options_description desc("Allowed options"); + // clang-format off desc.add_options() ("help", "help message") ("version", "print the version string and exit") @@ -243,6 +244,7 @@ int UHD_SAFE_MAIN(int argc, char *argv[]){ ("vector", "when querying a string, interpret that as std::vector") ("init-only", "skip all queries, only initialize device") ; + // clang-format on po::variables_map vm; po::store(po::parse_command_line(argc, argv, desc), vm); -- cgit v1.2.3