Bump clang-format pre-commit hooks

This brings in slightly better formatting around uniform initialization,
and comments after blocks not surrounded by `{ .. }`.
This commit is contained in:
Benjamin Bannier 2024-12-09 15:50:49 +01:00
parent 0ebcd9608f
commit 97c0df29d4
5 changed files with 9 additions and 10 deletions

View file

@ -3,7 +3,7 @@
#
repos:
- repo: https://github.com/pre-commit/mirrors-clang-format
rev: 'v18.1.8'
rev: 'v19.1.4'
hooks:
- id: clang-format
types_or:

View file

@ -82,8 +82,7 @@ static VectorTypePtr base_vector_type__CPP(const VectorTypePtr& vt, bool is_bool
// Instantiates a double_kernel for a given operation.
#define VEC_OP1_WITH_DOUBLE(name, op) \
VEC_OP1( \
name, op, case TYPE_INTERNAL_DOUBLE \
: { \
name, op, case TYPE_INTERNAL_DOUBLE : { \
VEC_OP1_KERNEL(AsDouble, DoubleVal, op) \
break; \
})