summaryrefslogtreecommitdiff
path: root/src/mongo/stdx
diff options
context:
space:
mode:
authorclang-format-7.0.1 <adam.martin@10gen.com>2019-07-26 18:20:35 -0400
committerADAM David Alan Martin <adam.martin@10gen.com>2019-07-27 11:02:23 -0400
commit134a4083953270e8a11430395357fb70a29047ad (patch)
treedd428e1230e31d92b20b393dfdc17ffe7fa79cb6 /src/mongo/stdx
parent1e46b5049003f427047e723ea5fab15b5a9253ca (diff)
downloadmongo-134a4083953270e8a11430395357fb70a29047ad.tar.gz
SERVER-41772 Apply clang-format 7.0.1 to the codebase
Diffstat (limited to 'src/mongo/stdx')
-rw-r--r--src/mongo/stdx/mutex.h2
-rw-r--r--src/mongo/stdx/thread.h8
-rw-r--r--src/mongo/stdx/variant.h12
3 files changed, 11 insertions, 11 deletions
diff --git a/src/mongo/stdx/mutex.h b/src/mongo/stdx/mutex.h
index b75a5b56988..033a5f9b080 100644
--- a/src/mongo/stdx/mutex.h
+++ b/src/mongo/stdx/mutex.h
@@ -35,8 +35,8 @@ namespace mongo {
namespace stdx {
using ::std::mutex; // NOLINT
-using ::std::timed_mutex; // NOLINT
using ::std::recursive_mutex; // NOLINT
+using ::std::timed_mutex; // NOLINT
using ::std::adopt_lock_t; // NOLINT
using ::std::defer_lock_t; // NOLINT
diff --git a/src/mongo/stdx/thread.h b/src/mongo/stdx/thread.h
index 278b7678e72..2968e9dcae2 100644
--- a/src/mongo/stdx/thread.h
+++ b/src/mongo/stdx/thread.h
@@ -57,8 +57,8 @@ namespace stdx {
*/
class thread : private ::std::thread { // NOLINT
public:
- using ::std::thread::native_handle_type; // NOLINT
using ::std::thread::id; // NOLINT
+ using ::std::thread::native_handle_type; // NOLINT
thread() noexcept : ::std::thread::thread() {} // NOLINT
@@ -91,13 +91,13 @@ public:
::std::thread::operator=(static_cast<::std::thread&&>(std::move(other)))); // NOLINT
};
- using ::std::thread::joinable; // NOLINT
using ::std::thread::get_id; // NOLINT
- using ::std::thread::native_handle; // NOLINT
using ::std::thread::hardware_concurrency; // NOLINT
+ using ::std::thread::joinable; // NOLINT
+ using ::std::thread::native_handle; // NOLINT
- using ::std::thread::join; // NOLINT
using ::std::thread::detach; // NOLINT
+ using ::std::thread::join; // NOLINT
void swap(thread& other) noexcept {
::std::thread::swap(static_cast<::std::thread&>(other)); // NOLINT
diff --git a/src/mongo/stdx/variant.h b/src/mongo/stdx/variant.h
index c2d396a7c27..c6c903d6402 100644
--- a/src/mongo/stdx/variant.h
+++ b/src/mongo/stdx/variant.h
@@ -33,16 +33,16 @@
namespace mongo::stdx {
-using ::mpark::variant;
-using ::mpark::visit;
-using ::mpark::holds_alternative;
using ::mpark::get;
using ::mpark::get_if;
+using ::mpark::holds_alternative;
+using ::mpark::variant;
+using ::mpark::visit;
-using ::mpark::variant_size;
-using ::mpark::variant_size_v;
using ::mpark::variant_alternative;
using ::mpark::variant_alternative_t;
+using ::mpark::variant_size;
+using ::mpark::variant_size_v;
constexpr auto variant_npos = ::mpark::variant_npos;
@@ -53,7 +53,7 @@ using ::mpark::operator>;
using ::mpark::operator<=;
using ::mpark::operator>=;
-using ::mpark::monostate;
using ::mpark::bad_variant_access;
+using ::mpark::monostate;
} // namespace mongo::stdx