summaryrefslogtreecommitdiff
path: root/src/mongo/base/init.h
diff options
context:
space:
mode:
authorMark Benvenuto <mark.benvenuto@mongodb.com>2015-07-28 18:16:39 -0400
committerMark Benvenuto <mark.benvenuto@mongodb.com>2015-07-28 18:27:27 -0400
commitb66e993f1c742518d9b5e93b0d8a5f8255a4127c (patch)
tree55e6fed05333d2d37f34586726a342ed7f7dbc29 /src/mongo/base/init.h
parent314a22e93f283ab80e650618cbd3ed8babb8510f (diff)
downloadmongo-b66e993f1c742518d9b5e93b0d8a5f8255a4127c.tar.gz
SERVER-18579: Clang-Format - reformat code, no comment reflow
Diffstat (limited to 'src/mongo/base/init.h')
-rw-r--r--src/mongo/base/init.h23
1 files changed, 12 insertions, 11 deletions
diff --git a/src/mongo/base/init.h b/src/mongo/base/init.h
index 5bcc074ef70..2bae4441319 100644
--- a/src/mongo/base/init.h
+++ b/src/mongo/base/init.h
@@ -115,15 +115,15 @@
* A form that takes an existing function or that lets the programmer supply the name
* of the function to declare would be options.
*/
-#define MONGO_INITIALIZER_GENERAL(NAME, PREREQUISITES, DEPENDENTS) \
+#define MONGO_INITIALIZER_GENERAL(NAME, PREREQUISITES, DEPENDENTS) \
::mongo::Status _MONGO_INITIALIZER_FUNCTION_NAME(NAME)(::mongo::InitializerContext*); \
- namespace { \
- ::mongo::GlobalInitializerRegisterer _mongoInitializerRegisterer_##NAME( \
- #NAME, \
- _MONGO_INITIALIZER_FUNCTION_NAME(NAME), \
- MONGO_MAKE_STRING_VECTOR PREREQUISITES, \
- MONGO_MAKE_STRING_VECTOR DEPENDENTS); \
- } \
+ namespace { \
+ ::mongo::GlobalInitializerRegisterer _mongoInitializerRegisterer_##NAME( \
+ #NAME, \
+ _MONGO_INITIALIZER_FUNCTION_NAME(NAME), \
+ MONGO_MAKE_STRING_VECTOR PREREQUISITES, \
+ MONGO_MAKE_STRING_VECTOR DEPENDENTS); \
+ } \
::mongo::Status _MONGO_INITIALIZER_FUNCTION_NAME(NAME)
/**
@@ -133,9 +133,10 @@
* initialization steps into phases, such as "all global parameter declarations completed", "all
* global parameters initialized".
*/
-#define MONGO_INITIALIZER_GROUP(NAME, PREREQUISITES, DEPENDENTS) \
- MONGO_INITIALIZER_GENERAL(NAME, PREREQUISITES, DEPENDENTS)( \
- ::mongo::InitializerContext*) { return ::mongo::Status::OK(); }
+#define MONGO_INITIALIZER_GROUP(NAME, PREREQUISITES, DEPENDENTS) \
+ MONGO_INITIALIZER_GENERAL(NAME, PREREQUISITES, DEPENDENTS)(::mongo::InitializerContext*) { \
+ return ::mongo::Status::OK(); \
+ }
/**
* Macro to produce a name for a mongo initializer function for an initializer operation