Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 6038b4c

Browse files
author
Davide Faconti
committedOct 17, 2018
run clangformat
1 parent d4aa3d1 commit 6038b4c

File tree

82 files changed

+1603
-1609
lines changed

Some content is hidden

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

82 files changed

+1603
-1609
lines changed
 

‎.clang-format

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ BreakBeforeBinaryOperators: false
1515
BreakBeforeTernaryOperators: false
1616
BreakConstructorInitializersBeforeComma: true
1717
BinPackParameters: true
18-
ColumnLimit: 120
18+
ColumnLimit: 100
1919
ConstructorInitializerAllOnOneLineOrOnePerLine: true
2020
DerivePointerBinding: false
2121
PointerBindsToType: true

‎examples/broken_sequence.cpp

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
using namespace BT;
66

7-
87
NodeStatus SayHello()
98
{
109
printf("hello\n");
@@ -14,8 +13,9 @@ NodeStatus SayHello()
1413
class ActionTestNode : public ActionNode
1514
{
1615
public:
17-
ActionTestNode(const std::string& name): ActionNode(name)
18-
{ }
16+
ActionTestNode(const std::string& name) : ActionNode(name)
17+
{
18+
}
1919

2020
NodeStatus tick() override
2121
{
@@ -35,7 +35,6 @@ class ActionTestNode : public ActionNode
3535
setStatus(NodeStatus::IDLE);
3636
}
3737

38-
3938
private:
4039
int time_;
4140
std::atomic_bool stop_loop_;
@@ -44,7 +43,7 @@ class ActionTestNode : public ActionNode
4443
int main()
4544
{
4645
BT::SequenceNode root("root");
47-
BT::SimpleActionNode action1("say_hello", std::bind(SayHello) );
46+
BT::SimpleActionNode action1("say_hello", std::bind(SayHello));
4847
ActionTestNode action2("async_action");
4948

5049
root.addChild(&action1);
@@ -54,16 +53,14 @@ int main()
5453

5554
NodeStatus status = NodeStatus::RUNNING;
5655

57-
while( status == NodeStatus::RUNNING)
56+
while (status == NodeStatus::RUNNING)
5857
{
5958
status = root.executeTick();
6059

61-
std::cout << count++ << " : " <<
62-
root.status() << " / " <<
63-
action1.status() << " / " <<
64-
action2.status() << std::endl;
60+
std::cout << count++ << " : " << root.status() << " / " << action1.status() << " / "
61+
<< action2.status() << std::endl;
6562

66-
std::this_thread::sleep_for( std::chrono::milliseconds(100));
63+
std::this_thread::sleep_for(std::chrono::milliseconds(100));
6764
}
6865

6966
haltAllActions(&root);
@@ -87,6 +84,3 @@ hello
8784
5 : SUCCESS / IDLE / IDLE
8885
8986
*/
90-
91-
92-

0 commit comments

Comments
 (0)
Please sign in to comment.