diff options
Diffstat (limited to 'host/utils')
-rw-r--r-- | host/utils/converter_benchmark.cpp | 2 | ||||
-rw-r--r-- | host/utils/fx2_init_eeprom.cpp | 2 | ||||
-rw-r--r-- | host/utils/latency/responder.cpp | 2 | ||||
-rw-r--r-- | host/utils/octoclock_burn_eeprom.cpp | 2 | ||||
-rw-r--r-- | host/utils/query_gpsdo_sensors.cpp | 2 | ||||
-rw-r--r-- | host/utils/uhd_cal_rx_iq_balance.cpp | 2 | ||||
-rw-r--r-- | host/utils/uhd_cal_tx_dc_offset.cpp | 2 | ||||
-rw-r--r-- | host/utils/uhd_cal_tx_iq_balance.cpp | 2 | ||||
-rw-r--r-- | host/utils/uhd_config_info.cpp | 2 | ||||
-rw-r--r-- | host/utils/uhd_find_devices.cpp | 2 | ||||
-rw-r--r-- | host/utils/uhd_image_loader.cpp | 2 | ||||
-rw-r--r-- | host/utils/uhd_usrp_probe.cpp | 2 | ||||
-rw-r--r-- | host/utils/usrp_burn_db_eeprom.cpp | 2 | ||||
-rw-r--r-- | host/utils/usrp_burn_mb_eeprom.cpp | 2 | ||||
-rw-r--r-- | host/utils/usrp_e3x0_network_mode.cpp | 2 |
15 files changed, 30 insertions, 0 deletions
diff --git a/host/utils/converter_benchmark.cpp b/host/utils/converter_benchmark.cpp index aa3985fd1..cb8cce519 100644 --- a/host/utils/converter_benchmark.cpp +++ b/host/utils/converter_benchmark.cpp @@ -291,6 +291,7 @@ int UHD_SAFE_MAIN(int argc, char *argv[]) /// Command line arguments po::options_description desc("Converter benchmark options:"); + // clang-format off desc.add_options() ("help", "help message") ("in", po::value<std::string>(&in_format), "Input format (e.g. 'sc16')") @@ -305,6 +306,7 @@ int UHD_SAFE_MAIN(int argc, char *argv[]) ("seed-mode", po::value<std::string>(&seed_mode)->default_value("random"), "How to initialize the data: random, incremental") ("hex", "When using debug mode, dump memory in hex") ; + // clang-format on po::variables_map vm; po::store(po::parse_command_line(argc, argv, desc), vm); po::notify(vm); diff --git a/host/utils/fx2_init_eeprom.cpp b/host/utils/fx2_init_eeprom.cpp index 9edefcda0..448652faf 100644 --- a/host/utils/fx2_init_eeprom.cpp +++ b/host/utils/fx2_init_eeprom.cpp @@ -33,6 +33,7 @@ int UHD_SAFE_MAIN(int argc, char *argv[]){ std::string type; std::string image; po::options_description desc("Allowed options"); + // clang-format off desc.add_options() ("help", "help message") ("image", po::value<std::string>(), "BIN image file; if not specified, use built-in image") @@ -40,6 +41,7 @@ int UHD_SAFE_MAIN(int argc, char *argv[]){ ("pid", po::value<std::string>(), "PID of device to program") ("type", po::value<std::string>(&type), "device type (usrp1 or b100, required if using built-in image)") ; + // clang-format on po::variables_map vm; po::store(po::parse_command_line(argc, argv, desc), vm); 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<std::string>(&prog.test_title)->default_value(""), "title to show during test") @@ -66,6 +67,7 @@ get_program_options_description() ("priority", po::value<double>(&prog.rt_priority)->default_value(1.0), "scheduler priority") ("no-realtime", "don't enable real-time") ; + // clang-format on return desc; } diff --git a/host/utils/octoclock_burn_eeprom.cpp b/host/utils/octoclock_burn_eeprom.cpp index a4a8adf03..f98f526f6 100644 --- a/host/utils/octoclock_burn_eeprom.cpp +++ b/host/utils/octoclock_burn_eeprom.cpp @@ -25,12 +25,14 @@ int UHD_SAFE_MAIN(int argc, char *argv[]){ std::string args, input_str, key, val; po::options_description desc("Allowed options"); + // clang-format off desc.add_options() ("help", "help message") ("args", po::value<std::string>(&args)->default_value(""), "device address args [default = \"\"]") ("values", po::value<std::string>(&input_str), "keys+values to read/write, separate multiple by \",\"") ("read-all", "Read all motherboard EEPROM values without writing") ; + // clang-format on po::variables_map vm; po::store(po::parse_command_line(argc, argv, desc), vm); diff --git a/host/utils/query_gpsdo_sensors.cpp b/host/utils/query_gpsdo_sensors.cpp index f37d9cc4a..6a3ecca13 100644 --- a/host/utils/query_gpsdo_sensors.cpp +++ b/host/utils/query_gpsdo_sensors.cpp @@ -73,11 +73,13 @@ 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", "help message") ("args", po::value<std::string>(&args)->default_value(""), "Device address arguments specifying a single USRP") ("clock", "query a clock device's sensors") ; + // clang-format on po::variables_map vm; po::store(po::parse_command_line(argc, argv, desc), vm); po::notify(vm); diff --git a/host/utils/uhd_cal_rx_iq_balance.cpp b/host/utils/uhd_cal_rx_iq_balance.cpp index 81a04b6f9..d8c6a63da 100644 --- a/host/utils/uhd_cal_rx_iq_balance.cpp +++ b/host/utils/uhd_cal_rx_iq_balance.cpp @@ -91,6 +91,7 @@ int UHD_SAFE_MAIN(int argc, char *argv[]) double precision; po::options_description desc("Allowed options"); + // clang-format off desc.add_options() ("help", "help message") ("verbose", "enable some verbose") @@ -104,6 +105,7 @@ int UHD_SAFE_MAIN(int argc, char *argv[]) ("nsamps", po::value<size_t>(&nsamps), "Samples per data capture") ("precision", po::value<double>(&precision)->default_value(default_precision), "Correction precision (default=0.0001)") ; + // clang-format on po::variables_map vm; po::store(po::parse_command_line(argc, argv, desc), vm); diff --git a/host/utils/uhd_cal_tx_dc_offset.cpp b/host/utils/uhd_cal_tx_dc_offset.cpp index 6c35f017f..6519cd9ec 100644 --- a/host/utils/uhd_cal_tx_dc_offset.cpp +++ b/host/utils/uhd_cal_tx_dc_offset.cpp @@ -98,6 +98,7 @@ int UHD_SAFE_MAIN(int argc, char *argv[]) double precision; po::options_description desc("Allowed options"); + // clang-format off desc.add_options() ("help", "help message") ("verbose", "enable some verbose") @@ -112,6 +113,7 @@ int UHD_SAFE_MAIN(int argc, char *argv[]) ("nsamps", po::value<size_t>(&nsamps), "Samples per data capture") ("precision", po::value<double>(&precision)->default_value(default_precision), "Correction precision (default=0.0001)") ; + // clang-format on po::variables_map vm; po::store(po::parse_command_line(argc, argv, desc), vm); diff --git a/host/utils/uhd_cal_tx_iq_balance.cpp b/host/utils/uhd_cal_tx_iq_balance.cpp index d5079431b..4da5a1f96 100644 --- a/host/utils/uhd_cal_tx_iq_balance.cpp +++ b/host/utils/uhd_cal_tx_iq_balance.cpp @@ -95,6 +95,7 @@ int UHD_SAFE_MAIN(int argc, char *argv[]) double precision; po::options_description desc("Allowed options"); + // clang-format off desc.add_options() ("help", "help message") ("verbose", "enable some verbose") @@ -109,6 +110,7 @@ int UHD_SAFE_MAIN(int argc, char *argv[]) ("nsamps", po::value<size_t>(&nsamps), "Samples per data capture") ("precision", po::value<double>(&precision)->default_value(default_precision), "Correction precision (default=0.0001)") ; + // clang-format on po::variables_map vm; po::store(po::parse_command_line(argc, argv, desc), vm); diff --git a/host/utils/uhd_config_info.cpp b/host/utils/uhd_config_info.cpp index 2b7fb5d6c..2c29af214 100644 --- a/host/utils/uhd_config_info.cpp +++ b/host/utils/uhd_config_info.cpp @@ -17,6 +17,7 @@ namespace po = boost::program_options; int UHD_SAFE_MAIN(int argc, char* argv[]) { // Program Options po::options_description desc("Allowed Options"); + // clang-format off desc.add_options() ("build-date", "Print build date") ("c-compiler", "Print C compiler") @@ -34,6 +35,7 @@ int UHD_SAFE_MAIN(int argc, char* argv[]) { ("version", "Print this UHD build's version") ("help", "Print help message") ; + // clang-format on po::variables_map vm; po::store(po::parse_command_line(argc, argv, desc), vm); diff --git a/host/utils/uhd_find_devices.cpp b/host/utils/uhd_find_devices.cpp index ab2ba5ab3..504fafcf7 100644 --- a/host/utils/uhd_find_devices.cpp +++ b/host/utils/uhd_find_devices.cpp @@ -29,10 +29,12 @@ namespace po = boost::program_options; int UHD_SAFE_MAIN(int argc, char *argv[]){ po::options_description desc("Allowed options"); + // clang-format off desc.add_options() ("help", "help message") ("args", po::value<std::string>()->default_value(""), "device address args") ; + // clang-format on po::variables_map vm; po::store(po::parse_command_line(argc, argv, desc), vm); diff --git a/host/utils/uhd_image_loader.cpp b/host/utils/uhd_image_loader.cpp index 2ba38a6ec..507a4ac87 100644 --- a/host/utils/uhd_image_loader.cpp +++ b/host/utils/uhd_image_loader.cpp @@ -47,6 +47,7 @@ void sigint_handler(int){ int UHD_SAFE_MAIN(int argc, char *argv[]){ po::options_description desc("Allowed options"); + // clang-format off desc.add_options() ("help", "help message") ("args", po::value<std::string>()->default_value(""), "Device args, optional loader args") @@ -57,6 +58,7 @@ int UHD_SAFE_MAIN(int argc, char *argv[]){ ("no-fpga", "Don't Burn FPGA") ("download", "Download an image to a bit/bin file") ; + // clang-format on po::variables_map vm; po::store(po::parse_command_line(argc, argv, desc), vm); 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); diff --git a/host/utils/usrp_burn_db_eeprom.cpp b/host/utils/usrp_burn_db_eeprom.cpp index f3d6d3346..391c35950 100644 --- a/host/utils/usrp_burn_db_eeprom.cpp +++ b/host/utils/usrp_burn_db_eeprom.cpp @@ -27,6 +27,7 @@ int UHD_SAFE_MAIN(int argc, char *argv[]){ std::string args, slot, unit; po::options_description desc("Allowed options"); + // clang-format off desc.add_options() ("help", "help message") ("args", po::value<std::string>(&args)->default_value(""), "device address args [default = \"\"]") @@ -36,6 +37,7 @@ int UHD_SAFE_MAIN(int argc, char *argv[]){ ("ser", po::value<std::string>(), "serial to burn, omit for readback") ("rev", po::value<std::string>(), "revision to burn, omit for readback") ; + // clang-format on po::variables_map vm; po::store(po::parse_command_line(argc, argv, desc), vm); diff --git a/host/utils/usrp_burn_mb_eeprom.cpp b/host/utils/usrp_burn_mb_eeprom.cpp index 5e1212d38..e2596d5c4 100644 --- a/host/utils/usrp_burn_mb_eeprom.cpp +++ b/host/utils/usrp_burn_mb_eeprom.cpp @@ -22,12 +22,14 @@ int UHD_SAFE_MAIN(int argc, char *argv[]){ std::string args, input_str; po::options_description desc("Allowed options"); + // clang-format off desc.add_options() ("help", "help message") ("args", po::value<std::string>(&args)->default_value(""), "device address args [default = \"\"]") ("values", po::value<std::string>(&input_str), "keys+values to read/write, separate multiple by \",\"") ("read-all", "Read all motherboard EEPROM values without writing") ; + // clang-format on po::variables_map vm; po::store(po::parse_command_line(argc, argv, desc), vm); diff --git a/host/utils/usrp_e3x0_network_mode.cpp b/host/utils/usrp_e3x0_network_mode.cpp index 937f4db3d..ac4f47e4d 100644 --- a/host/utils/usrp_e3x0_network_mode.cpp +++ b/host/utils/usrp_e3x0_network_mode.cpp @@ -34,10 +34,12 @@ static void check_network_ok(void) int main(int argc, char *argv[]) { po::options_description desc("Allowed options"); + // clang-format off desc.add_options() ("help", "help message") ("fpga", po::value<std::string>(), "fpga image to load") ; + // clang-format on po::variables_map vm; po::store(po::parse_command_line(argc, argv, desc), vm); |