Skip to content

Commit 9c7d298

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 225f08e commit 9c7d298

File tree

6 files changed

+26
-25
lines changed

6 files changed

+26
-25
lines changed

include/dynamic-graph/command-setter.t.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ class Setter<E, unsigned long> : public Command {
106106

107107
template <class E>
108108
Setter<E, unsigned long>::Setter(E &entity, SetterMethod setterMethod,
109-
const std::string &docString)
109+
const std::string &docString)
110110
: Command(entity, boost::assign::list_of(Value::UNSIGNEDLONGINT),
111111
docString),
112112
setterMethod_(setterMethod) {}
@@ -175,7 +175,7 @@ class Setter<E, int64_t> : public Command {
175175

176176
template <class E>
177177
Setter<E, int64_t>::Setter(E &entity, SetterMethod setterMethod,
178-
const std::string &docString)
178+
const std::string &docString)
179179
: Command(entity, boost::assign::list_of(Value::LONGINT), docString),
180180
setterMethod_(setterMethod) {}
181181

include/dynamic-graph/signal-helper.h

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -41,16 +41,17 @@
4141
#define DECLARE_SIGNAL_OUT_FUNCTION(name, type) \
4242
type &SIGNAL_OUT_FUNCTION_NAME(name)(type &, sigtime_t)
4343

44-
#define DEFINE_SIGNAL_OUT_FUNCTION(name, type) \
45-
type &EntityClassName::SIGNAL_OUT_FUNCTION_NAME(name)(type & s, sigtime_t iter)
44+
#define DEFINE_SIGNAL_OUT_FUNCTION(name, type) \
45+
type &EntityClassName::SIGNAL_OUT_FUNCTION_NAME(name)(type & s, \
46+
sigtime_t iter)
4647

4748
#define SIGNAL_OUT_FUNCTION(name) name##SOUT_function
4849

49-
#define DECLARE_SIGNAL_OUT(name, type) \
50-
public: \
50+
#define DECLARE_SIGNAL_OUT(name, type) \
51+
public: \
5152
::dynamicgraph::SignalTimeDependent<type, sigtime_t> m_##name##SOUT; \
52-
\
53-
protected: \
53+
\
54+
protected: \
5455
type &SIGNAL_OUT_FUNCTION(name)(type &, sigtime_t)
5556

5657
#define CONSTRUCT_SIGNAL_OUT(name, type, dep) \
@@ -64,14 +65,15 @@
6465
#define DECLARE_SIGNAL_INNER_FUNCTION(name, type) \
6566
type &SIGNAL_INNER_FUNCTION_NAME(name)(type &, sigtime_t)
6667

67-
#define DEFINE_SIGNAL_INNER_FUNCTION(name, type) \
68-
type &EntityClassName::SIGNAL_INNER_FUNCTION_NAME(name)(type & s, sigtime_t iter)
68+
#define DEFINE_SIGNAL_INNER_FUNCTION(name, type) \
69+
type &EntityClassName::SIGNAL_INNER_FUNCTION_NAME(name)(type & s, \
70+
sigtime_t iter)
6971

70-
#define DECLARE_SIGNAL_INNER(name, type) \
71-
public: \
72+
#define DECLARE_SIGNAL_INNER(name, type) \
73+
public: \
7274
::dynamicgraph::SignalTimeDependent<type, sigtime_t> m_##name##SINNER; \
73-
\
74-
protected: \
75+
\
76+
protected: \
7577
DECLARE_SIGNAL_INNER_FUNCTION(name, type)
7678

7779
#define CONSTRUCT_SIGNAL_INNER(name, type, dep) \

include/dynamic-graph/signal-ptr.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ class SignalPtr : public virtual Signal<T, Time> {
4747

4848
public:
4949
/* --- PLUG-IN OPERATION --- */
50-
Signal<T, Time> *getPtr(); // throw
51-
const Signal<T, Time> *getPtr() const; // throw
50+
Signal<T, Time> *getPtr(); // throw
51+
const Signal<T, Time> *getPtr() const; // throw
5252
virtual void plug(SignalBase<Time> *ref);
5353

5454
virtual void unplug() { plug(NULL); }

src/command/value.cpp

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,7 @@ EitherType::~EitherType() {
2222

2323
EitherType::operator bool() const { return value_->boolValue(); }
2424
EitherType::operator uint32_t() const { return value_->unsignedValue(); }
25-
EitherType::operator uint64_t() const {
26-
return value_->unsignedlongintValue();
27-
}
25+
EitherType::operator uint64_t() const { return value_->unsignedlongintValue(); }
2826
EitherType::operator int32_t() const { return value_->intValue(); }
2927
EitherType::operator int64_t() const { return value_->longintValue(); }
3028
EitherType::operator float() const { return value_->floatValue(); }
@@ -90,8 +88,8 @@ Value::Value(const uint32_t &value)
9088
Value::Value(const uint64_t &value)
9189
: type_(UNSIGNEDLONGINT), value_(new uint64_t(value)) {}
9290
Value::Value(const int32_t &value) : type_(INT), value_(new int32_t(value)) {}
93-
Value::Value(const int64_t &value) : type_(LONGINT), value_(new int64_t(value))
94-
{}
91+
Value::Value(const int64_t &value)
92+
: type_(LONGINT), value_(new int64_t(value)) {}
9593
Value::Value(const float &value) : type_(FLOAT), value_(new float(value)) {}
9694
Value::Value(const double &value) : type_(DOUBLE), value_(new double(value)) {}
9795
Value::Value(const std::string &value)
@@ -360,8 +358,7 @@ const Value::Type ValueHelper<bool>::TypeID = Value::BOOL;
360358
template <>
361359
const Value::Type ValueHelper<uint32_t>::TypeID = Value::UNSIGNED;
362360
template <>
363-
const Value::Type ValueHelper<uint64_t>::TypeID =
364-
Value::UNSIGNEDLONGINT;
361+
const Value::Type ValueHelper<uint64_t>::TypeID = Value::UNSIGNEDLONGINT;
365362
template <>
366363
const Value::Type ValueHelper<int32_t>::TypeID = Value::INT;
367364
template <>

src/traces/tracer.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,8 @@ void Tracer::openFiles(const std::string &rootdir_,
160160
dgDEBUGOUT(15);
161161
}
162162

163-
void Tracer::openFile(const SignalBase<sigtime_t> &sig, const string &givenname) {
163+
void Tracer::openFile(const SignalBase<sigtime_t> &sig,
164+
const string &givenname) {
164165
dgDEBUGIN(15);
165166
string signame;
166167
if (givenname.length()) {

tests/debug-real-time-tracer.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,8 @@ BOOST_AUTO_TEST_CASE(test_tracer) {
8787
SignalBase<sigtime_t> &out_double_2 = entity.getSignal("out2double");
8888

8989
Signal<double, sigtime_t> &in_double =
90-
*(dynamic_cast<Signal<double, sigtime_t> *>(&entity.getSignal("in_double")));
90+
*(dynamic_cast<Signal<double, sigtime_t> *>(
91+
&entity.getSignal("in_double")));
9192

9293
in_double.setConstant(1.5);
9394
atracer.start();

0 commit comments

Comments
 (0)