pre-commit: update

This commit is contained in:
Tim Blechmann
2026-04-11 13:06:02 +08:00
parent b227585411
commit a7fca14f91
15 changed files with 17 additions and 17 deletions
+2 -2
View File
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
rev: v6.0.0
hooks:
- id: check-yaml
- id: end-of-file-fixer
@@ -11,7 +11,7 @@ repos:
- repo: https://github.com/pre-commit/mirrors-clang-format
rev: v17.0.6
rev: v22.1.3
hooks:
- id: clang-format
types_or: [c++, c, cuda]
+1 -1
View File
@@ -545,7 +545,7 @@ public:
rhs.set_size( 0 );
rhs.top_element = nullptr;
super_t::set_stability_count( ( std::max )( super_t::get_stability_count(), rhs.get_stability_count() ) );
super_t::set_stability_count( (std::max)( super_t::get_stability_count(), rhs.get_stability_count() ) );
rhs.set_stability_count( 0 );
}
+1 -1
View File
@@ -345,7 +345,7 @@ private:
size_type last_child_index( size_type index ) const
{
const size_t first_index = first_child_index( index );
const size_type last_index = ( std::min )( first_index + D - 1, size() - 1 );
const size_type last_index = (std::min)( first_index + D - 1, size() - 1 );
return last_index;
}
+1 -1
View File
@@ -56,6 +56,6 @@ IntType log2( IntType value )
return fn( value );
}
}} // namespace boost::heap
}} // namespace boost::heap
#endif /* BOOST_HEAP_DETAIL_ILOG2_HPP */
+1 -1
View File
@@ -522,6 +522,6 @@ public:
};
}}} // namespace boost::heap::detail
}}} // namespace boost::heap::detail
#endif /* BOOST_HEAP_DETAIL_MUTABLE_HEAP_HPP */
@@ -131,6 +131,6 @@ private:
};
}}} // namespace boost::heap::detail
}}} // namespace boost::heap::detail
#endif /* BOOST_HEAP_DETAIL_ORDERED_ADAPTOR_ITERATOR_HPP */
+1 -1
View File
@@ -563,6 +563,6 @@ struct extract_allocator_types
};
}}} // namespace boost::heap::detail
}}} // namespace boost::heap::detail
#endif /* BOOST_HEAP_DETAIL_STABLE_HEAP_HPP */
+1 -1
View File
@@ -343,6 +343,6 @@ public:
};
}}} // namespace boost::heap::detail
}}} // namespace boost::heap::detail
#endif /* BOOST_HEAP_DETAIL_TREE_ITERATOR_HPP */
+1 -1
View File
@@ -593,7 +593,7 @@ public:
rhs.top_element = nullptr;
rhs.set_size( 0 );
super_t::set_stability_count( ( std::max )( super_t::get_stability_count(), rhs.get_stability_count() ) );
super_t::set_stability_count( (std::max)( super_t::get_stability_count(), rhs.get_stability_count() ) );
rhs.set_stability_count( 0 );
}
+1 -1
View File
@@ -101,6 +101,6 @@ struct MutablePriorityQueue : PriorityQueue< C >
bool equal, not_equal;
};
}} // namespace boost::heap
}} // namespace boost::heap
#endif /* BOOST_HEAP_CONCEPTS_HPP */
+2 -2
View File
@@ -61,7 +61,7 @@ struct heap_merge_emulate
rhs.pop();
}
lhs.set_stability_count( ( std::max )( lhs.get_stability_count(), rhs.get_stability_count() ) );
lhs.set_stability_count( (std::max)( lhs.get_stability_count(), rhs.get_stability_count() ) );
rhs.set_stability_count( 0 );
}
};
@@ -118,6 +118,6 @@ void heap_merge( Heap1& lhs, Heap2& rhs )
}
}} // namespace boost::heap
}} // namespace boost::heap
#endif /* BOOST_HEAP_MERGE_HPP */
+1 -1
View File
@@ -587,7 +587,7 @@ public:
rhs.set_size( 0 );
rhs.root = nullptr;
super_t::set_stability_count( ( std::max )( super_t::get_stability_count(), rhs.get_stability_count() ) );
super_t::set_stability_count( (std::max)( super_t::get_stability_count(), rhs.get_stability_count() ) );
rhs.set_stability_count( 0 );
}
+1 -1
View File
@@ -180,6 +180,6 @@ struct arity
{};
#endif
}} // namespace boost::heap
}} // namespace boost::heap
#endif /* BOOST_HEAP_POLICIES_HPP */
+1 -1
View File
@@ -409,6 +409,6 @@ public:
}
};
}} // namespace boost::heap
}} // namespace boost::heap
#endif /* BOOST_HEAP_PRIORITY_QUEUE_HPP */
+1 -1
View File
@@ -556,7 +556,7 @@ public:
rhs.root = nullptr;
sanity_check();
super_t::set_stability_count( ( std::max )( super_t::get_stability_count(), rhs.get_stability_count() ) );
super_t::set_stability_count( (std::max)( super_t::get_stability_count(), rhs.get_stability_count() ) );
rhs.set_stability_count( 0 );
}