mirror of
https://github.com/isar/libmdbx.git
synced 2025-06-24 14:22:36 +08:00
mdbx: использование clang-format-16.
This commit is contained in:
parent
cf9145bb46
commit
99c9bc2411
4
mdbx.h++
4
mdbx.h++
@ -591,8 +591,8 @@ concept ImmutableByteProducer = requires(const T &a, char array[42]) {
|
|||||||
* \interface SliceTranscoder
|
* \interface SliceTranscoder
|
||||||
* \brief SliceTranscoder C++20 concept */
|
* \brief SliceTranscoder C++20 concept */
|
||||||
template <typename T>
|
template <typename T>
|
||||||
concept SliceTranscoder = ImmutableByteProducer<T> &&
|
concept SliceTranscoder =
|
||||||
requires(const slice &source, const T &a) {
|
ImmutableByteProducer<T> && requires(const slice &source, const T &a) {
|
||||||
T(source);
|
T(source);
|
||||||
{ a.is_erroneous() } -> std::same_as<bool>;
|
{ a.is_erroneous() } -> std::same_as<bool>;
|
||||||
};
|
};
|
||||||
|
@ -101,16 +101,16 @@
|
|||||||
#pragma warning(disable : 4710) /* 'xyz': function not inlined */
|
#pragma warning(disable : 4710) /* 'xyz': function not inlined */
|
||||||
#pragma warning(disable : 4711) /* function 'xyz' selected for automatic \
|
#pragma warning(disable : 4711) /* function 'xyz' selected for automatic \
|
||||||
inline expansion */
|
inline expansion */
|
||||||
#pragma warning( \
|
#pragma warning(disable : 4201) /* nonstandard extension used: nameless \
|
||||||
disable : 4201) /* nonstandard extension used : nameless struct / union */
|
struct/union */
|
||||||
#pragma warning(disable : 4702) /* unreachable code */
|
#pragma warning(disable : 4702) /* unreachable code */
|
||||||
#pragma warning(disable : 4706) /* assignment within conditional expression */
|
#pragma warning(disable : 4706) /* assignment within conditional expression */
|
||||||
#pragma warning(disable : 4127) /* conditional expression is constant */
|
#pragma warning(disable : 4127) /* conditional expression is constant */
|
||||||
#pragma warning(disable : 4324) /* 'xyz': structure was padded due to \
|
#pragma warning(disable : 4324) /* 'xyz': structure was padded due to \
|
||||||
alignment specifier */
|
alignment specifier */
|
||||||
#pragma warning(disable : 4310) /* cast truncates constant value */
|
#pragma warning(disable : 4310) /* cast truncates constant value */
|
||||||
#pragma warning( \
|
#pragma warning(disable : 4820) /* bytes padding added after data member for \
|
||||||
disable : 4820) /* bytes padding added after data member for alignment */
|
alignment */
|
||||||
#pragma warning(disable : 4548) /* expression before comma has no effect; \
|
#pragma warning(disable : 4548) /* expression before comma has no effect; \
|
||||||
expected expression with side - effect */
|
expected expression with side - effect */
|
||||||
#pragma warning(disable : 4366) /* the result of the unary '&' operator may be \
|
#pragma warning(disable : 4366) /* the result of the unary '&' operator may be \
|
||||||
|
@ -246,8 +246,12 @@ typedef struct osal_mmap {
|
|||||||
} osal_mmap_t;
|
} osal_mmap_t;
|
||||||
|
|
||||||
typedef union bin128 {
|
typedef union bin128 {
|
||||||
__anonymous_struct_extension__ struct { uint64_t x, y; };
|
__anonymous_struct_extension__ struct {
|
||||||
__anonymous_struct_extension__ struct { uint32_t a, b, c, d; };
|
uint64_t x, y;
|
||||||
|
};
|
||||||
|
__anonymous_struct_extension__ struct {
|
||||||
|
uint32_t a, b, c, d;
|
||||||
|
};
|
||||||
} bin128_t;
|
} bin128_t;
|
||||||
|
|
||||||
#if defined(_WIN32) || defined(_WIN64)
|
#if defined(_WIN32) || defined(_WIN64)
|
||||||
|
@ -111,8 +111,8 @@
|
|||||||
|
|
||||||
#ifdef _MSC_VER
|
#ifdef _MSC_VER
|
||||||
#pragma warning(pop)
|
#pragma warning(pop)
|
||||||
#pragma warning(disable : 4201) /* nonstandard extension used : \
|
#pragma warning(disable : 4201) /* nonstandard extension used: nameless \
|
||||||
nameless struct / union */
|
struct/union */
|
||||||
#pragma warning(disable : 4127) /* conditional expression is constant */
|
#pragma warning(disable : 4127) /* conditional expression is constant */
|
||||||
#if _MSC_VER < 1900
|
#if _MSC_VER < 1900
|
||||||
#pragma warning(disable : 4510) /* default constructor could \
|
#pragma warning(disable : 4510) /* default constructor could \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user