Skip to content

Commit

Permalink
Run do-clang-format with clang-format 18.1.4 (#1367)
Browse files Browse the repository at this point in the history
* run do-clang-format with clang-format 18.1.4

* bump
  • Loading branch information
sjdilkes authored Apr 29, 2024
1 parent 297a0fb commit 16514cc
Show file tree
Hide file tree
Showing 16 changed files with 17 additions and 17 deletions.
2 changes: 1 addition & 1 deletion pytket/binders/include/UnitRegister.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ template <typename T>
class UnitRegister {
public:
UnitRegister(const std::string &name, const std::size_t size)
: name_(name), size_(size){};
: name_(name), size_(size) {};

std::string name() const { return name_; }
std::size_t size() const { return size_; }
Expand Down
2 changes: 1 addition & 1 deletion pytket/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def package(self):
cmake.install()

def requirements(self):
self.requires("tket/1.2.117@tket/stable")
self.requires("tket/1.2.118@tket/stable")
self.requires("tklog/0.3.3@tket/stable")
self.requires("tkrng/0.3.3@tket/stable")
self.requires("tkassert/0.3.4@tket/stable")
Expand Down
2 changes: 1 addition & 1 deletion tket/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

class TketConan(ConanFile):
name = "tket"
version = "1.2.117"
version = "1.2.118"
package_type = "library"
license = "Apache 2"
homepage = "https://github.com/CQCL/tket"
Expand Down
2 changes: 1 addition & 1 deletion tket/include/tket/Characterisation/Cycles.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ struct CycleHistory {
class CycleFinder {
public:
CycleFinder(const Circuit& _circ, const OpTypeSet& _cycle_types)
: circ(_circ), cycle_types_(_cycle_types){};
: circ(_circ), cycle_types_(_cycle_types) {};

// Cycles are sub-circuits of circ where every gate has OpType in cycle_types_
// get_cycles() returns the minimum number of cycles such that every
Expand Down
2 changes: 1 addition & 1 deletion tket/include/tket/Circuit/ClassicalExpBox.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ class ClassicalExpBox : public ClassicalExpBoxBase {
n_io_(other.n_io_),
n_o_(other.n_o_),
exp_(other.exp_),
sig_(other.sig_){};
sig_(other.sig_) {};

~ClassicalExpBox() override {}
Op_ptr symbol_substitution(
Expand Down
2 changes: 1 addition & 1 deletion tket/include/tket/Mapping/AASLabelling.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class AASLabellingMethod : public RoutingMethod {
* Checking and Routing methods redefined for dynamically assigning qubits to
* some Architecture.
*/
AASLabellingMethod(){};
AASLabellingMethod() {};

/**
* will place all the qubits of the given circuit that are not placed at the
Expand Down
2 changes: 1 addition & 1 deletion tket/include/tket/Mapping/LexiLabelling.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class LexiLabellingMethod : public RoutingMethod {
* Checking and Routing methods redefined for dynamically assigning qubits to
* some Architecture.
*/
LexiLabellingMethod(){};
LexiLabellingMethod() {};

/**
* @param mapping_frontier Contains boundary of routed/unrouted circuit for
Expand Down
2 changes: 1 addition & 1 deletion tket/include/tket/Mapping/RoutingMethod.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ namespace tket {

class RoutingMethod {
public:
RoutingMethod(){};
RoutingMethod() {};
virtual ~RoutingMethod() {}

/**
Expand Down
4 changes: 2 additions & 2 deletions tket/include/tket/Placement/Placement.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class Placement {

explicit Placement(const Architecture& _architecture);

Placement(){};
Placement() {};

/**
* Reassigns some UnitID in circ_ as UnitID in architecture_
Expand Down Expand Up @@ -90,7 +90,7 @@ class Placement {
*/
const Architecture& get_architecture_ref() { return architecture_; }

virtual ~Placement(){};
virtual ~Placement() {};

static const std::string& unplaced_reg();

Expand Down
2 changes: 1 addition & 1 deletion tket/include/tket/Predicates/CompilerPass.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ class BasePass {
static Guarantee get_guarantee(
const std::type_index& ti, const PassConditions& conditions);

virtual ~BasePass(){};
virtual ~BasePass() {};

protected:
BasePass(const PredicatePtrMap& precons, const PostConditions& postcons)
Expand Down
2 changes: 1 addition & 1 deletion tket/include/tket/Predicates/Predicates.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ class Predicate {
virtual bool implies(const Predicate& other) const = 0;
virtual PredicatePtr meet(const Predicate& other) const = 0;
virtual std::string to_string() const = 0;
virtual ~Predicate(){}; // satisfy compiler
virtual ~Predicate() {}; // satisfy compiler
};

// all Predicate subclasses must inherit from `Predicate`
Expand Down
2 changes: 1 addition & 1 deletion tket/src/Mapping/BoxDecomposition.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ bool BoxDecomposition::solve() {
return true;
}

BoxDecompositionRoutingMethod::BoxDecompositionRoutingMethod(){};
BoxDecompositionRoutingMethod::BoxDecompositionRoutingMethod() {};

std::pair<bool, unit_map_t> BoxDecompositionRoutingMethod::routing_method(
MappingFrontier_ptr &mapping_frontier,
Expand Down
2 changes: 1 addition & 1 deletion tket/src/Mapping/LexiRouteRoutingMethod.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
namespace tket {

LexiRouteRoutingMethod::LexiRouteRoutingMethod(unsigned _max_depth)
: max_depth_(_max_depth){};
: max_depth_(_max_depth) {};

std::pair<bool, unit_map_t> LexiRouteRoutingMethod::routing_method(
MappingFrontier_ptr& mapping_frontier,
Expand Down
2 changes: 1 addition & 1 deletion tket/src/Mapping/RoutingMethodCircuit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ RoutingMethodCircuit::RoutingMethodCircuit(
unsigned _max_size, unsigned _max_depth)
: route_subcircuit_(_route_subcircuit),
max_size_(_max_size),
max_depth_(_max_depth){};
max_depth_(_max_depth) {};

std::pair<bool, unit_map_t> RoutingMethodCircuit::routing_method(
MappingFrontier_ptr& mapping_frontier,
Expand Down
2 changes: 1 addition & 1 deletion tket/src/Placement/Placement.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ void fill_partial_mapping(
}

Placement::Placement(const Architecture& _architecture)
: architecture_(_architecture){};
: architecture_(_architecture) {};

bool Placement::place(
Circuit& circ_, std::shared_ptr<unit_bimaps_t> compilation_map) const {
Expand Down
2 changes: 1 addition & 1 deletion tket/test/src/test_MappingManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ namespace tket {

class TokenSwappingTester : public RoutingMethod {
public:
TokenSwappingTester(){};
TokenSwappingTester() {};

/**
* @param mapping_frontier Contains boundary of routed/unrouted circuit for
Expand Down

0 comments on commit 16514cc

Please sign in to comment.