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

Kazu Hirata via llvm-commits llvm-commits at lists.llvm.org
Sun Apr 3 08:04:21 PDT 2022


Author: Kazu Hirata
Date: 2022-04-03T08:04:11-07:00
New Revision: c45d369cedaea8fc5c2aa3372e265990ca0e8710

URL: https://github.com/llvm/llvm-project/commit/c45d369cedaea8fc5c2aa3372e265990ca0e8710
DIFF: https://github.com/llvm/llvm-project/commit/c45d369cedaea8fc5c2aa3372e265990ca0e8710.diff

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

Added: 
    

Modified: 
    llvm/lib/Support/YAMLParser.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Support/YAMLParser.cpp b/llvm/lib/Support/YAMLParser.cpp
index 78130223507bf..578ce228079b2 100644
--- a/llvm/lib/Support/YAMLParser.cpp
+++ b/llvm/lib/Support/YAMLParser.cpp
@@ -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;
 


        


More information about the llvm-commits mailing list