style: use clang-format version 10.x
This commit is contained in:
parent
4fe5f50f22
commit
532d57ed31
@ -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
|
|
||||||
|
|||||||
@ -38,8 +38,9 @@ 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) \
|
||||||
(__unused__)) int __static_assert_##__LINE__[(condition) ? 1 : -1]
|
typedef __attribute__( \
|
||||||
|
(__unused__)) int __static_assert_##__LINE__[(condition) ? 1 : -1]
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif /* TEST_UTIL_H_ */
|
#endif /* TEST_UTIL_H_ */
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user