From 23d99f2f2c6f3e16dce2371141702d07bef40e95 Mon Sep 17 00:00:00 2001 From: BhaaL Date: Wed, 4 Jan 2017 12:45:40 +0100 Subject: specify custom brace style to fix unions BreakBeforeBraces: Allman apparently includes all styles, except for AfterUnion (which is false) when using clang-format -dump-config --- Source/UnitTests/Common/BitFieldTest.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Source/UnitTests/Common/BitFieldTest.cpp') diff --git a/Source/UnitTests/Common/BitFieldTest.cpp b/Source/UnitTests/Common/BitFieldTest.cpp index 5c7e4a0ccf..d63d860d82 100644 --- a/Source/UnitTests/Common/BitFieldTest.cpp +++ b/Source/UnitTests/Common/BitFieldTest.cpp @@ -7,7 +7,8 @@ #include "Common/BitField.h" #include "Common/CommonTypes.h" -union TestUnion { +union TestUnion +{ u64 hex; BitField<0, 64, u64> full_u64; // spans whole storage -- cgit v1.2.3