Skip to content

Commit d51cb12

Browse files
task: update pre-commit hook repo versions (#586)
Also ran `pre-commit run --all-files` and new version of clang-fmt changed one file
1 parent f9ac10e commit d51cb12

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

.pre-commit-config.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ repos:
3030
exclude: schemas/json-schema-draft-07.json
3131

3232
- repo: https://github.com/python-jsonschema/check-jsonschema
33-
rev: 0.31.3
33+
rev: 0.32.1
3434
hooks:
3535
- id: check-jsonschema
3636
alias: check-jsonschema-inst
@@ -59,7 +59,7 @@ repos:
5959
# args: ["--schemafile", "schemas/manual_version_schema.json"]
6060

6161
- repo: https://github.com/pre-commit/mirrors-clang-format
62-
rev: "v18.1.3"
62+
rev: "v20.1.0"
6363
hooks:
6464
- id: clang-format
6565
types_or: [c++, c]

backends/cpp_hart_gen/cpp/include/udb/bits.hpp

+6-6
Original file line numberDiff line numberDiff line change
@@ -641,11 +641,11 @@ namespace udb {
641641
constexpr _Bits<constmax<N, M>::value, Signed && _Signed> operator op( \
642642
const _Bits<M, _Signed> &o) const { \
643643
if constexpr (M > N) { \
644-
return _Bits < constmax<N, M>::value, \
645-
Signed && _Signed > {_Bits<M, Signed>{get()}.get() op o.get()}; \
644+
return _Bits<constmax<N, M>::value, Signed && _Signed>{ \
645+
_Bits<M, Signed>{get()}.get() op o.get()}; \
646646
} else { \
647-
return _Bits < constmax<N, M>::value, \
648-
Signed && _Signed > {get() op _Bits<N, _Signed>{o.get()}.get()}; \
647+
return _Bits<constmax<N, M>::value, Signed && _Signed>{ \
648+
get() op _Bits<N, _Signed>{o.get()}.get()}; \
649649
} \
650650
} \
651651
\
@@ -1135,8 +1135,8 @@ struct fmt::formatter<udb::_Bits<N, Signed>> {
11351135
}
11361136

11371137
template <class FormatContext>
1138-
auto format(const udb::_Bits<N, Signed> &c,
1139-
FormatContext &ctx) -> decltype(ctx.out()) {
1138+
auto format(const udb::_Bits<N, Signed> &c, FormatContext &ctx)
1139+
-> decltype(ctx.out()) {
11401140
fmt::detail::handle_dynamic_spec<fmt::detail::precision_checker>(
11411141
specs_.width, specs_.width_ref, ctx);
11421142
int base = 10;

0 commit comments

Comments
 (0)