Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

⬆️🪝 update pre-commit hooks #595

Merged
merged 2 commits into from
Apr 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ repos:

# Clang-format the C++ part of the code base automatically
- repo: https://github.com/pre-commit/mirrors-clang-format
rev: v18.1.3
rev: v18.1.4
hooks:
- id: clang-format
types_or: [c++, c, cuda]
Expand Down
2 changes: 1 addition & 1 deletion eval/eval_dd_package.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ class BenchmarkDDPackage {

public:
explicit BenchmarkDDPackage(std::string filename)
: inputFilename(std::move(filename)){};
: inputFilename(std::move(filename)) {};

void runAll() {
runGHZ();
Expand Down
3 changes: 2 additions & 1 deletion include/mqt-core/dd/ComplexNumbers.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ class ComplexNumbers {

public:
/// Default constructor.
explicit ComplexNumbers(RealNumberUniqueTable& table) : uniqueTable(&table){};
explicit ComplexNumbers(RealNumberUniqueTable& table)
: uniqueTable(&table) {};
/// Default destructor.
~ComplexNumbers() = default;

Expand Down
6 changes: 3 additions & 3 deletions include/mqt-core/operations/Expression.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ class Term {
return std::abs(static_cast<double>(coeff)) < TOLERANCE;
}

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

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

Expand Down Expand Up @@ -182,11 +182,11 @@ class Expression {
}

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

Expression() = default;

explicit Expression(const U& r) : constant(r){};
explicit Expression(const U& r) : constant(r) {};

iterator begin() { return terms.begin(); }
[[nodiscard]] const_iterator begin() const { return terms.cbegin(); }
Expand Down
6 changes: 3 additions & 3 deletions include/mqt-core/zx/Utils.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ struct Edge {
EdgeType type;

Edge() = default;
Edge(const Vertex t, const EdgeType typ) : to(t), type(typ){};
Edge(const Vertex t, const EdgeType typ) : to(t), type(typ) {};
void toggle() {
if (type == EdgeType::Simple) {
type = EdgeType::Hadamard;
Expand All @@ -36,7 +36,7 @@ struct VertexData {
class Vertices {
public:
explicit Vertices(const std::vector<std::optional<VertexData>>& verts)
: vertices(verts){};
: vertices(verts) {};

class VertexIterator {
public:
Expand Down Expand Up @@ -91,7 +91,7 @@ class Edges {
public:
Edges(const std::vector<std::vector<Edge>>& edgs,
const std::vector<std::optional<VertexData>>& verts)
: edges(edgs), vertices(verts){};
: edges(edgs), vertices(verts) {};

class EdgeIterator {
public:
Expand Down
Loading