diff options
| author | Daniel Jasper <djasper@google.com> | 2013-05-23 18:05:18 +0000 |
|---|---|---|
| committer | Daniel Jasper <djasper@google.com> | 2013-05-23 18:05:18 +0000 |
| commit | 5bd0b9e53bcf55fb750d179278cacc1502ad82e8 (patch) | |
| tree | abe0d7ccff88607c084410d74f30deece67b2a0b /clang/lib/Format/Format.cpp | |
| parent | e7a500160e58ec5e461dde5f6c898742b47380d6 (diff) | |
| download | bcm5719-llvm-5bd0b9e53bcf55fb750d179278cacc1502ad82e8.tar.gz bcm5719-llvm-5bd0b9e53bcf55fb750d179278cacc1502ad82e8.zip | |
Improve formatting of braced lists.
Before: vector<int> v{ -1};
After: vector<int> v{-1};
llvm-svn: 182597
Diffstat (limited to 'clang/lib/Format/Format.cpp')
| -rw-r--r-- | clang/lib/Format/Format.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/clang/lib/Format/Format.cpp b/clang/lib/Format/Format.cpp index 1cda3c711ca..41932666293 100644 --- a/clang/lib/Format/Format.cpp +++ b/clang/lib/Format/Format.cpp @@ -100,8 +100,7 @@ template <> struct MappingTraits<clang::format::FormatStyle> { IO.mapOptional("PointerBindsToType", Style.PointerBindsToType); IO.mapOptional("SpacesBeforeTrailingComments", Style.SpacesBeforeTrailingComments); - IO.mapOptional("SpacesInBracedLists", - Style.SpacesInBracedLists); + IO.mapOptional("SpacesInBracedLists", Style.SpacesInBracedLists); IO.mapOptional("Standard", Style.Standard); IO.mapOptional("IndentWidth", Style.IndentWidth); IO.mapOptional("UseTab", Style.UseTab); @@ -146,7 +145,7 @@ FormatStyle getGoogleStyle() { GoogleStyle.AlignEscapedNewlinesLeft = true; GoogleStyle.AllowAllParametersOfDeclarationOnNextLine = true; GoogleStyle.AllowShortIfStatementsOnASingleLine = true; - GoogleStyle.AllowShortLoopsOnASingleLine= true; + GoogleStyle.AllowShortLoopsOnASingleLine = true; GoogleStyle.BinPackParameters = true; GoogleStyle.ColumnLimit = 80; GoogleStyle.ConstructorInitializerAllOnOneLineOrOnePerLine = true; |

