[C++11] Avoid implicit conversion of ArrayRef to std::vector and use move semantics where appropriate.
llvm-svn: 203477
This commit is contained in:
@@ -303,7 +303,8 @@ FixedCompilationDatabase(Twine Directory, ArrayRef<std::string> CommandLine) {
|
||||
std::vector<std::string> ToolCommandLine(1, "clang-tool");
|
||||
ToolCommandLine.insert(ToolCommandLine.end(),
|
||||
CommandLine.begin(), CommandLine.end());
|
||||
CompileCommands.push_back(CompileCommand(Directory, ToolCommandLine));
|
||||
CompileCommands.push_back(
|
||||
CompileCommand(Directory, std::move(ToolCommandLine)));
|
||||
}
|
||||
|
||||
std::vector<CompileCommand>
|
||||
|
||||
Reference in New Issue
Block a user