mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-26 14:05:51 +00:00
Format first-party source according to .clang-format
This commit is contained in:
committed by
manojsdoshi
parent
65dfc5d19e
commit
50760c6935
@@ -36,16 +36,16 @@ char const* const versionString = "1.6.0-b2"
|
||||
// clang-format on
|
||||
|
||||
#if defined(DEBUG) || defined(SANITIZER)
|
||||
"+"
|
||||
"+"
|
||||
#ifdef DEBUG
|
||||
"DEBUG"
|
||||
"DEBUG"
|
||||
#ifdef SANITIZER
|
||||
"."
|
||||
"."
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifdef SANITIZER
|
||||
BOOST_PP_STRINGIZE(SANITIZER)
|
||||
BOOST_PP_STRINGIZE(SANITIZER)
|
||||
#endif
|
||||
#endif
|
||||
|
||||
@@ -57,25 +57,25 @@ char const* const versionString = "1.6.0-b2"
|
||||
//
|
||||
|
||||
std::string const&
|
||||
getVersionString ()
|
||||
getVersionString()
|
||||
{
|
||||
static std::string const value = [] {
|
||||
std::string const s = versionString;
|
||||
beast::SemanticVersion v;
|
||||
if (!v.parse (s) || v.print () != s)
|
||||
LogicError (s + ": Bad server version string");
|
||||
if (!v.parse(s) || v.print() != s)
|
||||
LogicError(s + ": Bad server version string");
|
||||
return s;
|
||||
}();
|
||||
return value;
|
||||
}
|
||||
|
||||
std::string const& getFullVersionString ()
|
||||
std::string const&
|
||||
getFullVersionString()
|
||||
{
|
||||
static std::string const value =
|
||||
"rippled-" + getVersionString();
|
||||
static std::string const value = "rippled-" + getVersionString();
|
||||
return value;
|
||||
}
|
||||
|
||||
} // BuildInfo
|
||||
} // namespace BuildInfo
|
||||
|
||||
} // ripple
|
||||
} // namespace ripple
|
||||
|
||||
Reference in New Issue
Block a user