Skip to content

Commit

Permalink
cc userver: clang-tidy-18 fixes chunk 5
Browse files Browse the repository at this point in the history
commit_hash:2a93c8b6391866de3c3cd63413483934d6d36e6b
  • Loading branch information
Nechda committed Feb 14, 2025
1 parent bb5f707 commit 98ad535
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,11 @@ namespace traits {
// e.g. TimePointTz
template <typename Tag, typename T, USERVER_NAMESPACE::utils::StrongTypedefOps Ops, typename Enable>
inline constexpr bool kIsStrongTypedefDirectlyMapped =
// NOLINTNEXTLINE(google-readability-casting)
kIsMappedToUserType<USERVER_NAMESPACE::utils::StrongTypedef<Tag, T, Ops, Enable>> ||
// NOLINTNEXTLINE(google-readability-casting)
kIsMappedToSystemType<USERVER_NAMESPACE::utils::StrongTypedef<Tag, T, Ops, Enable>> ||
// NOLINTNEXTLINE(google-readability-casting)
kIsMappedToArray<USERVER_NAMESPACE::utils::StrongTypedef<Tag, T, Ops, Enable>>;

template <typename Tag, typename T, USERVER_NAMESPACE::utils::StrongTypedefOps Ops, typename Enable>
Expand Down
2 changes: 2 additions & 0 deletions redis/src/storages/redis/impl/sentinel_impl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,8 @@ SentinelImpl::SentinelImpl(
cluster_mode_failed_(false),
key_shard_(std::move(key_shard)),
connection_mode_(mode),
// https://github.com/boostorg/signals2/issues/59
// NOLINTNEXTLINE(clang-analyzer-cplusplus.NewDelete)
slot_info_(IsInClusterMode() ? std::make_unique<SlotInfo>() : nullptr),
dynamic_config_source_(dynamic_config_source) {
for (size_t i = 0; i < init_shards_->size(); ++i) {
Expand Down

0 comments on commit 98ad535

Please sign in to comment.