From 107a49c0c236940da7d3bd0f57da4bc1e2a34cb4 Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Fri, 8 Jan 2021 09:33:36 +0100 Subject: host: Update code base using clang-tidy The checks from the new clang-tidy file are applied to the source tree using: $ find . -name "*.cpp" | sort -u | xargs \ --max-procs 8 --max-args 1 clang-tidy --format-style=file \ --fix -p /path/to/compile_commands.json --- host/lib/device.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'host/lib/device.cpp') diff --git a/host/lib/device.cpp b/host/lib/device.cpp index 7bf362753..62277134b 100644 --- a/host/lib/device.cpp +++ b/host/lib/device.cpp @@ -130,7 +130,7 @@ device::sptr device::make(const device_addr_t& hint, device_filter_t filter, siz } // check that we found any devices - if (dev_addr_makers.size() == 0) { + if (dev_addr_makers.empty()) { throw uhd::key_error( str(boost::format("No devices found for ----->\n%s") % hint.to_pp_string())); } -- cgit v1.2.3