From: Daniel Jasper Date: Wed, 31 Aug 2016 14:05:56 +0000 (+0000) Subject: clang-format: Set default WebKit style to use C++11. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=348fdb547a490013ae1cfbb6a31cb73bc940a943;p=clang 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 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@280245 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Format/Format.cpp b/lib/Format/Format.cpp index 86f4ae1f19..26ef38d60c 100644 --- a/lib/Format/Format.cpp +++ b/lib/Format/Format.cpp @@ -685,7 +685,6 @@ FormatStyle getWebKitStyle() { Style.ObjCBlockIndentWidth = 4; Style.ObjCSpaceAfterProperty = true; Style.PointerAlignment = FormatStyle::PAS_Left; - Style.Standard = FormatStyle::LS_Cpp03; return Style; }