[lldb] Replace default bodies of special member functions with = default;

Replace default bodies of special member functions with = default;

$ run-clang-tidy.py -header-filter='lldb' -checks='-*,modernize-use-equals-default' -fix ,

https://clang.llvm.org/extra/clang-tidy/checks/modernize-use-equals-default.html

Differential revision: https://reviews.llvm.org/D104041
This commit is contained in:
Jonas Devlieghere
2021-07-02 11:27:37 -07:00
parent 678211de6d
commit fd2433e139
264 changed files with 378 additions and 398 deletions

View File

@@ -21,9 +21,7 @@ using namespace lldb_private;
// I set the completer to "source file" which isn't quite right, but we can
// only usefully complete in the file name part of it so it should be good
// enough.
OptionValueFileColonLine::OptionValueFileColonLine()
{}
OptionValueFileColonLine::OptionValueFileColonLine() = default;
OptionValueFileColonLine::OptionValueFileColonLine(llvm::StringRef input)
: m_line_number(LLDB_INVALID_LINE_NUMBER),
@@ -91,8 +89,8 @@ Status OptionValueFileColonLine::SetValueFromString(llvm::StringRef value,
llvm::StringRef middle_piece;
std::tie(file_name, middle_piece) = left_of_last_piece.rsplit(':');
if (middle_piece.empty() || !llvm::to_integer(middle_piece,
m_line_number)) {
if (middle_piece.empty() ||
!llvm::to_integer(middle_piece, m_line_number)) {
// The middle piece was empty or not an integer, so there were only two
// legit pieces; our original division was right. Reassign the file
// name and pull out the line number: