From patchwork Sun Jun 23 09:39:02 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ray Kim X-Patchwork-Id: 1120774 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=gcc.gnu.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=gcc-patches-return-503521-incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=naver.com Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="doSe+3Uw"; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=naver.com header.i=@naver.com header.b="n/cJQpKk"; dkim-atps=neutral Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 45WnSV1rhbz9s4Y for ; Sun, 23 Jun 2019 19:39:14 +1000 (AEST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :mime-version:message-id:date:from:to:subject:content-type :content-transfer-encoding; q=dns; s=default; b=BYmlqegSoSe9NK+1 B2LL6WPhCUYVV09tYHUB83uYJSxENwfKAgpEiWS4VnyU1OmBa+pAcDFLJz69r3ZW nrAPDTfFNLIf2x6KJt3fmkIZpI9mxC3XteqBavXwIiOUJ7MEy3AAGg1Hm5HxOZbB LN9zRg9YnucizGv+L6hMknQmJe0= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :mime-version:message-id:date:from:to:subject:content-type :content-transfer-encoding; s=default; bh=oxu3jF9r6czA/0MqK2BaDt xq0l4=; b=doSe+3UwHzRlphZchs0jxoTxgcy2WiEbR4ZocsvdtAbFDa8oevWE+n bwJ24vtJnl50jPVPsizew/GFnMQhYklRpS1rEXpXlQ6Gk48TepkFwDHdvHvc6rAI OaWtvJxVoZ6SzAx2FNVBf3FB47RmviEUvgytAdErkyljrAqIUElNE= Received: (qmail 110843 invoked by alias); 23 Jun 2019 09:39:07 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Received: (qmail 110831 invoked by uid 89); 23 Jun 2019 09:39:07 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-10.2 required=5.0 tests=AWL, BAYES_00, FREEMAIL_FROM, FROM_EXCESS_BASE64, FROM_MISSP_FREEMAIL, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, HTML_MESSAGE, KAM_SHORT, RCVD_IN_DNSWL_NONE, SPF_PASS autolearn=ham version=3.3.1 spammy=HX-Languages-Length:2309, UD:gif, H*c:alternative X-HELO: cvsmtppost038.nm.naver.com Received: from cvsmtppost038.nm.naver.com (HELO cvsmtppost038.nm.naver.com) (125.209.239.219) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sun, 23 Jun 2019 09:39:05 +0000 X-Naver-CIP: 124.49.164.4 Received: from cvsendbo22.nm ([10.112.235.159]) by cvsmtppost038.nm.naver.com with ESMTP id FS01grSKTZyKcbddA53QiA for ; Sun, 23 Jun 2019 09:39:02 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=naver.com; s=s20171208; t=1561282742; bh=6YsHGfvcFNgDtZYcx7zsz6dHPiefem00+XslGVn5hrw=; h=Message-ID:Date:From:To:Subject; b=n/cJQpKkEokTtJFrowrlBuScPJSL3reziV2+QZ0InwXi3XjhGzNj2aSOb/Aox5Q/T 5wI9VAlrZuy0TjW67Yl58wExRS4u/PNqnzQ9jQJ5cRsufJJF8aL64pB6huWAtU8bjS +XRkRDLLy879tyxox4mRUqY/v+o0GJv+jhMVxTdiIc0tqpt4rPqo9/p9vnhviOin3N EWZ+4tdGOAMYqylYJflPLXW2ZVEVd5BKSWvQcBU0zYzysvI72QWOZU6pr+RtGTUiYR tYFoRsmgSVzqPL5D5pfEYAJtptZpVNGMP+esYjeCCrw5uvtKc6bZ99JrSnfv8msMjA kC7d7mvyci05w== X-Session-ID: ZebrKAvwKAUTFAElBqKZWBFoMxCc7q2XFxU-KoMrKxMdF2.. MIME-Version: 1.0 Message-ID: Date: Sun, 23 Jun 2019 18:39:02 +0900 From: =?utf-8?B?6rmA6rec656Y?= To: Subject: =?utf-8?q?=5BPATCH=5D_Update_to_clang-format_script?= X-IsSubscribed: yes GNU style brace wrapping rules have been added to clang-format quite a while ago. http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Format/Format.h?revision=197138&view=markup This simple patch proposes to use the built-in rules instead of the custom brace rules. Ray Kim 2019-06-27 Ray Kim * contrib/clang-format: Changed the custom brace wrapping rules to built-in GNU style. diff --git a/contrib/clang-format b/contrib/clang-format index d734001c06f..3ebb85fff77 100644 --- a/contrib/clang-format +++ b/contrib/clang-format @@ -25,20 +25,8 @@ AccessModifierOffset: -2 AlwaysBreakAfterDefinitionReturnType: All BinPackArguments: true BinPackParameters: true -BraceWrapping: - AfterClass: true - AfterControlStatement: true - AfterEnum: true - AfterFunction: true - AfterNamespace: false - AfterObjCDeclaration: true - AfterStruct: true - AfterUnion: true - BeforeCatch: true - BeforeElse: true - IndentBraces: true BreakBeforeBinaryOperators: All -BreakBeforeBraces: Custom +BreakBeforeBraces: GNU BreakBeforeTernaryOperators: true ColumnLimit: 80 ConstructorInitializerIndentWidth: 2