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/Core/VideoCommon/PixelEngine.cpp | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) (limited to 'Source/Core/VideoCommon/PixelEngine.cpp') diff --git a/Source/Core/VideoCommon/PixelEngine.cpp b/Source/Core/VideoCommon/PixelEngine.cpp index 6818efa7b2..8a29f152e9 100644 --- a/Source/Core/VideoCommon/PixelEngine.cpp +++ b/Source/Core/VideoCommon/PixelEngine.cpp @@ -21,7 +21,8 @@ namespace PixelEngine { -union UPEZConfReg { +union UPEZConfReg +{ u16 Hex; struct { @@ -32,7 +33,8 @@ union UPEZConfReg { }; }; -union UPEAlphaConfReg { +union UPEAlphaConfReg +{ u16 Hex; struct { @@ -48,7 +50,8 @@ union UPEAlphaConfReg { }; }; -union UPEDstAlphaConfReg { +union UPEDstAlphaConfReg +{ u16 Hex; struct { @@ -58,7 +61,8 @@ union UPEDstAlphaConfReg { }; }; -union UPEAlphaModeConfReg { +union UPEAlphaModeConfReg +{ u16 Hex; struct { @@ -68,7 +72,8 @@ union UPEAlphaModeConfReg { }; // fifo Control Register -union UPECtrlReg { +union UPECtrlReg +{ struct { u16 PETokenEnable : 1; -- cgit v1.2.3