clang-format: Set default WebKit style to use C++11.
authorDaniel Jasper <djasper@google.com>
Wed, 31 Aug 2016 14:05:56 +0000 (14:05 +0000)
committerDaniel Jasper <djasper@google.com>
Wed, 31 Aug 2016 14:05:56 +0000 (14:05 +0000)
The WebKit style page says to use nullptr, so this should be fine:
https://webkit.org/code-style-guidelines/

This fixes: llvm.org/PR30220

llvm-svn: 280245

clang/lib/Format/Format.cpp

index 86f4ae1..26ef38d 100644 (file)
@@ -685,7 +685,6 @@ FormatStyle getWebKitStyle() {
   Style.ObjCBlockIndentWidth = 4;
   Style.ObjCSpaceAfterProperty = true;
   Style.PointerAlignment = FormatStyle::PAS_Left;
-  Style.Standard = FormatStyle::LS_Cpp03;
   return Style;
 }