From 876d4150aa3da531ddd687b48afada6e43f79146 Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Mon, 2 Mar 2020 15:25:13 -0800 Subject: uhd: Apply clang-format against all .cpp and .hpp files in host/ Note: template_lvbitx.{cpp,hpp} need to be excluded from the list of files that clang-format gets applied against. --- host/tests/rfnoc_property_test.cpp | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'host/tests/rfnoc_property_test.cpp') diff --git a/host/tests/rfnoc_property_test.cpp b/host/tests/rfnoc_property_test.cpp index 7e5af20a2..eb22424b1 100644 --- a/host/tests/rfnoc_property_test.cpp +++ b/host/tests/rfnoc_property_test.cpp @@ -4,8 +4,8 @@ // SPDX-License-Identifier: GPL-3.0-or-later // -#include #include +#include #include #include #include @@ -25,7 +25,7 @@ BOOST_AUTO_TEST_CASE(test_res_source_info) BOOST_CHECK_EQUAL(S2.instance, 5); // Check initializer - auto src_info_printer = [](res_source_info rsi){ + auto src_info_printer = [](res_source_info rsi) { std::cout << static_cast(rsi.type) << "::" << rsi.instance << std::endl; }; src_info_printer({res_source_info::OUTPUT_EDGE, 5}); @@ -94,7 +94,8 @@ BOOST_AUTO_TEST_CASE(test_access) // Now test the scoped access mode { - auto access_lock = prop_accessor.get_scoped_prop_access(prop_i, property_base_t::RW, property_base_t::NONE); + auto access_lock = prop_accessor.get_scoped_prop_access( + prop_i, property_base_t::RW, property_base_t::NONE); prop_i.set(42); BOOST_CHECK_EQUAL(prop_i.get(), 42); } @@ -145,8 +146,10 @@ BOOST_AUTO_TEST_CASE(test_dirtifier) prop_accessor.mark_clean(dirtifier); BOOST_CHECK(dirtifier.is_dirty()); property_t prop_i{"int_prop", 5, {res_source_info::USER}}; - BOOST_REQUIRE_THROW(prop_accessor.forward(&dirtifier, &prop_i), uhd::type_error); - BOOST_REQUIRE_THROW(prop_accessor.forward(&prop_i, &dirtifier), uhd::type_error); + BOOST_REQUIRE_THROW( + prop_accessor.forward(&dirtifier, &prop_i), uhd::type_error); + BOOST_REQUIRE_THROW( + prop_accessor.forward(&prop_i, &dirtifier), uhd::type_error); BOOST_CHECK(!prop_accessor.are_compatible(&prop_i, &dirtifier)); BOOST_CHECK(!prop_accessor.are_compatible(&dirtifier, &prop_i)); } -- cgit v1.2.3