From: Mehdi Amini Date: Sun, 3 Apr 2022 23:59:34 +0000 (+0000) Subject: Apply clang-tidy fixes for modernize-use-default-member-init in PDLLServer.cpp (NFC) X-Git-Tag: upstream/15.0.7~10361 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=72e2b4e7a762b4768a068c25909f8bedca47112e;p=platform%2Fupstream%2Fllvm.git Apply clang-tidy fixes for modernize-use-default-member-init in PDLLServer.cpp (NFC) --- diff --git a/mlir/lib/Tools/mlir-pdll-lsp-server/PDLLServer.cpp b/mlir/lib/Tools/mlir-pdll-lsp-server/PDLLServer.cpp index 8ed0bc2..f588439 100644 --- a/mlir/lib/Tools/mlir-pdll-lsp-server/PDLLServer.cpp +++ b/mlir/lib/Tools/mlir-pdll-lsp-server/PDLLServer.cpp @@ -1060,7 +1060,7 @@ private: int64_t version; /// The number of lines in the file. - int64_t totalNumLines; + int64_t totalNumLines = 0; /// The chunks of this file. The order of these chunks is the order in which /// they appear in the text file. @@ -1072,7 +1072,7 @@ PDLTextFile::PDLTextFile(const lsp::URIForFile &uri, StringRef fileContents, int64_t version, const std::vector &extraDirs, std::vector &diagnostics) - : contents(fileContents.str()), version(version), totalNumLines(0) { + : contents(fileContents.str()), version(version) { // Split the file into separate PDL documents. // TODO: Find a way to share the split file marker with other tools. We don't // want to use `splitAndProcessBuffer` here, but we do want to make sure this