diff options
author | Owen Pan <owenpiano@gmail.com> | 2019-08-02 04:30:42 +0000 |
---|---|---|
committer | Owen Pan <owenpiano@gmail.com> | 2019-08-02 04:30:42 +0000 |
commit | 9131e925fd6b5010a9e797342a09141306183ed6 (patch) | |
tree | fc873f3b772e2468d059a99d38d3b3b41be9b700 /clang/lib/Format/Format.cpp | |
parent | bbdcc8211111fa8e723a1754e0962e56141a2890 (diff) | |
download | bcm5719-llvm-9131e925fd6b5010a9e797342a09141306183ed6.tar.gz bcm5719-llvm-9131e925fd6b5010a9e797342a09141306183ed6.zip |
[clang-format] Fix a bug that doesn't break braces before unions for Allman
Differential Revision: https://reviews.llvm.org/D65631
llvm-svn: 367648
Diffstat (limited to 'clang/lib/Format/Format.cpp')
-rw-r--r-- | clang/lib/Format/Format.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/Format/Format.cpp b/clang/lib/Format/Format.cpp index c6992161958..589cf96b206 100644 --- a/clang/lib/Format/Format.cpp +++ b/clang/lib/Format/Format.cpp @@ -640,6 +640,7 @@ static FormatStyle expandPresets(const FormatStyle &Style) { Expanded.BraceWrapping.AfterNamespace = true; Expanded.BraceWrapping.AfterObjCDeclaration = true; Expanded.BraceWrapping.AfterStruct = true; + Expanded.BraceWrapping.AfterUnion = true; Expanded.BraceWrapping.AfterExternBlock = true; Expanded.BraceWrapping.BeforeCatch = true; Expanded.BraceWrapping.BeforeElse = true; |