llvm-project
03d1f3d7 - [lldb][nfc] Fix missing move operations and constness of methods (#142052)

Commit
202 days ago
[lldb][nfc] Fix missing move operations and constness of methods (#142052) This PR adds the missing move operators for VariableList: this class is just a wrapper around a vector, so it can use the default move operations. Subsequent patches will want to return VariableLists from functions, so the move operation is required (the copy constructors are deleted). It also fixes constness for a method in DiagnosticManager returning its list of diagnostics. Previously, the method always returned a const list, even though the method was not const itself. Subsequent patches will make use of the ability to mutate the diagnostics.
Parents
Loading