diff options
author | clang-format-7.0.1 <adam.martin@10gen.com> | 2019-07-26 18:20:35 -0400 |
---|---|---|
committer | ADAM David Alan Martin <adam.martin@10gen.com> | 2019-07-27 11:02:23 -0400 |
commit | 134a4083953270e8a11430395357fb70a29047ad (patch) | |
tree | dd428e1230e31d92b20b393dfdc17ffe7fa79cb6 /src/mongo/util/procparser.cpp | |
parent | 1e46b5049003f427047e723ea5fab15b5a9253ca (diff) | |
download | mongo-134a4083953270e8a11430395357fb70a29047ad.tar.gz |
SERVER-41772 Apply clang-format 7.0.1 to the codebase
Diffstat (limited to 'src/mongo/util/procparser.cpp')
-rw-r--r-- | src/mongo/util/procparser.cpp | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/src/mongo/util/procparser.cpp b/src/mongo/util/procparser.cpp index 630e2888eee..78e1a244155 100644 --- a/src/mongo/util/procparser.cpp +++ b/src/mongo/util/procparser.cpp @@ -93,8 +93,8 @@ StatusWith<std::string> readFileAsString(StringData filename) { if (fd == -1) { int err = errno; return Status(ErrorCodes::FileOpenFailed, - str::stream() << "Failed to open file " << filename << " with error: " - << errnoWithDescription(err)); + str::stream() << "Failed to open file " << filename + << " with error: " << errnoWithDescription(err)); } auto scopedGuard = makeGuard([fd] { close(fd); }); @@ -122,8 +122,8 @@ StatusWith<std::string> readFileAsString(StringData filename) { } return Status(ErrorCodes::FileStreamFailed, - str::stream() << "Failed to read file " << filename << " with error: " - << errnoWithDescription(err)); + str::stream() << "Failed to read file " << filename + << " with error: " << errnoWithDescription(err)); } break; @@ -432,11 +432,10 @@ Status parseProcNetstat(const std::vector<StringData>& keys, // Split the file by lines. uint32_t lineNum = 0; - for (string_split_iterator - lineIt = string_split_iterator( - data.begin(), - data.end(), - boost::token_finder([](char c) { return c == '\n'; }, boost::token_compress_on)); + for (string_split_iterator lineIt = string_split_iterator( + data.begin(), + data.end(), + boost::token_finder([](char c) { return c == '\n'; }, boost::token_compress_on)); lineIt != string_split_iterator(); ++lineIt, ++lineNum) { |