summaryrefslogtreecommitdiff
path: root/gr-blocks/lib
diff options
context:
space:
mode:
authorJohannes Demel <demel@ant.uni-bremen.de>2020-05-09 15:37:03 +0200
committerJosh Morman <mormjb@gmail.com>2020-06-04 10:05:48 -0400
commitec51aa7f405fa1ba0595598d837aadb99a0829b1 (patch)
tree1a3cc9444dd89d74abfb158ad05d65247cf856a1 /gr-blocks/lib
parent6f037812eda09459fbc0a2d9c9eaada16dc475b7 (diff)
msg_handler: Apply clang-format
Make sure, code is properly formatted everywhere.`
Diffstat (limited to 'gr-blocks/lib')
-rw-r--r--gr-blocks/lib/mute_impl.cc4
-rw-r--r--gr-blocks/lib/pdu_set_impl.cc3
-rw-r--r--gr-blocks/lib/random_pdu_impl.cc3
-rw-r--r--gr-blocks/lib/repeat_impl.cc3
4 files changed, 8 insertions, 5 deletions
diff --git a/gr-blocks/lib/mute_impl.cc b/gr-blocks/lib/mute_impl.cc
index c17573b0c2..003f33c46f 100644
--- a/gr-blocks/lib/mute_impl.cc
+++ b/gr-blocks/lib/mute_impl.cc
@@ -35,8 +35,8 @@ mute_impl<T>::mute_impl(bool mute)
d_mute(mute)
{
this->message_port_register_in(pmt::intern("set_mute"));
- this->set_msg_handler(
- pmt::intern("set_mute"), [this](pmt::pmt_t msg) { this->set_mute_pmt(msg); });
+ this->set_msg_handler(pmt::intern("set_mute"),
+ [this](pmt::pmt_t msg) { this->set_mute_pmt(msg); });
}
template <class T>
diff --git a/gr-blocks/lib/pdu_set_impl.cc b/gr-blocks/lib/pdu_set_impl.cc
index 337da584de..61bcef7169 100644
--- a/gr-blocks/lib/pdu_set_impl.cc
+++ b/gr-blocks/lib/pdu_set_impl.cc
@@ -31,7 +31,8 @@ pdu_set_impl::pdu_set_impl(pmt::pmt_t k, pmt::pmt_t v)
{
message_port_register_out(pdu::pdu_port_id());
message_port_register_in(pdu::pdu_port_id());
- set_msg_handler(pdu::pdu_port_id(), [this](pmt::pmt_t msg) { this->handle_msg(msg); });
+ set_msg_handler(pdu::pdu_port_id(),
+ [this](pmt::pmt_t msg) { this->handle_msg(msg); });
}
void pdu_set_impl::handle_msg(pmt::pmt_t pdu)
diff --git a/gr-blocks/lib/random_pdu_impl.cc b/gr-blocks/lib/random_pdu_impl.cc
index b0d4f8d7e0..2ee9b89759 100644
--- a/gr-blocks/lib/random_pdu_impl.cc
+++ b/gr-blocks/lib/random_pdu_impl.cc
@@ -38,7 +38,8 @@ random_pdu_impl::random_pdu_impl(int min_items,
{
message_port_register_out(pdu::pdu_port_id());
message_port_register_in(pmt::mp("generate"));
- set_msg_handler(pmt::mp("generate"), [this](pmt::pmt_t msg) { this->generate_pdu(msg); });
+ set_msg_handler(pmt::mp("generate"),
+ [this](pmt::pmt_t msg) { this->generate_pdu(msg); });
if (length_modulo < 1)
throw std::runtime_error("length_module must be >= 1");
if (max_items < length_modulo)
diff --git a/gr-blocks/lib/repeat_impl.cc b/gr-blocks/lib/repeat_impl.cc
index 539b9d4b58..3717290687 100644
--- a/gr-blocks/lib/repeat_impl.cc
+++ b/gr-blocks/lib/repeat_impl.cc
@@ -32,7 +32,8 @@ repeat_impl::repeat_impl(size_t itemsize, int interp)
d_interp(interp)
{
message_port_register_in(pmt::mp("interpolation"));
- set_msg_handler(pmt::mp("interpolation"), [this](pmt::pmt_t msg) { this->msg_set_interpolation(msg); });
+ set_msg_handler(pmt::mp("interpolation"),
+ [this](pmt::pmt_t msg) { this->msg_set_interpolation(msg); });
}
void repeat_impl::msg_set_interpolation(pmt::pmt_t msg)