r280245 - clang-format: Set default WebKit style to use C++11.

Daniel Jasper via cfe-commits cfe-commits at lists.llvm.org
Wed Aug 31 07:05:56 PDT 2016


Author: djasper
Date: Wed Aug 31 09:05:56 2016
New Revision: 280245

URL: http://llvm.org/viewvc/llvm-project?rev=280245&view=rev
Log:
clang-format: Set default WebKit style to use C++11.

The WebKit style page says to use nullptr, so this should be fine:
https://webkit.org/code-style-guidelines/

This fixes: llvm.org/PR30220

Modified:
    cfe/trunk/lib/Format/Format.cpp

Modified: cfe/trunk/lib/Format/Format.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Format/Format.cpp?rev=280245&r1=280244&r2=280245&view=diff
==============================================================================
--- cfe/trunk/lib/Format/Format.cpp (original)
+++ cfe/trunk/lib/Format/Format.cpp Wed Aug 31 09:05:56 2016
@@ -685,7 +685,6 @@ FormatStyle getWebKitStyle() {
   Style.ObjCBlockIndentWidth = 4;
   Style.ObjCSpaceAfterProperty = true;
   Style.PointerAlignment = FormatStyle::PAS_Left;
-  Style.Standard = FormatStyle::LS_Cpp03;
   return Style;
 }
 




More information about the cfe-commits mailing list