]> granicus.if.org Git - clang/commitdiff
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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@280245 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Format/Format.cpp

index 86f4ae1f196af07a9587e0481cb970fc13e6bf30..26ef38d60c23bc1af0d4d24a47f19917d217ba5f 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;
 }