summaryrefslogtreecommitdiff
path: root/src/mongo/util/version.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/util/version.h')
-rw-r--r--src/mongo/util/version.h54
1 files changed, 26 insertions, 28 deletions
diff --git a/src/mongo/util/version.h b/src/mongo/util/version.h
index d8eb8cb5bf0..ce967cc5424 100644
--- a/src/mongo/util/version.h
+++ b/src/mongo/util/version.h
@@ -34,41 +34,39 @@
#include "mongo/bson/bsonobj.h"
namespace mongo {
- struct BSONArray;
- class BSONObjBuilder;
+struct BSONArray;
+class BSONObjBuilder;
- // mongo version
- extern const char versionString[];
- extern const int versionNumber;
- std::string mongodVersion();
+// mongo version
+extern const char versionString[];
+extern const int versionNumber;
+std::string mongodVersion();
- // mongo git version
- const char* gitVersion();
- const char* distName();
- void printGitVersion();
- std::vector<std::string> compiledModules();
+// mongo git version
+const char* gitVersion();
+const char* distName();
+void printGitVersion();
+std::vector<std::string> compiledModules();
- // Checks whether another version is the same major version as us
- bool isSameMajorVersion(const char* version);
+// Checks whether another version is the same major version as us
+bool isSameMajorVersion(const char* version);
- // Get/print the version of OpenSSL that's used at runtime
- const std::string openSSLVersion(
- const std::string& prefix = "",
- const std::string& suffix = "");
- void printOpenSSLVersion();
+// Get/print the version of OpenSSL that's used at runtime
+const std::string openSSLVersion(const std::string& prefix = "", const std::string& suffix = "");
+void printOpenSSLVersion();
- // Append build info data to a BSONObjBuilder
- void appendBuildInfo(BSONObjBuilder& result);
+// Append build info data to a BSONObjBuilder
+void appendBuildInfo(BSONObjBuilder& result);
- void printTargetMinOS();
- void printAllocator();
- void show_warnings();
+void printTargetMinOS();
+void printAllocator();
+void show_warnings();
- extern const int kMongoVersionMajor;
- extern const int kMongoVersionMinor;
- extern const int kMongoVersionPatch;
- extern const int kMongoVersionExtra;
- extern const char kMongoVersionExtraStr[];
+extern const int kMongoVersionMajor;
+extern const int kMongoVersionMinor;
+extern const int kMongoVersionPatch;
+extern const int kMongoVersionExtra;
+extern const char kMongoVersionExtraStr[];
} // namespace mongo