diff options
author | Brent Stapleton <brent.stapleton@ettus.com> | 2019-01-18 09:45:34 -0800 |
---|---|---|
committer | Brent Stapleton <brent.stapleton@ettus.com> | 2019-01-18 17:51:35 -0800 |
commit | a53130679944ddd179593259eb953b89ab1a7a38 (patch) | |
tree | 5d8274750bed0b21aa133bc93d97d75bbce0ecd9 /host/lib/transport/usb_dummy_impl.cpp | |
parent | 2a44d6836ca08b6b67b83b63487b838e138ac379 (diff) | |
download | uhd-a53130679944ddd179593259eb953b89ab1a7a38.tar.gz uhd-a53130679944ddd179593259eb953b89ab1a7a38.tar.bz2 uhd-a53130679944ddd179593259eb953b89ab1a7a38.zip |
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
Diffstat (limited to 'host/lib/transport/usb_dummy_impl.cpp')
-rw-r--r-- | host/lib/transport/usb_dummy_impl.cpp | 38 |
1 files changed, 21 insertions, 17 deletions
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 <uhd/transport/usb_device_handle.hpp> +#include <uhd/exception.hpp> #include <uhd/transport/usb_control.hpp> +#include <uhd/transport/usb_device_handle.hpp> #include <uhd/transport/usb_zero_copy.hpp> -#include <uhd/exception.hpp> 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::sptr> usb_device_handle::get_device_list(uint16_t, uint16_t){ - return std::vector<usb_device_handle::sptr>(); //empty list +std::vector<usb_device_handle::sptr> usb_device_handle::get_device_list( + uint16_t, uint16_t) +{ + return std::vector<usb_device_handle::sptr>(); // 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"); } |