mirror of
https://github.com/mhx/dwarfs.git
synced 2025-09-13 22:40:03 -04:00
chore: locally disable some clang-tidy checks
This commit is contained in:
parent
07bcc09395
commit
ce69ea2aba
@ -60,6 +60,7 @@ class packed_ptr {
|
|||||||
: p_(build_packed_ptr(p, data)) {}
|
: p_(build_packed_ptr(p, data)) {}
|
||||||
|
|
||||||
void set(T* p) { p_ = build_packed_ptr(p, get_data()); }
|
void set(T* p) { p_ = build_packed_ptr(p, get_data()); }
|
||||||
|
// NOLINTNEXTLINE(performance-no-int-to-ptr)
|
||||||
T* get() const { return reinterpret_cast<T*>(p_ & ~data_mask); }
|
T* get() const { return reinterpret_cast<T*>(p_ & ~data_mask); }
|
||||||
|
|
||||||
T* operator->() const { return get(); }
|
T* operator->() const { return get(); }
|
||||||
|
@ -60,6 +60,7 @@ bool is_root_path(std::string_view path) {
|
|||||||
|
|
||||||
} // namespace
|
} // namespace
|
||||||
|
|
||||||
|
// NOLINTBEGIN(performance-unnecessary-value-param,performance-move-const-arg)
|
||||||
entry::entry(fs::path const& path, std::shared_ptr<entry> parent,
|
entry::entry(fs::path const& path, std::shared_ptr<entry> parent,
|
||||||
file_stat const& st)
|
file_stat const& st)
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
@ -71,6 +72,7 @@ entry::entry(fs::path const& path, std::shared_ptr<entry> parent,
|
|||||||
, parent_{std::move(parent)}
|
, parent_{std::move(parent)}
|
||||||
, stat_{st} {
|
, stat_{st} {
|
||||||
}
|
}
|
||||||
|
// NOLINTEND(performance-unnecessary-value-param,performance-move-const-arg)
|
||||||
|
|
||||||
bool entry::has_parent() const {
|
bool entry::has_parent() const {
|
||||||
if (parent_.lock()) {
|
if (parent_.lock()) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user