From a53130679944ddd179593259eb953b89ab1a7a38 Mon Sep 17 00:00:00 2001 From: Brent Stapleton Date: Fri, 18 Jan 2019 09:45:34 -0800 Subject: lib: transport: apply clang-format This is a continuation of 967be2a4. $ find host/lib/transport -iname *.hpp -o -iname *.cpp |\ xargs clang-format -i -style=file Skipping host/lib/transport/nirio/ because of build errors. $ git checkout host/lib/transport/nirio --- host/lib/transport/usb_dummy_impl.cpp | 38 +++++++++++++++++++---------------- 1 file changed, 21 insertions(+), 17 deletions(-) (limited to 'host/lib/transport/usb_dummy_impl.cpp') diff --git a/host/lib/transport/usb_dummy_impl.cpp b/host/lib/transport/usb_dummy_impl.cpp index 81aad97c6..8e5084a9b 100644 --- a/host/lib/transport/usb_dummy_impl.cpp +++ b/host/lib/transport/usb_dummy_impl.cpp @@ -5,44 +5,48 @@ // SPDX-License-Identifier: GPL-3.0-or-later // -#include +#include #include +#include #include -#include using namespace uhd; using namespace uhd::transport; -usb_control::~usb_control(void){ +usb_control::~usb_control(void) +{ /* NOP */ } -usb_device_handle::~usb_device_handle(void) { +usb_device_handle::~usb_device_handle(void) +{ /* NOP */ } -usb_zero_copy::~usb_zero_copy(void) { +usb_zero_copy::~usb_zero_copy(void) +{ /* NOP */ } -std::vector usb_device_handle::get_device_list(uint16_t, uint16_t){ - return std::vector(); //empty list +std::vector usb_device_handle::get_device_list( + uint16_t, uint16_t) +{ + return std::vector(); // empty list } -usb_control::sptr usb_control::make( - usb_device_handle::sptr, - const int -) { - throw uhd::not_implemented_error("no usb support -> usb_control::make not implemented"); +usb_control::sptr usb_control::make(usb_device_handle::sptr, const int) +{ + throw uhd::not_implemented_error( + "no usb support -> usb_control::make not implemented"); } -usb_zero_copy::sptr usb_zero_copy::make( - usb_device_handle::sptr, +usb_zero_copy::sptr usb_zero_copy::make(usb_device_handle::sptr, const int, const unsigned char, const int, const unsigned char, - const device_addr_t & -){ - throw uhd::not_implemented_error("no usb support -> usb_zero_copy::make not implemented"); + const device_addr_t&) +{ + throw uhd::not_implemented_error( + "no usb support -> usb_zero_copy::make not implemented"); } -- cgit v1.2.3