File tree 4 files changed +12
-13
lines changed
4 files changed +12
-13
lines changed Original file line number Diff line number Diff line change @@ -1121,7 +1121,8 @@ Errata::assign(code_type code) -> self_type & {
1121
1121
return *this ;
1122
1122
}
1123
1123
1124
- inline bool Errata::has_severity () const {
1124
+ inline bool
1125
+ Errata::has_severity () const {
1125
1126
return _data && _data->_severity .has_value ();
1126
1127
}
1127
1128
inline auto
Original file line number Diff line number Diff line change @@ -1108,11 +1108,13 @@ inline constexpr CharSet::CharSet(TextView const &chars) {
1108
1108
}
1109
1109
}
1110
1110
1111
- inline bool CharSet::operator ()(unsigned char c) const {
1111
+ inline bool
1112
+ CharSet::operator ()(unsigned char c) const {
1112
1113
return _chars[c];
1113
1114
}
1114
1115
1115
- inline bool CharSet::operator ()(char c) const {
1116
+ inline bool
1117
+ CharSet::operator ()(char c) const {
1116
1118
return _chars[uint8_t (c)];
1117
1119
}
1118
1120
Original file line number Diff line number Diff line change @@ -257,8 +257,8 @@ template <typename... Types> struct type_list {
257
257
template <typename T> struct let {
258
258
using self_type = let;
259
259
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 ;
262
262
263
263
T &_var; // /< Reference to scoped variable.
264
264
T _value; // /< Original value.
@@ -280,19 +280,15 @@ template <typename T> struct let {
280
280
~let ();
281
281
};
282
282
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)) {
285
284
_var = value;
286
285
}
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)) {
289
287
_var = std::move (value);
290
288
}
291
289
292
- template <typename T> let<T>::~let ()
293
- {
290
+ template <typename T> let<T>::~let () {
294
291
_var = std::move (_value);
295
292
}
296
293
297
-
298
294
}}} // namespace swoc::SWOC_VERSION_NS::meta
Original file line number Diff line number Diff line change @@ -110,7 +110,7 @@ TEST_CASE("Meta let", "[meta][let]") {
110
110
std::string s{" Evil Dave Rulz With An Iron Keyboard" }; // force allocation.
111
111
auto sptr = s.data ();
112
112
{
113
- char const * text = " Twas brillig and the slithy toves" ;
113
+ char const *text = " Twas brillig and the slithy toves" ;
114
114
let guard (s, std::string (text));
115
115
REQUIRE (s == text);
116
116
REQUIRE (s.data () != sptr);
You can’t perform that action at this time.
0 commit comments