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/lib/utils/static.cpp | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'host/lib/utils/static.cpp') diff --git a/host/lib/utils/static.cpp b/host/lib/utils/static.cpp index 84ca992c8..22cd3a1b6 100644 --- a/host/lib/utils/static.cpp +++ b/host/lib/utils/static.cpp @@ -6,17 +6,16 @@ // #include -#include #include -_uhd_static_fixture::_uhd_static_fixture(void (*fcn)(void), const char *name){ - try{ +#include +_uhd_static_fixture::_uhd_static_fixture(void (*fcn)(void), const char* name) +{ + try { fcn(); - } - catch(const std::exception &e){ + } catch (const std::exception& e) { std::cerr << "Exception in static block " << name << std::endl; std::cerr << " " << e.what() << std::endl; - } - catch(...){ + } catch (...) { std::cerr << "Exception in static block " << name << std::endl; } } -- cgit v1.2.3