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/pathslib.cpp | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) (limited to 'host/lib/utils/pathslib.cpp') diff --git a/host/lib/utils/pathslib.cpp b/host/lib/utils/pathslib.cpp index cbb0d0917..547c860b1 100644 --- a/host/lib/utils/pathslib.cpp +++ b/host/lib/utils/pathslib.cpp @@ -8,9 +8,9 @@ #include #ifdef BOOST_MSVC -# include +# include #else -# include +# include #endif std::string uhd::path_expandvars(const std::string& path) @@ -21,15 +21,12 @@ std::string uhd::path_expandvars(const std::string& path) #ifdef BOOST_MSVC constexpr size_t max_pathlen = 4096; char result[max_pathlen]; - const size_t result_len = ExpandEnvironmentStrings( - path.c_str(), - &result[0], - max_pathlen - ); + const size_t result_len = + ExpandEnvironmentStrings(path.c_str(), &result[0], max_pathlen); if (result == 0) { return path; } - return std::string(result, result+result_len); + return std::string(result, result + result_len); #else wordexp_t p; std::string return_value; @@ -42,4 +39,3 @@ std::string uhd::path_expandvars(const std::string& path) return return_value; #endif } - -- cgit v1.2.3