From patchwork Wed Jun 21 15:42:35 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 106103 Delivered-To: patch@linaro.org Received: by 10.140.91.2 with SMTP id y2csp1995523qgd; Wed, 21 Jun 2017 08:45:11 -0700 (PDT) X-Received: by 10.200.36.144 with SMTP id s16mr43268362qts.224.1498059911185; Wed, 21 Jun 2017 08:45:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1498059911; cv=none; d=google.com; s=arc-20160816; b=oztrIqaqElC8ymqEuHLabX60E3+8IuRWti3RcNMSxBuixakyp0VFYrSydbUx5oJvp+ 4IezjzUs75LvIl+GpbMh2S/D7SCTE1nwFKL+E/wub8Bv21apcM6y6IwH0D5hdjTIJ5th WApLPN6zP+JmWaaIBrqNLiz+6KG8WzP2A0XdwtKUtGZljuVwzF7vugXWSrtaFN1Fp8tO s2UU7yMhOgvy8aaiQE5pNX/Y1rj6SBFVJC+WroJm4RQTwCn4Lumyk8Cnfp9TjWJqcAhx ajZ7RGO2yoIridjVC4A9w/OleZf5mAAuswbBsN8SX/8JtEemY7sQMKa8rcnrjqi2rRin P5fQ== 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:subject :content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:to:from:dkim-signature:arc-authentication-results; bh=KIzeihXmYJoDPmvc++cepWspnAnRTwkkvUe5QMRl8ao=; b=uV/VS3bk1o8+00eJ7h+cC/jpAHU0JKOpPscA1tJ2vQCrEQgCFZWpuLbLSIqiV8BtBU a8ykETFkR++6jpBzb+CyBePMAvBg+j9XX8Vy6ghEzeeM3qtMG1RBwmUguSf2TWBwR5Jb RG7lMPnEBPqhpYt2o9lbrWa4Z87jHcJFu5nCuimsBo4Y482SnGByraOlOFGsk5PxLEct PztY1HxKBqPfwZCGvF2kvumVmw981ajSeBOr8GC+8FZ7o2UBSR4w1E/ISafNPRdV14LV HVIC7NsjQrP+/pm708a6y+sIgNsRKw8evWGHgqytyTNaKaSVdVeQiDE00xHs3iOS9I2g S/+g== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.b=YF2GofxP; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom=qemu-devel-bounces+patch=linaro.org@nongnu.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id t1si14825633qtd.85.2017.06.21.08.45.10 for (version=TLS1 cipher=AES128-SHA bits=128/128); Wed, 21 Jun 2017 08:45:11 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.b=YF2GofxP; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom=qemu-devel-bounces+patch=linaro.org@nongnu.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:54751 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dNhoa-0008RP-My for patch@linaro.org; Wed, 21 Jun 2017 11:45:08 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:52450) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dNhlm-0006D5-Px for qemu-devel@nongnu.org; Wed, 21 Jun 2017 11:42:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dNhll-0002qV-B9 for qemu-devel@nongnu.org; Wed, 21 Jun 2017 11:42:14 -0400 Received: from mail-wr0-x22f.google.com ([2a00:1450:400c:c0c::22f]:35633) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dNhll-0002qH-4q for qemu-devel@nongnu.org; Wed, 21 Jun 2017 11:42:13 -0400 Received: by mail-wr0-x22f.google.com with SMTP id y25so100920227wrd.2 for ; Wed, 21 Jun 2017 08:42:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=KIzeihXmYJoDPmvc++cepWspnAnRTwkkvUe5QMRl8ao=; b=YF2GofxPHZmeactEKkVa/dN+6Lh48hxQQFhMEEDB3t0NzjLmXp1F5wu9Frzk1YY46s CX71beP6xSqCTcJj99ogCtxzIvxuFC1U73kZTjFWZp/JswWy4uMMMvdsyMjUu/02H5TK 6/fP0Lh4+8JCSPHea59D4pwe4dC653ZXL95Jw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=KIzeihXmYJoDPmvc++cepWspnAnRTwkkvUe5QMRl8ao=; b=aF2LnhDXNQm0rxOuo3kkCx/erCoSGX4IE1s3NgD5YMvRkU1TwbraBa1Ked/4Cvelud ALyu2MTO1Ts2lBrQnYIu6095PA/h3XLXvfJAxQ++lnUXKlqGgwL8Niz3TyzbXpOQ6Nyj ZLP6b7sbkc2JFSLSAlSna4c9ijOxoQpOrdTw/sGycgeRUyhyju04Ebg19ofVasjuuk6f Y4eYpps3iQShFiZgzv9TuSdcOSWW5xKDvo9O0rau6PLZxxZR9KXT+bxvPlrlR8W3rWEu 1LwdRrHu9Irdhx42CSzOGRSR2+FC2bJ39lQq0Zb4LBH+eUSDsdGbzlYyE7zNur3YCQTo gARQ== X-Gm-Message-State: AKS2vOyPWdAwtGFs4p2C90FDjQ5y6nvklwn0d2rvtjHeKHfVeHV13CJe WUKxA83MTNSSTDnM X-Received: by 10.28.23.138 with SMTP id 132mr3106843wmx.114.1498059732133; Wed, 21 Jun 2017 08:42:12 -0700 (PDT) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id i7sm13970830wmc.29.2017.06.21.08.42.07 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 21 Jun 2017 08:42:08 -0700 (PDT) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id 3387C3E0550; Wed, 21 Jun 2017 16:42:51 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: peter.maydell@linaro.org Date: Wed, 21 Jun 2017 16:42:35 +0100 Message-Id: <20170621154244.28309-2-alex.bennee@linaro.org> X-Mailer: git-send-email 2.13.0 In-Reply-To: <20170621154244.28309-1-alex.bennee@linaro.org> References: <20170621154244.28309-1-alex.bennee@linaro.org> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c0c::22f Subject: [Qemu-devel] [RISU PATCH v6 01/10] README: document the coding style used for risu X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: =?utf-8?q?Alex_Benn=C3=A9e?= , qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" We also include the an Emacs .dir-locals (as per QEMU) that enforces this layout. Signed-off-by: Alex Bennée --- .dir-locals.el | 2 ++ README | 9 +++++++++ 2 files changed, 11 insertions(+) create mode 100644 .dir-locals.el -- 2.13.0 diff --git a/.dir-locals.el b/.dir-locals.el new file mode 100644 index 0000000..3ac0cfc --- /dev/null +++ b/.dir-locals.el @@ -0,0 +1,2 @@ +((c-mode . ((c-file-style . "stroustrup") + (indent-tabs-mode . nil)))) diff --git a/README b/README index 4b37b4e..858a349 100644 --- a/README +++ b/README @@ -42,6 +42,15 @@ architecture that we support and that you have a cross compiler installed for. This is useful for confirming that your changes to risu haven't broken anything. +Coding Style +------------ + +risu follows the same coding style as the QEMU project, namely 4 +spaces (no tabs) for indentation and the One True Brace Style variant +of K&R. The source tree includes a .dir-locals.el for Emacs users that +will set this automatically. Other editors are available. + + Usage -----