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/bson/bsonelement.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/bson/bsonelement.cpp')
-rw-r--r-- | src/mongo/bson/bsonelement.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/mongo/bson/bsonelement.cpp b/src/mongo/bson/bsonelement.cpp index 4820437c359..7562b7ca408 100644 --- a/src/mongo/bson/bsonelement.cpp +++ b/src/mongo/bson/bsonelement.cpp @@ -599,8 +599,8 @@ StatusWith<long long> BSONElement::parseIntegerElementToLong() const { // NaN doubles are rejected. if (std::isnan(eDouble)) { return Status(ErrorCodes::FailedToParse, - str::stream() << "Expected an integer, but found NaN in: " - << toString(true, true)); + str::stream() + << "Expected an integer, but found NaN in: " << toString(true, true)); } // No integral doubles that are too large to be represented as a 64 bit signed integer. @@ -609,8 +609,8 @@ StatusWith<long long> BSONElement::parseIntegerElementToLong() const { if (eDouble >= kLongLongMaxPlusOneAsDouble || eDouble < std::numeric_limits<long long>::min()) { return Status(ErrorCodes::FailedToParse, - str::stream() << "Cannot represent as a 64-bit integer: " - << toString(true, true)); + str::stream() + << "Cannot represent as a 64-bit integer: " << toString(true, true)); } // This checks if elem is an integral double. @@ -625,8 +625,8 @@ StatusWith<long long> BSONElement::parseIntegerElementToLong() const { number = numberDecimal().toLongExact(&signalingFlags); if (signalingFlags != Decimal128::kNoFlag) { return Status(ErrorCodes::FailedToParse, - str::stream() << "Cannot represent as a 64-bit integer: " - << toString(true, true)); + str::stream() + << "Cannot represent as a 64-bit integer: " << toString(true, true)); } } else { number = numberLong(); @@ -697,7 +697,7 @@ BSONElement BSONElement::operator[](StringData field) const { } namespace { -NOINLINE_DECL void msgAssertedBadType[[noreturn]](int8_t type) { +NOINLINE_DECL void msgAssertedBadType [[noreturn]] (int8_t type) { msgasserted(10320, str::stream() << "BSONElement: bad type " << (int)type); } } // namespace |