mdbx: reformat by clang-format 6.0 (cosmetic).

This commit is contained in:
Leo Yuriev
2018-06-18 21:29:12 +03:00
parent b0550b38b8
commit 9db090087e
12 changed files with 77 additions and 76 deletions

View File

@@ -32,10 +32,10 @@
#endif /* _MSC_VER (warnings) */
/* If you wish to build your application for a previous Windows platform,
* include WinSDKVer.h and set the _WIN32_WINNT macro to the platform you
* wish to support before including SDKDDKVer.h.
*
* TODO: #define _WIN32_WINNT WIN32_MUSTDIE */
* include WinSDKVer.h and set the _WIN32_WINNT macro to the platform you
* wish to support before including SDKDDKVer.h.
*
* TODO: #define _WIN32_WINNT WIN32_MUSTDIE */
#include <SDKDDKVer.h>
#endif /* WINDOWS */

View File

@@ -206,7 +206,7 @@ void local_suffix::pop() {
local_suffix::~local_suffix() { suffix.erase(trim_pos); }
} /* namespace log */
} // namespace logging
void log_extra(const char *msg, ...) {
if (logging::extra >= logging::level) {

View File

@@ -70,7 +70,7 @@ public:
~local_suffix();
};
} /* namespace log */
} // namespace logging
void __printf_args(1, 2) log_extra(const char *msg, ...);
void __printf_args(1, 2) log_trace(const char *msg, ...);

View File

@@ -122,9 +122,8 @@ int main(int argc, char *const argv[]) {
if (argc < 2)
failure("No parameters given\n");
if (argc == 2 &&
strncmp(argv[1], global::thunk_param_prefix,
strlen(global::thunk_param_prefix)) == 0)
if (argc == 2 && strncmp(argv[1], global::thunk_param_prefix,
strlen(global::thunk_param_prefix)) == 0)
return test_execute(
actor_config(argv[1] + strlen(global::thunk_param_prefix)))
? EXIT_SUCCESS

View File

@@ -169,7 +169,7 @@ typedef std::pair<HANDLE, actor_status> child;
static std::unordered_map<mdbx_pid_t, child> childs;
static void ArgvQuote(std::string &CommandLine, const std::string &Argument,
bool Force = false)
bool Force = false)
/*++

View File

@@ -85,9 +85,9 @@ static void mdbx_logger(int type, const char *function, int line,
level = logging::failure;
}
if (logging::output(level, strncmp(function, "mdbx_", 5) == 0 ? "%s: "
: "mdbx: %s: ",
function))
if (logging::output(
level,
strncmp(function, "mdbx_", 5) == 0 ? "%s: " : "mdbx: %s: ", function))
logging::feed(msg, args);
if (type & MDBX_DBG_ASSERT)
abort();