mirror of
https://github.com/Kitware/CMake.git
synced 2026-03-03 05:08:47 -06: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:
@@ -94,7 +94,7 @@ void cmFileAPI::RemoveOldReplyFiles()
|
||||
std::vector<std::string> files = this->LoadDir(reply_dir);
|
||||
for (std::string const& f : files) {
|
||||
if (this->ReplyFiles.find(f) == this->ReplyFiles.end()) {
|
||||
std::string file = reply_dir + "/" + f;
|
||||
std::string file = cmStrCat(reply_dir, "/", f);
|
||||
cmSystemTools::RemoveFile(file);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user