diff options
author | Jędrzej Nowacki <jedrzej.nowacki@qt.io> | 2018-11-29 09:13:11 +0100 |
---|---|---|
committer | Frederik Gladhorn <frederik.gladhorn@qt.io> | 2018-11-30 15:50:58 +0000 |
commit | e8e76d256bb4e3b1c6b9f2b251d89dfe643bdcbb (patch) | |
tree | 2660567352d8b2b6f926811b76a3cbd41e35cde4 /_clang-format | |
parent | a55b73205369128d0701a36720a48c6d1481501f (diff) | |
download | qt5-e8e76d256bb4e3b1c6b9f2b251d89dfe643bdcbb.tar.gz |
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>
Diffstat (limited to '_clang-format')
-rw-r--r-- | _clang-format | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/_clang-format b/_clang-format index ee000a1e..ff57c819 100644 --- a/_clang-format +++ b/_clang-format @@ -41,7 +41,7 @@ BraceWrapping: AfterFunction: true AfterNamespace: false AfterObjCDeclaration: false - AfterStruct: false + AfterStruct: true AfterUnion: false BeforeCatch: false BeforeElse: false |