diff options
| author | mikhnenko <[email protected]> | 2025-10-01 09:36:06 +0300 |
|---|---|---|
| committer | mikhnenko <[email protected]> | 2025-10-01 09:50:30 +0300 |
| commit | 6c48c4868d4794968d6d16f07fc98a27dd528d6c (patch) | |
| tree | 1f376330a5644951ed828f6d62f7a4a0ea5d3af5 /util | |
| parent | 2bbcc0800ec992b8a9eacc14fb0cbb0d525664e7 (diff) | |
Fix naming reported by clang-tidy
commit_hash:4c9065f19b98cd54fb2a25a3aec88f682420ba9b
Diffstat (limited to 'util')
| -rw-r--r-- | util/generic/typetraits.h | 4 | ||||
| -rw-r--r-- | util/generic/yexception.h | 14 |
2 files changed, 9 insertions, 9 deletions
diff --git a/util/generic/typetraits.h b/util/generic/typetraits.h index b6451a27065..5970806b81d 100644 --- a/util/generic/typetraits.h +++ b/util/generic/typetraits.h @@ -142,10 +142,10 @@ class TTypeTraits<void>: public TTypeTraitsBase<void> {}; template <class T1, T1 val> \ class TChecker {}; \ struct TNo { \ - char ch; \ + char Ch; \ }; \ struct TYes { \ - char arr[2]; \ + char Arr[2]; \ }; \ template <class T1> \ static TNo CheckMember(T1*, TChecker<void (TBase::*)(), &T1::method>* = nullptr); \ diff --git a/util/generic/yexception.h b/util/generic/yexception.h index 68eae8e43a7..c87868ffd42 100644 --- a/util/generic/yexception.h +++ b/util/generic/yexception.h @@ -213,13 +213,13 @@ TString FormatExc(const std::exception& exception); /// @def Y_ENSURE_SIMPLE /// This macro works like the Y_ENSURE, but requires the second argument to be a constant string view. /// Should not be used directly. -#define Y_ENSURE_SIMPLE(CONDITION, MESSAGE, THROW_FUNCTION) \ - do { \ - if (Y_UNLIKELY(!(CONDITION))) { \ - /* use variable to guarantee evaluation at compile time */ \ - static constexpr const ::NPrivate::TSimpleExceptionMessage __SIMPLE_EXCEPTION_MESSAGE{__LOCATION__, (MESSAGE)}; \ - THROW_FUNCTION(__SIMPLE_EXCEPTION_MESSAGE); \ - } \ +#define Y_ENSURE_SIMPLE(CONDITION, MESSAGE, THROW_FUNCTION) \ + do { \ + if (Y_UNLIKELY(!(CONDITION))) { \ + /* use variable to guarantee evaluation at compile time */ \ + static constexpr const ::NPrivate::TSimpleExceptionMessage simpleExceptionMessage{__LOCATION__, (MESSAGE)}; \ + THROW_FUNCTION(simpleExceptionMessage); \ + } \ } while (false) #define Y_ENSURE_IMPL_1(CONDITION) Y_ENSURE_SIMPLE(CONDITION, ::TStringBuf("Condition violated: `" Y_STRINGIZE(CONDITION) "'"), ::NPrivate::ThrowYException) |
