Skip to content

Commit d72ad9d

Browse files
committed
remove NOLINTs
1 parent 9e4ea44 commit d72ad9d

File tree

2 files changed

+17
-29
lines changed

2 files changed

+17
-29
lines changed

include/reactor-cpp/impl/port_impl.hh

Lines changed: 9 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -70,32 +70,25 @@ void Port<T>::instantiate_connection_to(const ConnectionProperties& properties,
7070
auto index = this->container()->number_of_connections();
7171

7272
if (properties.type_ == ConnectionType::Delayed) {
73-
connection =
74-
std::make_unique<DelayedConnection<T>>(this->name() + "_delayed_connection_" + std::to_string(index), // NOLINT
75-
this->container(), // NOLINT
76-
properties.delay_); // NOLINT
73+
connection = std::make_unique<DelayedConnection<T>>(this->name() + "_delayed_connection_" + std::to_string(index),
74+
this->container(), properties.delay_);
7775
}
7876
if (properties.type_ == ConnectionType::Physical) {
79-
connection = std::make_unique<PhysicalConnection<T>>(this->name() + "_physical_connection_" +
80-
std::to_string(index), // NOLINT
81-
this->container(), // NOLINT
82-
properties.delay_); // NOLINT
77+
connection = std::make_unique<PhysicalConnection<T>>(this->name() + "_physical_connection_" + std::to_string(index),
78+
this->container(), properties.delay_);
8379
}
8480
if (properties.type_ == ConnectionType::Enclaved) {
8581
connection = // NOLINT
86-
std::make_unique<EnclaveConnection<T>>(this->name() + "_enclave_connection_" + std::to_string(index),
87-
enclave); // NOLINT
82+
std::make_unique<EnclaveConnection<T>>(this->name() + "_enclave_connection_" + std::to_string(index), enclave);
8883
}
8984
if (properties.type_ == ConnectionType::DelayedEnclaved) {
9085
connection = // NOLINT
91-
std::make_unique<DelayedEnclaveConnection<T>>(this->name() + "_delayed_enclave_connection_" +
92-
std::to_string(index), // NOLINT
93-
enclave, // NOLINT
94-
properties.delay_); // NOLINT
86+
std::make_unique<DelayedEnclaveConnection<T>>(
87+
this->name() + "_delayed_enclave_connection_" + std::to_string(index), enclave, properties.delay_);
9588
}
9689
if (properties.type_ == ConnectionType::PhysicalEnclaved) {
97-
connection = std::make_unique<PhysicalEnclaveConnection<T>>( // NOLINT
98-
this->name() + "_physical_enclave_connection_" + std::to_string(index), enclave); // NOLINT
90+
connection = std::make_unique<PhysicalEnclaveConnection<T>>(
91+
this->name() + "_physical_enclave_connection_" + std::to_string(index), enclave);
9992
}
10093

10194
// if the connection here is null we have a vaulty enum value

lib/port.cc

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -92,34 +92,29 @@ void Port<void>::instantiate_connection_to(const ConnectionProperties& propertie
9292
auto index = this->container()->number_of_connections();
9393

9494
if (properties.type_ == ConnectionType::Delayed) {
95-
connection =
96-
std::make_unique<DelayedConnection<void>>(this->name() + "_delayed_connection_" + std::to_string(index),
97-
this->container(), // NOLINT
98-
properties.delay_); // NOLINT
95+
connection = std::make_unique<DelayedConnection<void>>(
96+
this->name() + "_delayed_connection_" + std::to_string(index), this->container(), properties.delay_);
9997
}
10098
if (properties.type_ == ConnectionType::Physical) {
101-
connection =
102-
std::make_unique<PhysicalConnection<void>>(this->name() + "_physical_connection_" + std::to_string(index),
103-
this->container(), // NOLINT
104-
properties.delay_); // NOLINT
99+
connection = std::make_unique<PhysicalConnection<void>>(
100+
this->name() + "_physical_connection_" + std::to_string(index), this->container(), properties.delay_);
105101
}
106102
if (properties.type_ == ConnectionType::Enclaved) {
107103
connection = std::make_unique<EnclaveConnection<void>>(
108-
this->name() + "_enclave_connection_" + std::to_string(index), enclave); // NOLINT
104+
this->name() + "_enclave_connection_" + std::to_string(index), enclave);
109105
}
110106
if (properties.type_ == ConnectionType::DelayedEnclaved) {
111107
connection = std::make_unique<DelayedEnclaveConnection<void>>(
112-
this->name() + "_delayed_enclave_connection_" + std::to_string(index), enclave, // NOLINT
113-
properties.delay_); // NOLINT
108+
this->name() + "_delayed_enclave_connection_" + std::to_string(index), enclave, properties.delay_);
114109
}
115110
if (properties.type_ == ConnectionType::PhysicalEnclaved) {
116111
connection = std::make_unique<PhysicalEnclaveConnection<void>>(
117-
this->name() + "_physical_enclave_connection_" + std::to_string(index), enclave); // NOLINT
112+
this->name() + "_physical_enclave_connection_" + std::to_string(index), enclave);
118113
}
119114

120115
// if the connection here is null we have a vaulty enum value
121116
reactor_assert(connection != nullptr);
122-
connection->bind_downstream_ports(downstream); // NOLINT Pointer is not null
117+
connection->bind_downstream_ports(downstream);
123118
connection->bind_upstream_port(this);
124119
this->register_set_callback(connection->upstream_set_callback());
125120
this->container()->register_connection(std::move(connection));

0 commit comments

Comments
 (0)