Skip to content

Commit 5b8e7ac

Browse files
committed
chore: add a few more clang-tidy exceptions
1 parent 53286d0 commit 5b8e7ac

File tree

4 files changed

+10
-0
lines changed

4 files changed

+10
-0
lines changed

cmake/version.cmake

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,10 +160,12 @@ char const* const DWARFS_GIT_ID = \"${PRJ_GIT_ID}\";
160160
161161
#pragma once
162162
163+
// NOLINTBEGIN(cppcoreguidelines-macro-to-enum)
163164
#define DWARFS_VERSION_MAJOR ${PRJ_VERSION_MAJOR}
164165
#define DWARFS_VERSION_MINOR ${PRJ_VERSION_MINOR}
165166
#define DWARFS_VERSION_PATCH ${PRJ_VERSION_PATCH}
166167
#define DWARFS_VERSION (DWARFS_VERSION_MAJOR * 10000 + DWARFS_VERSION_MINOR * 100 + DWARFS_VERSION_PATCH)
168+
// NOLINTEND(cppcoreguidelines-macro-to-enum)
167169
168170
namespace dwarfs {
169171

include/dwarfs/writer/internal/progress.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ class progress {
8787

8888
std::vector<std::shared_ptr<context>> get_active_contexts() const;
8989

90+
// NOLINTBEGIN(cppcoreguidelines-non-private-member-variables-in-classes)
9091
std::atomic<object const*> current{nullptr};
9192
std::atomic<uint64_t> total_bytes_read{0};
9293
std::atomic<size_t> current_size{0};
@@ -115,6 +116,7 @@ class progress {
115116
std::atomic<uint64_t> saved_by_segmentation{0};
116117
std::atomic<uint64_t> filesystem_size{0};
117118
std::atomic<uint64_t> compressed_size{0};
119+
// NOLINTEND(cppcoreguidelines-non-private-member-variables-in-classes)
118120

119121
struct scan_progress {
120122
std::atomic<size_t> scans{0};

src/pcm_sample_transformer.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ namespace dwarfs {
3333

3434
namespace {
3535

36+
// NOLINTBEGIN(cppcoreguidelines-pro-bounds-pointer-arithmetic)
3637
template <typename UnpackedType>
3738
class basic_pcm_sample_transformer {
3839
public:
@@ -163,6 +164,7 @@ class basic_pcm_sample_transformer {
163164
}
164165
}
165166
};
167+
// NOLINTEND(cppcoreguidelines-pro-bounds-pointer-arithmetic)
166168

167169
template <typename UnpackedType, pcm_sample_endianness End,
168170
pcm_sample_signedness Sig, pcm_sample_padding Pad, int Bytes,

src/writer/internal/nilsimsa.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ constexpr inline uint8_t tran3(uint8_t a, uint8_t b, uint8_t c, uint8_t n) {
5656

5757
} // namespace
5858

59+
// NOLINTBEGIN(cppcoreguidelines-pro-bounds-pointer-arithmetic)
60+
5961
class nilsimsa::impl {
6062
public:
6163
impl() = default;
@@ -176,6 +178,8 @@ class nilsimsa::impl {
176178
size_t size_{0};
177179
};
178180

181+
// NOLINTEND(cppcoreguidelines-pro-bounds-pointer-arithmetic)
182+
179183
nilsimsa::nilsimsa()
180184
: impl_{std::make_unique<impl>()} {}
181185
nilsimsa::~nilsimsa() = default;

0 commit comments

Comments
 (0)