mirror of
git://code.qt.io/qt/qt5.git
synced 2026-03-31 02:41:31 +08:00
Fix handling of structs by clang format
Our coding style expects classes to have opening braces on a new line.
Structs and classes are the same.
Before the patch:
struct Foo {
...
};
After the patch:
struct Foo
{
...
};
Change-Id: Ifab8a402d03ef2fd75b939f39274887feedc7b1b
Reviewed-by: Frederik Gladhorn <frederik.gladhorn@qt.io>
This commit is contained in:
committed by
Frederik Gladhorn
parent
a55b732053
commit
e8e76d256b
@@ -41,7 +41,7 @@ BraceWrapping:
|
|||||||
AfterFunction: true
|
AfterFunction: true
|
||||||
AfterNamespace: false
|
AfterNamespace: false
|
||||||
AfterObjCDeclaration: false
|
AfterObjCDeclaration: false
|
||||||
AfterStruct: false
|
AfterStruct: true
|
||||||
AfterUnion: false
|
AfterUnion: false
|
||||||
BeforeCatch: false
|
BeforeCatch: false
|
||||||
BeforeElse: false
|
BeforeElse: false
|
||||||
|
|||||||
Reference in New Issue
Block a user