PointCloudLibrary / PointCloudLibrary/pcl

[Clang-Tidy] Inefficient string concatenation

Open
#3,233 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

kind: todo
Dominant language
C++
Stars
11.1k
Forks
4.7k
Avg merge
4d 10h
Merged PRs (30d)
6

Description

Just a ticket as notification, so I can link information to clang-tidy ticket:

Current issues I won't fix, because they are not this much important and imho decrease readability:

string concatenation results in allocation of unnecessary temporary strings; consider using 'operator+=' or 'string::append()' instead.

Affected lines:

https://github.com/PointCloudLibrary/pcl/blob/816391762918f3a026b1822fe42c74bb83129eb4/apps/src/face_detection/filesystem_face_detection.cpp#L231

https://github.com/PointCloudLibrary/pcl/blob/816391762918f3a026b1822fe42c74bb83129eb4/recognition/src/face_detection/face_detector_data_provider.cpp#L83

https://github.com/PointCloudLibrary/pcl/blob/816391762918f3a026b1822fe42c74bb83129eb4/recognition/src/face_detection/face_detector_data_provider.cpp#L91

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Review the three affected locations: apps/src/face_detection/filesystem_face_detection.cpp:231 and recognition/src/face_detection/face_detector_data_provider.cpp:83 and :91. Start by checking the referenced clang-tidy warning and whether these concatenations should remain for readability; done would require a decided resolution for all listed lines.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
computer-vision, tooling
Issue type
Refactor
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.