mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-03 04:40:18 -05:00
clang-tidy: Use emplace
This commit is contained in:
committed by
Brad King
parent
2e5307a2a4
commit
ef61997b1b
@@ -377,7 +377,7 @@ void cmNinjaNormalTargetGenerator::WriteLinkRule(bool useResponseFile)
|
||||
cmEraseIf(linkCmds, cmNinjaRemoveNoOpCommands());
|
||||
|
||||
linkCmds.insert(linkCmds.begin(), "$PRE_LINK");
|
||||
linkCmds.push_back("$POST_BUILD");
|
||||
linkCmds.emplace_back("$POST_BUILD");
|
||||
std::string linkCmd =
|
||||
this->GetLocalGenerator()->BuildCommandLine(linkCmds);
|
||||
|
||||
@@ -405,7 +405,7 @@ void cmNinjaNormalTargetGenerator::WriteLinkRule(bool useResponseFile)
|
||||
std::vector<std::string> commandLines;
|
||||
commandLines.push_back(cmakeCommand +
|
||||
" -E cmake_symlink_executable $in $out");
|
||||
commandLines.push_back("$POST_BUILD");
|
||||
commandLines.emplace_back("$POST_BUILD");
|
||||
|
||||
this->GetGlobalGenerator()->AddRule(
|
||||
"CMAKE_SYMLINK_EXECUTABLE",
|
||||
@@ -423,7 +423,7 @@ void cmNinjaNormalTargetGenerator::WriteLinkRule(bool useResponseFile)
|
||||
std::vector<std::string> commandLines;
|
||||
commandLines.push_back(cmakeCommand +
|
||||
" -E cmake_symlink_library $in $SONAME $out");
|
||||
commandLines.push_back("$POST_BUILD");
|
||||
commandLines.emplace_back("$POST_BUILD");
|
||||
|
||||
this->GetGlobalGenerator()->AddRule(
|
||||
"CMAKE_SYMLINK_LIBRARY",
|
||||
|
||||
Reference in New Issue
Block a user