From 72ff07e150e67735ad727833b44d8ade736b4700 Mon Sep 17 00:00:00 2001 From: Nico Weber Date: Tue, 31 Jan 2017 18:42:05 +0000 Subject: [PATCH] Keep Chromium ObjC column limit at 80 for consistency with C++ https://reviews.llvm.org/D29337 Patch from Dan Beam ! git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@293675 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Format/Format.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/Format/Format.cpp b/lib/Format/Format.cpp index 91456112f9..77d351eeb2 100644 --- a/lib/Format/Format.cpp +++ b/lib/Format/Format.cpp @@ -653,6 +653,8 @@ FormatStyle getChromiumStyle(FormatStyle::LanguageKind Language) { ChromiumStyle.AllowShortLoopsOnASingleLine = false; ChromiumStyle.BinPackParameters = false; ChromiumStyle.DerivePointerAlignment = false; + if (Language == FormatStyle::LK_ObjC) + ChromiumStyle.ColumnLimit = 80; } ChromiumStyle.SortIncludes = false; return ChromiumStyle; -- 2.40.0