diff --git a/include/dwarfs/internal/packed_ptr.h b/include/dwarfs/internal/packed_ptr.h index 632ccec0..cbe02718 100644 --- a/include/dwarfs/internal/packed_ptr.h +++ b/include/dwarfs/internal/packed_ptr.h @@ -60,6 +60,7 @@ class packed_ptr { : p_(build_packed_ptr(p, data)) {} void set(T* p) { p_ = build_packed_ptr(p, get_data()); } + // NOLINTNEXTLINE(performance-no-int-to-ptr) T* get() const { return reinterpret_cast(p_ & ~data_mask); } T* operator->() const { return get(); } diff --git a/src/writer/internal/entry.cpp b/src/writer/internal/entry.cpp index 6f1e2378..141884d2 100644 --- a/src/writer/internal/entry.cpp +++ b/src/writer/internal/entry.cpp @@ -60,6 +60,7 @@ bool is_root_path(std::string_view path) { } // namespace +// NOLINTBEGIN(performance-unnecessary-value-param,performance-move-const-arg) entry::entry(fs::path const& path, std::shared_ptr parent, file_stat const& st) #ifdef _WIN32 @@ -71,6 +72,7 @@ entry::entry(fs::path const& path, std::shared_ptr parent, , parent_{std::move(parent)} , stat_{st} { } +// NOLINTEND(performance-unnecessary-value-param,performance-move-const-arg) bool entry::has_parent() const { if (parent_.lock()) {