Skip to content

Commit 06554a7

Browse files
[pre-commit.ci] pre-commit autoupdate (#268)
* [pre-commit.ci] pre-commit autoupdate updates: - [github.com/pre-commit/mirrors-clang-format: v16.0.6 → v17.0.2](pre-commit/mirrors-clang-format@v16.0.6...v17.0.2) * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent dc5febd commit 06554a7

File tree

8 files changed

+27
-25
lines changed

8 files changed

+27
-25
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ ci:
22
autoupdate_branch: 'devel'
33
repos:
44
- repo: https://github.com/pre-commit/mirrors-clang-format
5-
rev: v16.0.6
5+
rev: v17.0.2
66
hooks:
77
- id: clang-format
88
args: ['--style={BasedOnStyle: Mozilla, SortIncludes: false}']

include/proxsuite/helpers/tl-optional.hpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -640,9 +640,9 @@ struct optional_copy_assign_base<T, false> : optional_move_base<T>
640640
// move assignable
641641
#ifndef TL_OPTIONAL_GCC49
642642
template<class T,
643-
bool = std::is_trivially_destructible<T>::value&&
644-
std::is_trivially_move_constructible<T>::value&&
645-
std::is_trivially_move_assignable<T>::value>
643+
bool = std::is_trivially_destructible<T>::value &&
644+
std::is_trivially_move_constructible<T>::value &&
645+
std::is_trivially_move_assignable<T>::value>
646646
struct optional_move_assign_base : optional_copy_assign_base<T>
647647
{
648648
using optional_copy_assign_base<T>::optional_copy_assign_base;
@@ -667,8 +667,8 @@ struct optional_move_assign_base<T, false> : optional_copy_assign_base<T>
667667

668668
optional_move_assign_base&
669669
operator=(optional_move_assign_base&& rhs) noexcept(
670-
std::is_nothrow_move_constructible<T>::value&&
671-
std::is_nothrow_move_assignable<T>::value)
670+
std::is_nothrow_move_constructible<T>::value &&
671+
std::is_nothrow_move_assignable<T>::value)
672672
{
673673
this->assign(std::move(rhs));
674674
return *this;
@@ -1461,8 +1461,8 @@ class optional
14611461
/// If one has a value, it is moved to the other and the movee is left
14621462
/// valueless.
14631463
void swap(optional& rhs) noexcept(
1464-
std::is_nothrow_move_constructible<T>::value&&
1465-
detail::is_nothrow_swappable<T>::value)
1464+
std::is_nothrow_move_constructible<T>::value &&
1465+
detail::is_nothrow_swappable<T>::value)
14661466
{
14671467
using std::swap;
14681468
if (has_value()) {

include/proxsuite/linalg/veg/internal/dyn_index.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,8 @@ struct binary_traits<Dyn, Fix<N>> : binary_traits<Dyn, Dyn>
257257
} // namespace _detail
258258

259259
inline namespace literals {
260-
VEG_INLINE constexpr auto operator"" _v(unsigned long long n) VEG_NOEXCEPT->Dyn
260+
VEG_INLINE constexpr auto
261+
operator"" _v(unsigned long long n) VEG_NOEXCEPT->Dyn
261262
{
262263
return isize(n);
263264
}

include/proxsuite/linalg/veg/internal/external/hedley.ext.hpp

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
#undef HEDLEY_VERSION_ENCODE
5151
#endif
5252
#define HEDLEY_VERSION_ENCODE(major, minor, revision) \
53-
(((major)*1000000) + ((minor)*1000) + (revision))
53+
(((major) * 1000000) + ((minor) * 1000) + (revision))
5454

5555
#if defined(HEDLEY_VERSION_DECODE_MAJOR)
5656
#undef HEDLEY_VERSION_DECODE_MAJOR
@@ -194,7 +194,7 @@
194194
#elif defined(__SUNPRO_C)
195195
#define HEDLEY_SUNPRO_VERSION \
196196
HEDLEY_VERSION_ENCODE( \
197-
(__SUNPRO_C >> 8) & 0xf, (__SUNPRO_C >> 4) & 0xf, (__SUNPRO_C)&0xf)
197+
(__SUNPRO_C >> 8) & 0xf, (__SUNPRO_C >> 4) & 0xf, (__SUNPRO_C) & 0xf)
198198
#elif defined(__SUNPRO_CC) && (__SUNPRO_CC > 0x1000)
199199
#define HEDLEY_SUNPRO_VERSION \
200200
HEDLEY_VERSION_ENCODE( \
@@ -204,7 +204,7 @@
204204
#elif defined(__SUNPRO_CC)
205205
#define HEDLEY_SUNPRO_VERSION \
206206
HEDLEY_VERSION_ENCODE( \
207-
(__SUNPRO_CC >> 8) & 0xf, (__SUNPRO_CC >> 4) & 0xf, (__SUNPRO_CC)&0xf)
207+
(__SUNPRO_CC >> 8) & 0xf, (__SUNPRO_CC >> 4) & 0xf, (__SUNPRO_CC) & 0xf)
208208
#endif
209209

210210
#if defined(HEDLEY_SUNPRO_VERSION_CHECK)
@@ -1817,12 +1817,12 @@ HEDLEY_DIAGNOSTIC_POP
18171817
#if defined(__INTPTR_TYPE__)
18181818
#define HEDLEY_IS_CONSTEXPR_(expr) \
18191819
__builtin_types_compatible_p( \
1820-
__typeof__((1 ? (void*)((__INTPTR_TYPE__)((expr)*0)) : (int*)0)), int*)
1820+
__typeof__((1 ? (void*)((__INTPTR_TYPE__)((expr) * 0)) : (int*)0)), int*)
18211821
#else
18221822
#include <stdint.h>
18231823
#define HEDLEY_IS_CONSTEXPR_(expr) \
18241824
__builtin_types_compatible_p( \
1825-
__typeof__((1 ? (void*)((intptr_t)((expr)*0)) : (int*)0)), int*)
1825+
__typeof__((1 ? (void*)((intptr_t)((expr) * 0)) : (int*)0)), int*)
18261826
#endif
18271827
#elif (defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 201112L) && \
18281828
!defined(HEDLEY_SUNPRO_VERSION) && !defined(HEDLEY_PGI_VERSION) && \
@@ -1832,13 +1832,13 @@ HEDLEY_DIAGNOSTIC_POP
18321832
HEDLEY_IBM_VERSION_CHECK(12, 1, 0) || HEDLEY_ARM_VERSION_CHECK(5, 3, 0)
18331833
#if defined(__INTPTR_TYPE__)
18341834
#define HEDLEY_IS_CONSTEXPR_(expr) \
1835-
_Generic((1 ? (void*)((__INTPTR_TYPE__)((expr)*0)) : (int*)0), \
1835+
_Generic((1 ? (void*)((__INTPTR_TYPE__)((expr) * 0)) : (int*)0), \
18361836
int*: 1, \
18371837
void*: 0)
18381838
#else
18391839
#include <stdint.h>
18401840
#define HEDLEY_IS_CONSTEXPR_(expr) \
1841-
_Generic((1 ? (void*)((intptr_t)*0) : (int*)0), int*: 1, void*: 0)
1841+
_Generic((1 ? (void*)((intptr_t) * 0) : (int*)0), int*: 1, void*: 0)
18421842
#endif
18431843
#elif defined(HEDLEY_GCC_VERSION) || defined(HEDLEY_INTEL_VERSION) || \
18441844
defined(HEDLEY_TINYC_VERSION) || defined(HEDLEY_TI_ARMCL_VERSION) || \
@@ -1847,7 +1847,7 @@ HEDLEY_DIAGNOSTIC_POP
18471847
defined(HEDLEY_TI_CL7X_VERSION) || defined(HEDLEY_TI_CLPRU_VERSION) || \
18481848
defined(__clang__)
18491849
#define HEDLEY_IS_CONSTEXPR_(expr) \
1850-
(sizeof(void) != sizeof(*(1 ? ((void*)((expr)*0L)) \
1850+
(sizeof(void) != sizeof(*(1 ? ((void*)((expr) * 0L)) \
18511851
: ((struct { char v[sizeof(void) * 2]; }*)1))))
18521852
#endif
18531853
#endif

include/proxsuite/linalg/veg/internal/fix_index.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,8 @@ namespace adl {
325325

326326
inline namespace literals {
327327
template<char... Chars>
328-
VEG_INLINE constexpr auto operator"" _c() VEG_NOEXCEPT
328+
VEG_INLINE constexpr auto
329+
operator"" _c() VEG_NOEXCEPT
329330
{
330331
return Fix<_detail::parse_int(
331332
_detail::char_seq<Chars...>::value, sizeof...(Chars), _detail::Error{})>{};

include/proxsuite/linalg/veg/internal/prologue.hpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,15 +55,15 @@
5555
~Class() = default; \
5656
Class(Class&&) = default; \
5757
explicit Class(Class const&) = default; \
58-
auto operator=(Class&&)&->Class& = default; \
59-
auto operator=(Class const&)&->Class& = default
58+
auto operator=(Class&&)& -> Class& = default; \
59+
auto operator=(Class const&)& -> Class& = default
6060

6161
#define VEG_NO_COPY(Class) \
6262
~Class() = default; \
6363
Class(Class&&) = default; \
6464
Class(Class const&) = delete; \
65-
auto operator=(Class&&)&->Class& = default; \
66-
auto operator=(Class const&)&->Class& = delete
65+
auto operator=(Class&&)& -> Class& = default; \
66+
auto operator=(Class const&)& -> Class& = delete
6767

6868
#ifdef VEG_WITH_CXX14_SUPPORT
6969
#define VEG_CPP14(...) __VA_ARGS__

include/proxsuite/proxqp/dense/views.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ struct FnInfo<auto(Args...)->Ret_>
5353
template auto __VA_ARGS__( \
5454
LDLT_IMPL_GET_PARAMS(NParams, __VA_ARGS__) \
5555
typename ::proxsuite::proxqp::detail::FnInfo< \
56-
decltype(__VA_ARGS__)>::template Arg<(NParams)-1>) \
57-
->typename ::proxsuite::proxqp::detail::FnInfo<decltype(__VA_ARGS__)>::Ret
56+
decltype(__VA_ARGS__)>::template Arg<(NParams)-1>) -> \
57+
typename ::proxsuite::proxqp::detail::FnInfo<decltype(__VA_ARGS__)>::Ret
5858
#define LDLT_EXPLICIT_TPL_DECL(NParams, ...) \
5959
extern LDLT_EXPLICIT_TPL_DEF(NParams, __VA_ARGS__)
6060

test/doctest/doctest.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@
8585
#endif
8686

8787
#define DOCTEST_COMPILER(MAJOR, MINOR, PATCH) \
88-
((MAJOR)*10000000 + (MINOR)*100000 + (PATCH))
88+
((MAJOR) * 10000000 + (MINOR) * 100000 + (PATCH))
8989

9090
// GCC/Clang and GCC/MSVC are mutually exclusive, but Clang/MSVC are not because
9191
// of clang-cl...

0 commit comments

Comments
 (0)