Apply clang-tidy fixes for readability-redundant-member-init in YAMLParser.cpp (NFC)

This commit is contained in:
Kazu Hirata 2022-04-03 08:04:11 -07:00
parent ef19de52ed
commit c45d369ced
1 changed files with 2 additions and 2 deletions

View File

@ -1897,11 +1897,11 @@ bool Scanner::fetchMoreTokens() {
Stream::Stream(StringRef Input, SourceMgr &SM, bool ShowColors,
std::error_code *EC)
: scanner(new Scanner(Input, SM, ShowColors, EC)), CurrentDoc() {}
: scanner(new Scanner(Input, SM, ShowColors, EC)) {}
Stream::Stream(MemoryBufferRef InputBuffer, SourceMgr &SM, bool ShowColors,
std::error_code *EC)
: scanner(new Scanner(InputBuffer, SM, ShowColors, EC)), CurrentDoc() {}
: scanner(new Scanner(InputBuffer, SM, ShowColors, EC)) {}
Stream::~Stream() = default;