diff options
author | Martin Braun <martin.braun@ettus.com> | 2020-03-02 15:25:13 -0800 |
---|---|---|
committer | atrnati <54334261+atrnati@users.noreply.github.com> | 2020-03-03 08:51:32 -0600 |
commit | 876d4150aa3da531ddd687b48afada6e43f79146 (patch) | |
tree | fd72a71419f4cd800d4e500cfcaded4dfc8dc367 /host/lib/utils/pathslib.cpp | |
parent | 1393553d623bdf4ba40d5435c9719b6ce990d9ac (diff) | |
download | uhd-876d4150aa3da531ddd687b48afada6e43f79146.tar.gz uhd-876d4150aa3da531ddd687b48afada6e43f79146.tar.bz2 uhd-876d4150aa3da531ddd687b48afada6e43f79146.zip |
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.
Diffstat (limited to 'host/lib/utils/pathslib.cpp')
-rw-r--r-- | host/lib/utils/pathslib.cpp | 14 |
1 files changed, 5 insertions, 9 deletions
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 <uhdlib/utils/paths.hpp> #ifdef BOOST_MSVC -# include <windows.h> +# include <windows.h> #else -# include <wordexp.h> +# include <wordexp.h> #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 } - |