mirror of
https://github.com/Kitware/CMake.git
synced 2026-07-11 09:07:46 +00:00
clang-tidy: fix performance-no-automatic-move warnings
This commit is contained in:
@@ -17,7 +17,6 @@ modernize-*,\
|
||||
-modernize-use-trailing-return-type,\
|
||||
-modernize-use-transparent-functors,\
|
||||
performance-*,\
|
||||
-performance-no-automatic-move,\
|
||||
-performance-trivially-destructible,\
|
||||
readability-*,\
|
||||
-readability-convert-member-functions-to-static,\
|
||||
|
||||
@@ -1675,7 +1675,7 @@ std::string cmCTestTestHandler::FindExecutable(
|
||||
// if everything else failed, check the users path, but only if a full path
|
||||
// wasn't specified
|
||||
if (fullPath.empty() && filepath.empty()) {
|
||||
std::string const path = cmSystemTools::FindProgram(filename.c_str());
|
||||
std::string path = cmSystemTools::FindProgram(filename.c_str());
|
||||
if (!path.empty()) {
|
||||
resultingConfig.clear();
|
||||
return path;
|
||||
|
||||
@@ -189,7 +189,7 @@ std::string MakeSourceFilePathAbsoluteIfNeeded(
|
||||
if (!needed) {
|
||||
return source_file_path;
|
||||
}
|
||||
const std::string absolute_file_path = cmSystemTools::CollapseFullPath(
|
||||
std::string absolute_file_path = cmSystemTools::CollapseFullPath(
|
||||
source_file_path, status.GetMakefile().GetCurrentSourceDirectory());
|
||||
return absolute_file_path;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user