Skip to content

Commit 7e4df6c

Browse files
Clang format.
1 parent 2734914 commit 7e4df6c

File tree

4 files changed

+12
-13
lines changed

4 files changed

+12
-13
lines changed

code/include/swoc/Errata.h

+2-1
Original file line numberDiff line numberDiff line change
@@ -1121,7 +1121,8 @@ Errata::assign(code_type code) -> self_type & {
11211121
return *this;
11221122
}
11231123

1124-
inline bool Errata::has_severity() const {
1124+
inline bool
1125+
Errata::has_severity() const {
11251126
return _data && _data->_severity.has_value();
11261127
}
11271128
inline auto

code/include/swoc/TextView.h

+4-2
Original file line numberDiff line numberDiff line change
@@ -1108,11 +1108,13 @@ inline constexpr CharSet::CharSet(TextView const &chars) {
11081108
}
11091109
}
11101110

1111-
inline bool CharSet::operator()(unsigned char c) const {
1111+
inline bool
1112+
CharSet::operator()(unsigned char c) const {
11121113
return _chars[c];
11131114
}
11141115

1115-
inline bool CharSet::operator()(char c) const {
1116+
inline bool
1117+
CharSet::operator()(char c) const {
11161118
return _chars[uint8_t(c)];
11171119
}
11181120

code/include/swoc/swoc_meta.h

+5-9
Original file line numberDiff line numberDiff line change
@@ -257,8 +257,8 @@ template <typename... Types> struct type_list {
257257
template <typename T> struct let {
258258
using self_type = let;
259259

260-
let(self_type const& that) = delete;
261-
self_type & operator = (self_type const&) = delete;
260+
let(self_type const &that) = delete;
261+
self_type &operator=(self_type const &) = delete;
262262

263263
T &_var; ///< Reference to scoped variable.
264264
T _value; ///< Original value.
@@ -280,19 +280,15 @@ template <typename T> struct let {
280280
~let();
281281
};
282282

283-
template <typename T> let<T>::let(T &var, T const &value) : _var(var), _value(std::move(var))
284-
{
283+
template <typename T> let<T>::let(T &var, T const &value) : _var(var), _value(std::move(var)) {
285284
_var = value;
286285
}
287-
template <typename T> let<T>::let(T &var, T &&value) : _var(var), _value(std::move(var))
288-
{
286+
template <typename T> let<T>::let(T &var, T &&value) : _var(var), _value(std::move(var)) {
289287
_var = std::move(value);
290288
}
291289

292-
template <typename T> let<T>::~let()
293-
{
290+
template <typename T> let<T>::~let() {
294291
_var = std::move(_value);
295292
}
296293

297-
298294
}}} // namespace swoc::SWOC_VERSION_NS::meta

unit_tests/test_meta.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ TEST_CASE("Meta let", "[meta][let]") {
110110
std::string s{"Evil Dave Rulz With An Iron Keyboard"}; // force allocation.
111111
auto sptr = s.data();
112112
{
113-
char const * text = "Twas brillig and the slithy toves";
113+
char const *text = "Twas brillig and the slithy toves";
114114
let guard(s, std::string(text));
115115
REQUIRE(s == text);
116116
REQUIRE(s.data() != sptr);

0 commit comments

Comments
 (0)