Skip to content

Commit f10ea38

Browse files
author
Gaël Écorchard
committedMar 18, 2025·
Statisfy clang-format
1 parent fecfc32 commit f10ea38

File tree

4 files changed

+11
-8
lines changed

4 files changed

+11
-8
lines changed
 

‎include/behaviortree_cpp/bt_parser.h

+3-2
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,10 @@ class Parser
3939
Parser& operator=(Parser&& other) = default;
4040

4141
virtual std::string loadFromFile(const std::filesystem::path& filename,
42-
bool add_includes = true) = 0;
42+
bool add_includes = true) = 0;
4343

44-
virtual std::string loadFromText(const std::string& xml_text, bool add_includes = true) = 0;
44+
virtual std::string loadFromText(const std::string& xml_text,
45+
bool add_includes = true) = 0;
4546

4647
virtual std::vector<std::string> registeredBehaviorTrees() const = 0;
4748

‎include/behaviortree_cpp/xml_parsing.h

+3-2
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,10 @@ class XMLParser : public Parser
2828
XMLParser& operator=(XMLParser&& other) noexcept;
2929

3030
std::string loadFromFile(const std::filesystem::path& filename,
31-
bool add_includes = true) override;
31+
bool add_includes = true) override;
3232

33-
std::string loadFromText(const std::string& xml_text, bool add_includes = true) override;
33+
std::string loadFromText(const std::string& xml_text,
34+
bool add_includes = true) override;
3435

3536
[[nodiscard]] std::vector<std::string> registeredBehaviorTrees() const override;
3637

‎src/bt_factory.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -257,8 +257,8 @@ void BehaviorTreeFactory::registerFromROSPlugins()
257257
}
258258
#endif
259259

260-
std::string BehaviorTreeFactory::registerBehaviorTreeFromFile(
261-
const std::filesystem::path& filename)
260+
std::string
261+
BehaviorTreeFactory::registerBehaviorTreeFromFile(const std::filesystem::path& filename)
262262
{
263263
return _p->parser->loadFromFile(filename);
264264
}

‎src/xml_parsing.cpp

+3-2
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,8 @@ XMLParser& XMLParser::operator=(XMLParser&& other) noexcept
156156
XMLParser::~XMLParser()
157157
{}
158158

159-
std::string XMLParser::loadFromFile(const std::filesystem::path& filepath, bool add_includes)
159+
std::string XMLParser::loadFromFile(const std::filesystem::path& filepath,
160+
bool add_includes)
160161
{
161162
_p->opened_documents.emplace_back(new XMLDocument());
162163

@@ -351,7 +352,7 @@ std::string XMLParser::PImpl::loadDocImpl(XMLDocument* doc, bool add_includes)
351352

352353
// Get the name of the tree to run (either explicit or single tree).
353354
std::string main_tree_to_execute;
354-
if (const auto main_tree_attribute = xml_root->Attribute("main_tree_to_execute"))
355+
if(const auto main_tree_attribute = xml_root->Attribute("main_tree_to_execute"))
355356
{
356357
main_tree_to_execute = main_tree_attribute;
357358
}

0 commit comments

Comments
 (0)