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:
Sebastian Holtermann
2019-08-03 13:20:31 +02:00
parent 2327cc0e05
commit 18b0330b86
41 changed files with 150 additions and 155 deletions
+1 -1
View File
@@ -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.