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/platform | |
parent | 1e46b5049003f427047e723ea5fab15b5a9253ca (diff) | |
download | mongo-134a4083953270e8a11430395357fb70a29047ad.tar.gz |
SERVER-41772 Apply clang-format 7.0.1 to the codebase
Diffstat (limited to 'src/mongo/platform')
-rw-r--r-- | src/mongo/platform/atomic_proxy.h | 8 | ||||
-rw-r--r-- | src/mongo/platform/bits.h | 2 | ||||
-rw-r--r-- | src/mongo/platform/bits_test.cpp | 2 | ||||
-rw-r--r-- | src/mongo/platform/condition_variable_test.cpp | 2 | ||||
-rw-r--r-- | src/mongo/platform/decimal128_test.cpp | 6 | ||||
-rw-r--r-- | src/mongo/platform/mutex_test.cpp | 2 | ||||
-rw-r--r-- | src/mongo/platform/random_test.cpp | 2 | ||||
-rw-r--r-- | src/mongo/platform/shared_library_posix.cpp | 3 | ||||
-rw-r--r-- | src/mongo/platform/strcasestr.h | 2 |
9 files changed, 14 insertions, 15 deletions
diff --git a/src/mongo/platform/atomic_proxy.h b/src/mongo/platform/atomic_proxy.h index 70c367421ec..b65cb5fb232 100644 --- a/src/mongo/platform/atomic_proxy.h +++ b/src/mongo/platform/atomic_proxy.h @@ -40,9 +40,9 @@ namespace mongo { /** -* Provides a simple version of an atomic version of T -* that uses std::atomic<BaseWordT> as a backing type; -*/ + * Provides a simple version of an atomic version of T + * that uses std::atomic<BaseWordT> as a backing type; + */ template <typename T, typename BaseWordT> class AtomicProxy { MONGO_STATIC_ASSERT_MSG(sizeof(T) == sizeof(BaseWordT), @@ -87,4 +87,4 @@ private: }; using AtomicDouble = AtomicProxy<double, std::uint64_t>; -} +} // namespace mongo diff --git a/src/mongo/platform/bits.h b/src/mongo/platform/bits.h index 721e7be9c92..b12bda75b3e 100644 --- a/src/mongo/platform/bits.h +++ b/src/mongo/platform/bits.h @@ -93,4 +93,4 @@ int countTrailingZeros64(unsigned long long num) { #else #error "No bit-ops definitions for your platform" #endif -} +} // namespace mongo diff --git a/src/mongo/platform/bits_test.cpp b/src/mongo/platform/bits_test.cpp index bb8f014e051..f6234660682 100644 --- a/src/mongo/platform/bits_test.cpp +++ b/src/mongo/platform/bits_test.cpp @@ -54,4 +54,4 @@ TEST(BitsTest_CountZeros, EachBit) { ASSERT_EQUALS(countTrailingZeros64(x), i); } } -} +} // namespace mongo diff --git a/src/mongo/platform/condition_variable_test.cpp b/src/mongo/platform/condition_variable_test.cpp index cd12e037537..88e7a40c617 100644 --- a/src/mongo/platform/condition_variable_test.cpp +++ b/src/mongo/platform/condition_variable_test.cpp @@ -58,4 +58,4 @@ TEST(ConditionVariable, BasicSingleThread) { cv.notify_one(); worker.join(); } -} +} // namespace mongo diff --git a/src/mongo/platform/decimal128_test.cpp b/src/mongo/platform/decimal128_test.cpp index c865969b44c..835790ad5d7 100644 --- a/src/mongo/platform/decimal128_test.cpp +++ b/src/mongo/platform/decimal128_test.cpp @@ -1416,9 +1416,9 @@ TEST(Decimal128Test, TestDecimal128GetLargestNegativeExponentZero) { } /** -* Test data was generated using 64 bit versions of these functions, so we must test -* approximate results. -*/ + * Test data was generated using 64 bit versions of these functions, so we must test + * approximate results. + */ void assertDecimal128ApproxEqual(Decimal128 x, Decimal128 y) { ASSERT_TRUE(x.subtract(y).toAbs().isLess(Decimal128("0.00000005"))); diff --git a/src/mongo/platform/mutex_test.cpp b/src/mongo/platform/mutex_test.cpp index 6c6674aa197..d0230d40fa5 100644 --- a/src/mongo/platform/mutex_test.cpp +++ b/src/mongo/platform/mutex_test.cpp @@ -40,4 +40,4 @@ TEST(MongoMutexTest, BasicSingleThread) { ASSERT(m.try_lock()); m.unlock(); } -} +} // namespace mongo diff --git a/src/mongo/platform/random_test.cpp b/src/mongo/platform/random_test.cpp index f2d5353887e..ee82a89490f 100644 --- a/src/mongo/platform/random_test.cpp +++ b/src/mongo/platform/random_test.cpp @@ -219,4 +219,4 @@ TEST(RandomTest, Secure1) { ASSERT_NOT_EQUALS(a->nextInt64(), b->nextInt64()); } } -} +} // namespace mongo diff --git a/src/mongo/platform/shared_library_posix.cpp b/src/mongo/platform/shared_library_posix.cpp index a383efab94e..871bd697012 100644 --- a/src/mongo/platform/shared_library_posix.cpp +++ b/src/mongo/platform/shared_library_posix.cpp @@ -79,8 +79,7 @@ StatusWith<void*> SharedLibrary::getSymbol(StringData name) { if (error_msg != nullptr) { return StatusWith<void*>(ErrorCodes::InternalError, str::stream() << "dlsym failed for symbol " << name - << " with error message: " - << error_msg); + << " with error message: " << error_msg); } return StatusWith<void*>(symbol); diff --git a/src/mongo/platform/strcasestr.h b/src/mongo/platform/strcasestr.h index 1530520f1a2..6f9b42cb5a0 100644 --- a/src/mongo/platform/strcasestr.h +++ b/src/mongo/platform/strcasestr.h @@ -36,7 +36,7 @@ namespace pal { const char* strcasestr(const char* haystack, const char* needle); } using mongo::pal::strcasestr; -} +} // namespace mongo #else |