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.
Paths
| Differential D142824
[lldb][NFC] Use move instead of copy ClosedPublic Authored by ccotter on Jan 28 2023, 5:54 PM.
Details
Summary For functions that accept an rvalue reference type These were found when implementing CppCoreGuideline F.18 in
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Jan 31 2023, 5:32 PM Comment Actions Thanks! I don't have push access, so if you're good with this, could you please land this for me? Comment Actions
Sure, could you let me know which email and name you'd like me to use in the commit? Closed by commit rG6953dc95a976: [lldb][NFC] Use move instead of copy (authored by ccotter, committed by Michael137). · Explain WhyFeb 1 2023, 7:52 AM This revision was automatically updated to reflect the committed changes. ccotter mentioned this in D141569: [clang-tidy] Implement CppCoreGuideline F.18.Feb 16 2023, 8:26 PM
Revision Contents
Diff 493946 lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerPlatform.cpp
lldb/source/Plugins/TraceExporter/common/TraceHTR.cpp
lldb/source/Target/Process.cpp
|