Skip to content

Commit bb90c6b

Browse files
committed
miscellaneus
1 parent cbac2ce commit bb90c6b

7 files changed

Lines changed: 18 additions & 14 deletions

File tree

.github/dependabot.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "github-actions"
4+
directory: "/"
5+
schedule:
6+
interval: "weekly"

.github/workflows/pre-commit.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@ jobs:
1111
pre-commit:
1212
runs-on: ubuntu-latest
1313
steps:
14-
- uses: actions/checkout@v3
15-
- uses: actions/setup-python@v3
14+
- uses: actions/checkout@v4
15+
- uses: actions/setup-python@v5
1616
- uses: pre-commit/action@v3.0.1
1717

1818
clang-tidy:
1919
runs-on: ubuntu-latest
2020
steps:
21-
- uses: actions/checkout@v3
21+
- uses: actions/checkout@v4
2222

2323
- name: Install LLVM 21
2424
run: |

include/behaviortree_cpp/utils/simple_string.hpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,6 @@ class SimpleString
5252
{
5353
if(this != &other)
5454
{
55-
this->~SimpleString();
56-
_storage = {};
5755
std::swap(_storage, other._storage);
5856
}
5957
return *this;

run_clang_tidy.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ if ! command -v clangd-21 &> /dev/null; then
1414
echo " wget https://apt.llvm.org/llvm.sh"
1515
echo " chmod +x llvm.sh"
1616
echo " sudo ./llvm.sh 21"
17-
echo " sudo apt install clangd-21 clangd-tidy-21"
17+
echo " sudo apt install clangd-21 clang-tidy-21"
1818
exit 1
1919
fi
2020

@@ -59,7 +59,7 @@ for path in "${skip_list[@]}"; do
5959
done
6060
echo "-----------------------------------------------------------"
6161

62-
find $clang_tidy_paths \( -name '*.cpp' -o -name '*.hpp' -o -name '*.h' \) -not -name '*_WIN.cpp' "${skip_paths[@]}" -print0 \
62+
find "$ws_dir/src" "$ws_dir/include" \( -name '*.cpp' -o -name '*.hpp' -o -name '*.h' \) -not -name '*_WIN.cpp' "${skip_paths[@]}" -print0 \
6363
| xargs -0 -n 1 -P $(nproc) bash -c '
6464
set -o pipefail
6565
echo "$@"

src/basic_types.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,11 @@ std::string toStr(NodeStatus status, bool colored)
5252
case NodeStatus::SUCCESS:
5353
return "\x1b[32m"
5454
"SUCCESS"
55-
"\x1b[0m"; // RED
55+
"\x1b[0m"; // GREEN
5656
case NodeStatus::FAILURE:
5757
return "\x1b[31m"
5858
"FAILURE"
59-
"\x1b[0m"; // GREEN
59+
"\x1b[0m"; // RED
6060
case NodeStatus::RUNNING:
6161
return "\x1b[33m"
6262
"RUNNING"

src/controls/reactive_fallback.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ NodeStatus ReactiveFallback::tick()
5353
}
5454
if(running_child_ == -1)
5555
{
56-
running_child_ = int(index);
56+
running_child_ = static_cast<int>(index);
5757
}
5858
else if(throw_if_multiple_running && running_child_ != static_cast<int>(index))
5959
{

src/xml_parsing.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -690,11 +690,11 @@ TreeNode::Ptr XMLParser::PImpl::createNodeFromXML(const XMLElement* element,
690690
else
691691
{
692692
const auto& port_model = port_model_it->second;
693-
const bool is_blacbkboard = port_value.size() >= 3 &&
694-
port_value.front() == '{' &&
695-
port_value.back() == '}';
693+
const bool is_blackboard = port_value.size() >= 3 &&
694+
port_value.front() == '{' &&
695+
port_value.back() == '}';
696696
// let's test already if conversion is possible
697-
if(!is_blacbkboard && port_model.converter() && port_model.isStronglyTyped())
697+
if(!is_blackboard && port_model.converter() && port_model.isStronglyTyped())
698698
{
699699
// This may throw
700700
try

0 commit comments

Comments
 (0)