Skip to content

Conversation

@leekillough
Copy link
Contributor

@leekillough leekillough commented Dec 31, 2025

This is less important than #1518, and should only be merged after it.

This gets rid of warnings generated by scripts/clang-tidy.sh --checks performance-inefficient-string-concatenation.

clang-tidy can detect, but not auto-fix these inefficient string concatenations. I did it by hand, to get rid of the warnings. It is best to append (+=) to a std::string variable and then std::move() it, than it is to create a large string concatenation expression, because it does not need to allocate and deallocate memory for each temporary string expression, and it only needs to append to the same string variable repeatedly.

@github-actions github-actions bot added AT: WIP Mark PR as a Work in Progress (No Autotesting Performed) AT: CLANG-FORMAT PASS and removed AT: WIP Mark PR as a Work in Progress (No Autotesting Performed) labels Dec 31, 2025
@github-actions
Copy link

CLANG-FORMAT TEST - PASSED

@sst-autotester
Copy link
Contributor

Status Flag 'Pre-Test Inspection' - - This Pull Request Requires Inspection... The code must be inspected by a member of the Team before Testing/Merging
NO INSPECTION HAS BEEN PERFORMED ON THIS PULL REQUEST! - This PR must be inspected by setting label 'AT: PRE-TEST INSPECTED'.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants