Skip to content

Commit fe0efa7

Browse files
committed
test(ci): add deliberate clang-tidy violation to test PR comments workflow
This commit will be reverted once the clang-tidy-pr-comments workflow is confirmed working. Signed-off-by: Mete Fatih Cırıt <mfc@autoware.org>
1 parent 0b97002 commit fe0efa7

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

simulator/autoware_vehicle_door_simulator/src/dummy_doors.cpp

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
#include "dummy_doors.hpp"
1616

1717
#include <memory>
18+
#include <string>
19+
#include <utility>
1820

1921
namespace autoware::vehicle_door_simulator
2022
{
@@ -114,6 +116,14 @@ void DummyDoors::on_timer()
114116

115117
} // namespace autoware::vehicle_door_simulator
116118

119+
// TODO(xmfcx): remove this function after clang-tidy PR comments workflow is confirmed working
120+
std::string trigger_clang_tidy_test()
121+
{
122+
std::string value = "test";
123+
auto moved = std::move(value);
124+
return value; // bugprone-use-after-move
125+
}
126+
117127
int main(int argc, char ** argv)
118128
{
119129
rclcpp::init(argc, argv);

0 commit comments

Comments
 (0)