update clang-format

This commit is contained in:
Tim Blechmann
2026-05-19 17:36:52 +08:00
parent 39850eb96b
commit 1725462afb
4 changed files with 4 additions and 5 deletions
+1 -1
View File
@@ -10,7 +10,7 @@ repos:
args: [--fix=auto]
- repo: https://github.com/pre-commit/mirrors-clang-format
rev: v22.1.3
rev: v22.1.5
hooks:
- id: clang-format
types_or: [c++, c, cuda]
-1
View File
@@ -434,7 +434,6 @@ private:
#endif
public:
/** Pops object from queue.
*
* \post if pop operation is successful, object will be copied to ret.
+1 -1
View File
@@ -498,7 +498,7 @@ BOOST_AUTO_TEST_CASE( spsc_queue_consume_all_test_compile_time )
f.push( 3 );
std::vector< int > consumed;
size_t count = f.consume_all( [&]( int i ) {
size_t count = f.consume_all( [ & ]( int i ) {
consumed.push_back( i );
} );
+2 -2
View File
@@ -337,7 +337,7 @@ BOOST_AUTO_TEST_CASE( stack_consume_all_atomic_order_test )
// consume_all_atomic pops all atomically and then processes in stack order (LIFO: 3, 2, 1)
std::vector< int > consumed_order;
size_t consumed = f.consume_all_atomic( [&]( int i ) {
size_t consumed = f.consume_all_atomic( [ & ]( int i ) {
consumed_order.push_back( i );
} );
@@ -361,7 +361,7 @@ BOOST_AUTO_TEST_CASE( stack_consume_all_atomic_reversed_order_test )
// consume_all_atomic_reversed processes in FIFO order (1, 2, 3)
std::vector< int > consumed_order;
size_t consumed = f.consume_all_atomic_reversed( [&]( int i ) {
size_t consumed = f.consume_all_atomic_reversed( [ & ]( int i ) {
consumed_order.push_back( i );
} );