[lldb][NFC] Use move instead of copy
authorChris Cotter <ccotter14@bloomberg.net>
Wed, 1 Feb 2023 15:50:23 +0000 (15:50 +0000)
committerMichael Buch <michaelbuch12@gmail.com>
Wed, 1 Feb 2023 15:51:24 +0000 (15:51 +0000)
commit6953dc95a9761768cad3c329ebac35927df126ab
tree3b8927f31d7a9d47e847dbc4d7bc5da9c4ded5ca
parentecb3cd0946a47c419efda7b92cd6f6fcc30b6be9
[lldb][NFC] Use move instead of copy

Summary: For functions that accept an rvalue reference type
parameter, use move to avoid copying the parameter.

These were found when implementing CppCoreGuideline F.18 in
clang-tidy.

Committed on behalf of ccotter (Chris Cotter)

Reviewers: Michael137

Differential Revision: https://reviews.llvm.org/D142824
lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerPlatform.cpp
lldb/source/Plugins/TraceExporter/common/TraceHTR.cpp
lldb/source/Target/Process.cpp