mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-03 04:40:18 -05:00
clang-tidy: Enable performance-inefficient-string-concatenation
Enables the clang-tidy test performance-inefficient-string-concatenation and replaces all inefficient string concatenations with `cmStrCat`. Closes: #19555
This commit is contained in:
@@ -412,7 +412,7 @@ void cmExportInstallFileGenerator::SetImportLocationProperty(
|
||||
std::vector<std::string> objects;
|
||||
itgen->GetInstallObjectNames(config, objects);
|
||||
for (std::string& obj : objects) {
|
||||
obj = value + obj;
|
||||
obj = cmStrCat(value, obj);
|
||||
}
|
||||
|
||||
// Store the property.
|
||||
|
||||
Reference in New Issue
Block a user