mirror of
https://github.com/intel/llvm.git
synced 2026-01-20 01:58:44 +08:00
[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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user