Skip to content
This repository was archived by the owner on Nov 28, 2025. It is now read-only.

Commit 8a76016

Browse files
authored
Merge pull request #124 from stack-of-tasks/pre-commit-ci-update-config
[pre-commit.ci] pre-commit autoupdate
2 parents 6f64ede + 80d0ffd commit 8a76016

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

67 files changed

+1036
-1040
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ ci:
22
autoupdate_branch: 'devel'
33
repos:
44
- repo: https://github.com/pre-commit/mirrors-clang-format
5-
rev: v20.1.8
5+
rev: v21.1.2
66
hooks:
77
- id: clang-format
88
args: [--style=Google]

include/dynamic-graph/command-bind.h

Lines changed: 215 additions & 218 deletions
Large diffs are not rendered by default.

include/dynamic-graph/command-direct-getter.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,24 +30,24 @@ class DirectGetter : public Command {
3030
typedef T (E::*GetterMethod)() const;
3131

3232
/// Constructor
33-
DirectGetter(E &entity, T *ptr, const std::string &docString)
33+
DirectGetter(E& entity, T* ptr, const std::string& docString)
3434
: Command(entity, std::vector<Value::Type>(), docString), T_ptr(ptr) {}
3535

3636
protected:
3737
virtual Value doExecute() { return Value(*T_ptr); }
3838

3939
private:
40-
T *T_ptr;
40+
T* T_ptr;
4141
};
4242

4343
template <class E, typename T>
44-
DirectGetter<E, T> *makeDirectGetter(E &entity, T *ptr,
45-
const std::string &docString) {
44+
DirectGetter<E, T>* makeDirectGetter(E& entity, T* ptr,
45+
const std::string& docString) {
4646
return new DirectGetter<E, T>(entity, ptr, docString);
4747
}
4848

49-
inline std::string docDirectGetter(const std::string &name,
50-
const std::string &type) {
49+
inline std::string docDirectGetter(const std::string& name,
50+
const std::string& type) {
5151
return std::string("\nGet the ") + name + ".\n\nNo input.\nReturn an " +
5252
type + ".\n\n";
5353
}

include/dynamic-graph/command-direct-setter.h

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,31 +26,31 @@ namespace command {
2626
template <class E, typename T>
2727
class DirectSetter : public Command {
2828
public:
29-
DirectSetter(E &entity, T *ptr, const std::string &docString)
29+
DirectSetter(E& entity, T* ptr, const std::string& docString)
3030
: Command(entity, boost::assign::list_of(ValueHelper<T>::TypeID),
3131
docString),
3232
T_ptr(ptr) {}
3333

3434
protected:
3535
virtual Value doExecute() {
36-
const std::vector<Value> &values = getParameterValues();
36+
const std::vector<Value>& values = getParameterValues();
3737
T val = values[0].value();
3838
(*T_ptr) = val;
3939
return Value(); // void
4040
}
4141

4242
private:
43-
T *T_ptr;
43+
T* T_ptr;
4444
};
4545

4646
template <class E, typename T>
47-
DirectSetter<E, T> *makeDirectSetter(E &entity, T *ptr,
48-
const std::string &docString) {
47+
DirectSetter<E, T>* makeDirectSetter(E& entity, T* ptr,
48+
const std::string& docString) {
4949
return new DirectSetter<E, T>(entity, ptr, docString);
5050
}
5151

52-
inline std::string docDirectSetter(const std::string &name,
53-
const std::string &type) {
52+
inline std::string docDirectSetter(const std::string& name,
53+
const std::string& type) {
5454
return std::string("\nSet the ") + name + ".\n\nInput:\n - a " + type +
5555
".\nVoid return.\n\n";
5656
}

include/dynamic-graph/command-getter.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ class Getter : public Command {
4747
/// Pointer to method that sets parameter of type T
4848
typedef T (E::*GetterMethod)() const;
4949
/// Constructor
50-
Getter(E &entity, GetterMethod getterMethod, const std::string &docString);
50+
Getter(E& entity, GetterMethod getterMethod, const std::string& docString);
5151

5252
protected:
5353
virtual Value doExecute();

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,14 @@ class Entity;
1616
namespace command {
1717

1818
template <class E, typename T>
19-
Getter<E, T>::Getter(E &entity, GetterMethod getterMethod,
20-
const std::string &docstring)
19+
Getter<E, T>::Getter(E& entity, GetterMethod getterMethod,
20+
const std::string& docstring)
2121
: Command(entity, std::vector<Value::Type>(), docstring),
2222
getterMethod_(getterMethod) {}
2323

2424
template <class E, typename T>
2525
Value Getter<E, T>::doExecute() {
26-
E &entity = static_cast<E &>(owner());
26+
E& entity = static_cast<E&>(owner());
2727
T value = (entity.*getterMethod_)();
2828
return Value(value);
2929
}

include/dynamic-graph/command-setter.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,9 @@ template <class E, typename T>
4545
class Setter : public Command {
4646
public:
4747
/// Pointer to method that sets parameter of type T
48-
typedef void (E::*SetterMethod)(const T &);
48+
typedef void (E::*SetterMethod)(const T&);
4949
/// Constructor
50-
Setter(E &entity, SetterMethod setterMethod, const std::string &docString);
50+
Setter(E& entity, SetterMethod setterMethod, const std::string& docString);
5151

5252
protected:
5353
virtual Value doExecute();

0 commit comments

Comments
 (0)