mirror of
https://github.com/mhx/dwarfs.git
synced 2025-08-03 09:47:01 -04:00
chore: add a few more clang-tidy exceptions
This commit is contained in:
parent
53286d00a9
commit
5b8e7acbc9
@ -160,10 +160,12 @@ char const* const DWARFS_GIT_ID = \"${PRJ_GIT_ID}\";
|
||||
|
||||
#pragma once
|
||||
|
||||
// NOLINTBEGIN(cppcoreguidelines-macro-to-enum)
|
||||
#define DWARFS_VERSION_MAJOR ${PRJ_VERSION_MAJOR}
|
||||
#define DWARFS_VERSION_MINOR ${PRJ_VERSION_MINOR}
|
||||
#define DWARFS_VERSION_PATCH ${PRJ_VERSION_PATCH}
|
||||
#define DWARFS_VERSION (DWARFS_VERSION_MAJOR * 10000 + DWARFS_VERSION_MINOR * 100 + DWARFS_VERSION_PATCH)
|
||||
// NOLINTEND(cppcoreguidelines-macro-to-enum)
|
||||
|
||||
namespace dwarfs {
|
||||
|
||||
|
@ -87,6 +87,7 @@ class progress {
|
||||
|
||||
std::vector<std::shared_ptr<context>> get_active_contexts() const;
|
||||
|
||||
// NOLINTBEGIN(cppcoreguidelines-non-private-member-variables-in-classes)
|
||||
std::atomic<object const*> current{nullptr};
|
||||
std::atomic<uint64_t> total_bytes_read{0};
|
||||
std::atomic<size_t> current_size{0};
|
||||
@ -115,6 +116,7 @@ class progress {
|
||||
std::atomic<uint64_t> saved_by_segmentation{0};
|
||||
std::atomic<uint64_t> filesystem_size{0};
|
||||
std::atomic<uint64_t> compressed_size{0};
|
||||
// NOLINTEND(cppcoreguidelines-non-private-member-variables-in-classes)
|
||||
|
||||
struct scan_progress {
|
||||
std::atomic<size_t> scans{0};
|
||||
|
@ -33,6 +33,7 @@ namespace dwarfs {
|
||||
|
||||
namespace {
|
||||
|
||||
// NOLINTBEGIN(cppcoreguidelines-pro-bounds-pointer-arithmetic)
|
||||
template <typename UnpackedType>
|
||||
class basic_pcm_sample_transformer {
|
||||
public:
|
||||
@ -163,6 +164,7 @@ class basic_pcm_sample_transformer {
|
||||
}
|
||||
}
|
||||
};
|
||||
// NOLINTEND(cppcoreguidelines-pro-bounds-pointer-arithmetic)
|
||||
|
||||
template <typename UnpackedType, pcm_sample_endianness End,
|
||||
pcm_sample_signedness Sig, pcm_sample_padding Pad, int Bytes,
|
||||
|
@ -56,6 +56,8 @@ constexpr inline uint8_t tran3(uint8_t a, uint8_t b, uint8_t c, uint8_t n) {
|
||||
|
||||
} // namespace
|
||||
|
||||
// NOLINTBEGIN(cppcoreguidelines-pro-bounds-pointer-arithmetic)
|
||||
|
||||
class nilsimsa::impl {
|
||||
public:
|
||||
impl() = default;
|
||||
@ -176,6 +178,8 @@ class nilsimsa::impl {
|
||||
size_t size_{0};
|
||||
};
|
||||
|
||||
// NOLINTEND(cppcoreguidelines-pro-bounds-pointer-arithmetic)
|
||||
|
||||
nilsimsa::nilsimsa()
|
||||
: impl_{std::make_unique<impl>()} {}
|
||||
nilsimsa::~nilsimsa() = default;
|
||||
|
Loading…
x
Reference in New Issue
Block a user