Skip to content

Commit 5a15e5d

Browse files
⬆️🪝 update pre-commit hooks (cda-tum#595)
1 parent 5f88f68 commit 5a15e5d

File tree

5 files changed

+10
-9
lines changed

5 files changed

+10
-9
lines changed

.pre-commit-config.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ repos:
8686

8787
# Clang-format the C++ part of the code base automatically
8888
- repo: https://github.com/pre-commit/mirrors-clang-format
89-
rev: v18.1.3
89+
rev: v18.1.4
9090
hooks:
9191
- id: clang-format
9292
types_or: [c++, c, cuda]

eval/eval_dd_package.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ class BenchmarkDDPackage {
226226

227227
public:
228228
explicit BenchmarkDDPackage(std::string filename)
229-
: inputFilename(std::move(filename)){};
229+
: inputFilename(std::move(filename)) {};
230230

231231
void runAll() {
232232
runGHZ();

include/mqt-core/dd/ComplexNumbers.hpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ class ComplexNumbers {
1414

1515
public:
1616
/// Default constructor.
17-
explicit ComplexNumbers(RealNumberUniqueTable& table) : uniqueTable(&table){};
17+
explicit ComplexNumbers(RealNumberUniqueTable& table)
18+
: uniqueTable(&table) {};
1819
/// Default destructor.
1920
~ComplexNumbers() = default;
2021

include/mqt-core/operations/Expression.hpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ class Term {
7777
return std::abs(static_cast<double>(coeff)) < TOLERANCE;
7878
}
7979

80-
explicit Term(const Variable v, T coef = 1.) : coeff(coef), var(v){};
80+
explicit Term(const Variable v, T coef = 1.) : coeff(coef), var(v) {};
8181

8282
Term operator-() const { return Term(var, -coeff); }
8383

@@ -182,11 +182,11 @@ class Expression {
182182
}
183183

184184
Expression(const std::vector<Term<T>>& ts, const U& con)
185-
: terms(ts), constant(con){};
185+
: terms(ts), constant(con) {};
186186

187187
Expression() = default;
188188

189-
explicit Expression(const U& r) : constant(r){};
189+
explicit Expression(const U& r) : constant(r) {};
190190

191191
iterator begin() { return terms.begin(); }
192192
[[nodiscard]] const_iterator begin() const { return terms.cbegin(); }

include/mqt-core/zx/Utils.hpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ struct Edge {
1616
EdgeType type;
1717

1818
Edge() = default;
19-
Edge(const Vertex t, const EdgeType typ) : to(t), type(typ){};
19+
Edge(const Vertex t, const EdgeType typ) : to(t), type(typ) {};
2020
void toggle() {
2121
if (type == EdgeType::Simple) {
2222
type = EdgeType::Hadamard;
@@ -36,7 +36,7 @@ struct VertexData {
3636
class Vertices {
3737
public:
3838
explicit Vertices(const std::vector<std::optional<VertexData>>& verts)
39-
: vertices(verts){};
39+
: vertices(verts) {};
4040

4141
class VertexIterator {
4242
public:
@@ -91,7 +91,7 @@ class Edges {
9191
public:
9292
Edges(const std::vector<std::vector<Edge>>& edgs,
9393
const std::vector<std::optional<VertexData>>& verts)
94-
: edges(edgs), vertices(verts){};
94+
: edges(edgs), vertices(verts) {};
9595

9696
class EdgeIterator {
9797
public:

0 commit comments

Comments
 (0)