From be0ab21bb12b103071c415019044bf4f429f8270 Mon Sep 17 00:00:00 2001 From: Nikita Mikhailov Date: Wed, 20 Jan 2021 01:31:33 +0300 Subject: [PATCH] better --- src/Functions/PolygonsUnion.cpp | 1 + src/Functions/formatString.h | 1 + src/Storages/System/StorageSystemQuotaUsage.cpp | 1 + 3 files changed, 3 insertions(+) diff --git a/src/Functions/PolygonsUnion.cpp b/src/Functions/PolygonsUnion.cpp index 9d45269d0cb..94a1dc9ca0a 100644 --- a/src/Functions/PolygonsUnion.cpp +++ b/src/Functions/PolygonsUnion.cpp @@ -68,6 +68,7 @@ public: get(second_parser, second_container, i); Geometry polygons_union = CartesianMultiPolygon({{{{}}}}); + /// NOLINTNEXTLINE boost::geometry::union_( boost::get(first_container), boost::get(second_container), diff --git a/src/Functions/formatString.h b/src/Functions/formatString.h index bea4fa2e1bc..00da5765309 100644 --- a/src/Functions/formatString.h +++ b/src/Functions/formatString.h @@ -248,6 +248,7 @@ struct FormatImpl /// Strings without null termination. for (size_t i = 1; i < substrings.size(); ++i) { + /// NOLINTNEXTLINE(clang-analyzer-core.CallAndMessage) final_size += data[index_positions[i - 1]]->size(); /// Fixed strings do not have zero terminating character. if (offsets[index_positions[i - 1]]) diff --git a/src/Storages/System/StorageSystemQuotaUsage.cpp b/src/Storages/System/StorageSystemQuotaUsage.cpp index 6d6e22e7be6..06555371551 100644 --- a/src/Storages/System/StorageSystemQuotaUsage.cpp +++ b/src/Storages/System/StorageSystemQuotaUsage.cpp @@ -171,6 +171,7 @@ void StorageSystemQuotaUsage::fillDataImpl( for (auto resource_type : ext::range(Quota::MAX_RESOURCE_TYPE)) { const auto & type_info = ResourceTypeInfo::get(resource_type); + /// NOLINTNEXTLINE(clang-analyzer-core.CallAndMessage) addValue(*column_max[resource_type], *column_max_null_map[resource_type], interval->max[resource_type], type_info); addValue(*column_usage[resource_type], *column_usage_null_map[resource_type], interval->used[resource_type], type_info); }