From patchwork Mon Dec 14 15:57:21 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurent Vivier X-Patchwork-Id: 343561 Delivered-To: patch@linaro.org Received: by 2002:a02:85a7:0:0:0:0:0 with SMTP id d36csp3116951jai; Mon, 14 Dec 2020 07:59:20 -0800 (PST) X-Google-Smtp-Source: ABdhPJxuOURzNoMYrzhdfdO1As0LaS9GYIBhOXKaSEb6SRMQD/4ONLmbk++uN6LOPrzz0sNmTMjI X-Received: by 2002:a25:c052:: with SMTP id c79mr35023460ybf.287.1607961560429; Mon, 14 Dec 2020 07:59:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607961560; cv=none; d=google.com; s=arc-20160816; b=VQItPzc353aWUhWSzOUf0oQ1svAu84A3QpxQaUp/BNZ2y7TTlH4i7xVTVUfk7WuZkL 82Kak0FFxO1jYc/AuvWFRlprHxiP0PhmHA2z5my51M5msOdiWLNnkjHC/XpzvDNuAqEE 8qfCEA/Xla0wlpY4DI02xzkpIsR6vB4k043879hPWKD2Bj0OZR+GXHz4gvfoxn10dDQJ VCDy3II9+8ODv104YK5tK5IQaUhuQIVA5rOkO11hC2If1SElFhagcfCBldF3Yu/n+cfe cZdKgIOVQ7f3hYN6SQB7d5ORyxxSbonSzo0gpRY9DLc+HyqKbaC/QAIJLXDi5WNblxjs wKxQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from; bh=hsBHK60M2awyIPHVTXwf8dDVIHsNyrVRg86aCqW4xfw=; b=M826YezgZ4EY+zpFO/DRnaZoilp859mHloAR9IV9cZ9S6CQhk67xFN1cFh//p5cJ0F Pod2Cvu/izPhimaNT8a2wmCqmGCQJJyhvbMckL2eT9GZ2en2tclpgA9ReTTPlvuaLtzO jiYnvUyy5PRI2acxYxI1P4Ua1t58bNCy4IEoWC2mnYPWyd1JBQ3w7tzIk4lNwmWL5fdv T4mKHAuNkn82hNVOOOkYL3zoQg54PLFcaQKNfDlEvMcNnvyC/3pjb5Z/Ize/reGhfbQi SqBS4HFPxzdZxFP19yqRVF+dXc0AJyWDQXHWVP6j5GOE1eONNLtbKRIK/e0T1Ruejk9o dt/g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org" Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id p10si17119359ybl.137.2020.12.14.07.59.20 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 14 Dec 2020 07:59:20 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org" Received: from localhost ([::1]:39046 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1koqFr-0007vd-Qi for patch@linaro.org; Mon, 14 Dec 2020 10:59:19 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:34216) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1koqEW-0007sO-Nl; Mon, 14 Dec 2020 10:57:58 -0500 Received: from mout.kundenserver.de ([212.227.17.13]:34313) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1koqEO-0001Pt-OF; Mon, 14 Dec 2020 10:57:54 -0500 Received: from localhost.localdomain ([82.252.135.218]) by mrelayeu.kundenserver.de (mreue108 [212.227.15.183]) with ESMTPSA (Nemesis) id 1N33AR-1k7d620xjR-013Jx4; Mon, 14 Dec 2020 16:57:43 +0100 From: Laurent Vivier To: qemu-devel@nongnu.org Subject: [PULL 07/19] CODING_STYLE.rst: Be less strict about 80 character limit Date: Mon, 14 Dec 2020 16:57:21 +0100 Message-Id: <20201214155733.207430-8-laurent@vivier.eu> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201214155733.207430-1-laurent@vivier.eu> References: <20201214155733.207430-1-laurent@vivier.eu> MIME-Version: 1.0 X-Provags-ID: V03:K1:dFbZeB9hYyMCoMAMNbQY5FhHlLjXOsmrd8vyeBmdGFee5Pa67VM DwhEamI1McOxEpbeLGGgL9YOJMZelWHTjSsEqqKCN+1QC/UwRBWndGw2QXVFMpYNP14Tevw ookrfu53ptHrKR/WArn436xheFPoUZfRFEziKX+V/LmKTuzZoayUeOMte9H7zAYOw2OH1GS w7rlV1tmlPNMwusAuKSZQ== X-UI-Out-Filterresults: notjunk:1; V03:K0:tjGLg8d8DO4=:whDlGGOSaQOPOOswEiCXqN NhvPS0JImLMEfIVNWqP8DFPGC0Uny4LRqgsUbVrsZQWE7pu+kZzphJEYxYsSYHYxx2tDz8SEI lUzUm4UhoDsGFfW5+ysXnKC1EtWU2C3nXhmzhAN8usNkpS7x4iomu50hEPLK8Z/DYcLukvm6f 5HK8TYJ9ETSa/JYz/wWhYJt/yPUFkdsdSYoY3Y6DsRUb3EKMzjAtO4t6CdFELdIH+BYfRfWnz lrO8wlcBQmzQyfyb1CjxnsRSnubRGxuwoAfi4b2YymNJNTqi0q5km8mWHsom838/P9+MwIJR1 IM7g0UaAZ4/zKmXeGqolXhaqyeyXhqGP8/DmjWefXFoD1D+LDjxFXIkTLdbQoyJ4PKOnxashi YvMk1czRMk9Z6C1UMCnF9wuhIEONS6G9c6YKmQdJcOir6X9A+yvQHKx7IAKMGe4WxUpG2/UMs NO3f5Z1Odw== Received-SPF: none client-ip=212.227.17.13; envelope-from=laurent@vivier.eu; helo=mout.kundenserver.de X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Peter Maydell , "Michael S . Tsirkin" , qemu-trivial@nongnu.org, Michael Tokarev , Laurent Vivier , Markus Armbruster Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" From: Peter Maydell Relax the wording about line lengths a little bit; this goes with the checkpatch changes to warn at 100 characters rather than 80. (Compare the Linux kernel commit bdc48fa11e46f8; our coding style is not theirs, but the rationale is good and applies to us too.) Signed-off-by: Peter Maydell Reviewed-by: Markus Armbruster Reviewed-by: Michael S. Tsirkin Message-Id: <20201106112940.31300-1-peter.maydell@linaro.org> Signed-off-by: Laurent Vivier --- CODING_STYLE.rst | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) -- 2.29.2 diff --git a/CODING_STYLE.rst b/CODING_STYLE.rst index 8b13ef0669eb..7bf4e39d4871 100644 --- a/CODING_STYLE.rst +++ b/CODING_STYLE.rst @@ -85,8 +85,13 @@ Line width Lines should be 80 characters; try not to make them longer. Sometimes it is hard to do, especially when dealing with QEMU subsystems -that use long function or symbol names. Even in that case, do not make -lines much longer than 80 characters. +that use long function or symbol names. If wrapping the line at 80 columns +is obviously less readable and more awkward, prefer not to wrap it; better +to have an 85 character line than one which is awkwardly wrapped. + +Even in that case, try not to make lines much longer than 80 characters. +(The checkpatch script will warn at 100 characters, but this is intended +as a guard against obviously-overlength lines, not a target.) Rationale: