From c159806dd6f7c481dca8ca30b58027cc7440c824 Mon Sep 17 00:00:00 2001 From: Miki Rozloznik Date: Fri, 14 Jun 2024 18:55:41 +0800 Subject: [PATCH] update clang suppressions --- .../extensions/cpp/runtime/ClangTidySuppressions.txt | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/compiler/extensions/cpp/runtime/ClangTidySuppressions.txt b/compiler/extensions/cpp/runtime/ClangTidySuppressions.txt index 2a2129643..9f373fcb4 100644 --- a/compiler/extensions/cpp/runtime/ClangTidySuppressions.txt +++ b/compiler/extensions/cpp/runtime/ClangTidySuppressions.txt @@ -4,8 +4,12 @@ bugprone-signed-char-misuse:src/zserio/DeltaContext.h:95 bugprone-signed-char-misuse:src/zserio/DeltaContext.h:113 bugprone-signed-char-misuse:src/zserio/DeltaContext.h:176 bugprone-signed-char-misuse:src/zserio/DeltaContext.h:212 -bugprone-signed-char-misuse:src/zserio/DeltaContext.h:342 -bugprone-signed-char-misuse:src/zserio/DeltaContext.h:369 +bugprone-signed-char-misuse:src/zserio/DeltaContext.h:343 +bugprone-signed-char-misuse:src/zserio/DeltaContext.h:370 + +# static_casts were added to silence -Wsign-conversion warning requested in #625 +bugprone-misplaced-widening-cast:src/zserio/DeltaContext.h:142 +bugprone-misplaced-widening-cast:src/zserio/DeltaContext.h:276 # This is necessary for implementation of low level implementation of Span and StringView to mimic standard # C++17 'std::span' and 'std::string_view' abstractions. @@ -55,7 +59,7 @@ cppcoreguidelines-pro-bounds-constant-array-index:src/zserio/BitStreamWriter.cpp cppcoreguidelines-pro-bounds-constant-array-index:src/zserio/BitStreamWriter.cpp:389 cppcoreguidelines-pro-bounds-constant-array-index:src/zserio/BitStreamWriter.cpp:395 cppcoreguidelines-pro-bounds-constant-array-index:src/zserio/BitStreamWriter.cpp:591 -cppcoreguidelines-pro-bounds-constant-array-index:src/zserio/BitStreamWriter.cpp:659 +cppcoreguidelines-pro-bounds-constant-array-index:src/zserio/BitStreamWriter.cpp:660 cppcoreguidelines-pro-bounds-constant-array-index:src/zserio/JsonEncoder.cpp:91 cppcoreguidelines-pro-bounds-constant-array-index:src/zserio/JsonEncoder.cpp:92 cppcoreguidelines-pro-bounds-constant-array-index:src/zserio/Enums.h:93