style: use clang-format version 10.x

This commit is contained in:
Bert Belder 2020-05-09 11:03:35 +02:00
parent 4fe5f50f22
commit 532d57ed31
No known key found for this signature in database
GPG Key ID: 7A77887B2E2ED461
2 changed files with 4 additions and 5 deletions

View File

@ -12,11 +12,9 @@ BreakBeforeBraces: Attach
ColumnLimit: 79 ColumnLimit: 79
Cpp11BracedListStyle: true Cpp11BracedListStyle: true
DerivePointerAlignment: false DerivePointerAlignment: false
IncludeBlocks: Preserve
IndentWrappedFunctionNames: true IndentWrappedFunctionNames: true
MaxEmptyLinesToKeep: 1 MaxEmptyLinesToKeep: 1
PointerAlignment: Left PointerAlignment: Left
SpaceAfterCStyleCast: true SpaceAfterCStyleCast: true
SpacesInContainerLiterals: false SpacesInContainerLiterals: false
# Alas, not supported:
# ForceEmptyLineAtEOF: true

View File

@ -38,7 +38,8 @@ void no_inline no_return check_fail(const char* message);
/* Polyfill `static_assert` for some versions of clang and gcc. */ /* Polyfill `static_assert` for some versions of clang and gcc. */
#if (defined(__clang__) || defined(__GNUC__)) && !defined(static_assert) #if (defined(__clang__) || defined(__GNUC__)) && !defined(static_assert)
#define static_assert(condition, message) typedef __attribute__( \ #define static_assert(condition, message) \
typedef __attribute__( \
(__unused__)) int __static_assert_##__LINE__[(condition) ? 1 : -1] (__unused__)) int __static_assert_##__LINE__[(condition) ? 1 : -1]
#endif #endif