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
This commit is contained in:
BhaaL
2017-01-04 12:45:40 +01:00
parent 41101be545
commit 23d99f2f2c
47 changed files with 375 additions and 182 deletions

View File

@ -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;