Split ">>" in "A<B<C> >" in Chromium style.
authorDaniel Jasper <djasper@google.com>
Tue, 29 Jan 2013 15:19:38 +0000 (15:19 +0000)
committerDaniel Jasper <djasper@google.com>
Tue, 29 Jan 2013 15:19:38 +0000 (15:19 +0000)
It needs to be compatible with C++03.

llvm-svn: 173805

clang/lib/Format/Format.cpp

index a8599df..2522d4d 100644 (file)
@@ -207,6 +207,7 @@ FormatStyle getGoogleStyle() {
 FormatStyle getChromiumStyle() {
   FormatStyle ChromiumStyle = getGoogleStyle();
   ChromiumStyle.AllowAllParametersOnNextLine = false;
+  ChromiumStyle.SplitTemplateClosingGreater = true;
   return ChromiumStyle;
 }