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

@ -48,7 +48,8 @@ enum
};
#pragma pack(4)
union TVtxDesc {
union TVtxDesc
{
u64 Hex;
struct
{
@ -92,7 +93,8 @@ union TVtxDesc {
u32 GetVertexArrayStatus(int idx) { return (Hex >> (9 + idx * 2)) & 0x3; }
};
union UVAT_group0 {
union UVAT_group0
{
u32 Hex;
struct
{
@ -119,7 +121,8 @@ union UVAT_group0 {
};
};
union UVAT_group1 {
union UVAT_group1
{
u32 Hex;
struct
{
@ -143,7 +146,8 @@ union UVAT_group1 {
};
};
union UVAT_group2 {
union UVAT_group2
{
u32 Hex;
struct
{
@ -191,7 +195,8 @@ struct TVtxAttr
};
// Matrix indices
union TMatrixIndexA {
union TMatrixIndexA
{
struct
{
u32 PosNormalMtxIdx : 6;
@ -207,7 +212,8 @@ union TMatrixIndexA {
};
};
union TMatrixIndexB {
union TMatrixIndexB
{
struct
{
u32 Tex4MtxIdx : 6;