From patchwork Mon Jun 19 10:46:44 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: 105818 Delivered-To: patch@linaro.org Received: by 10.140.91.2 with SMTP id y2csp809628qgd; Mon, 19 Jun 2017 03:48:37 -0700 (PDT) X-Received: by 10.31.165.210 with SMTP id o201mr13318170vke.37.1497869317906; Mon, 19 Jun 2017 03:48:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1497869317; cv=none; d=google.com; s=arc-20160816; b=sC0WbLT3PEUJ9aozeRz1yMq1LfjdbbaiX4vbQcHvMngNkghliEACZSgbsyFpYHOZtH wo+GiizrVr6QwqQcxAjsXv/DMUee5H9oRkyQwaYsg8DC58EwbgEJFH7ol9n+nJID3GU2 xGbyD/AqRKAMqaWdn91oBDsHoRKP+i/A9BRDDO/102/NmLa+DoWKc5Nx0XnFIBoEbwrZ DANsEdD2RdnXJAcjkvPhZIMrCQRuUPKY6URtTXh6X/PkLUtRrwLttU6rzdsfG2icpHXs njs9bHYLOX1abk1OVr3IvG7jpEdsh6eSUy7owZN4i2JbOy67Qv9nixHgC2+PM+VmZYkW oP/w== 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=GAMHwMieqX9NhTuuwIeFnlkzdhUg+EGmpspdC0aYUPWk8MHb7wt7U/pFUw7F0yJL19 qu+oHwWtfKQeqhgTK1IBb6yeTy4HbnWMHsOifnlRe/isog0sdrbMmPA9q4YdPXn2UI5g atWQ2FsQ6Xh+E2pFjFH1FPTU+FEZN8qSUa+mGbE7iNIPZv5TWyvlkj0cTuR/reJA1bkp LrAt+rrLAxwye6kQCJDYWD+C/UNQXvXrbas4eMO2mN7rI+HovyKVUKkAxnwRnhUNvrRY /JAQLl2gN9ZJIpzfJ7YCf+ut9Wi+opQLr1ptWLvFc2pw7Q9yfeDmgm9hiqIoXOD9CFNt g1VA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.b=YcBPnxyv; 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 v10si4880128uae.44.2017.06.19.03.48.37 for (version=TLS1 cipher=AES128-SHA bits=128/128); Mon, 19 Jun 2017 03:48:37 -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=YcBPnxyv; 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]:41655 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dMuEX-0000fm-BN for patch@linaro.org; Mon, 19 Jun 2017 06:48:37 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:40669) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dMuCQ-0007KY-Jt for qemu-devel@nongnu.org; Mon, 19 Jun 2017 06:46:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dMuCM-0004q3-IQ for qemu-devel@nongnu.org; Mon, 19 Jun 2017 06:46:26 -0400 Received: from mail-wr0-x229.google.com ([2a00:1450:400c:c0c::229]:33472) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dMuCM-0004ok-Br for qemu-devel@nongnu.org; Mon, 19 Jun 2017 06:46:22 -0400 Received: by mail-wr0-x229.google.com with SMTP id r103so69638700wrb.0 for ; Mon, 19 Jun 2017 03:46:22 -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=YcBPnxyvVESGX48SLUPBaPnfVm37TwxWvLDq8F06tEU3vQKjp2fOc3TToVdXd8VTsg uAV0022nJGwL6lB7jlr4bmu2dIdQIZwyRUydE+YZYB+Bzzzev8HqIGDDVZJFRHHt6Kz9 HFnPp0IrtDYx+uvHx2WgIO+LZ581j6Mf8wIhU= 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=ZC/6BhACKGWiOx+eUH3oMXAQUULN/yApgdZcJeAkk5yY6mTxSxG6c4JjdFapyAs8Et veHXQffuChNENksBf0O7PtBZj5zNi0rB/SEozYAI6VcPgU572CQ/qiojEHAwyzQnH/2f vIDZdy8Qf1vuFul2niI4NIJkTnVFiEDuHi8Ef+zKyIC8YZWv4A4i3BCj7TTu9haAdo0M rXZLFDJ3zfUgJgBDg6doITAoe4IVQM7E6tvfccNiKm4Irmsqw48BJTf5lMbXyS6VMzSq Z0R0U2aMkBCVjuwj6K/PP+KvrCTjx4FRi+TSE1WEv5/Vm47hLdbLPyHQUZNqxt+CuFxM GR6Q== X-Gm-Message-State: AKS2vOyYjGMhF9nFXGRSNyGjkwfLD0QIgC6tXbKVrVkofv1l9TkmkQIn p8k1oHHGFTj4eZT6 X-Received: by 10.223.163.85 with SMTP id d21mr1326694wrb.95.1497869181237; Mon, 19 Jun 2017 03:46:21 -0700 (PDT) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id b32sm14439207wrd.40.2017.06.19.03.46.18 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 19 Jun 2017 03:46:18 -0700 (PDT) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id 277303E080A; Mon, 19 Jun 2017 11:47:00 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: peter.maydell@linaro.org Date: Mon, 19 Jun 2017 11:46:44 +0100 Message-Id: <20170619104655.31104-3-alex.bennee@linaro.org> X-Mailer: git-send-email 2.13.0 In-Reply-To: <20170619104655.31104-1-alex.bennee@linaro.org> References: <20170619104655.31104-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::229 Subject: [Qemu-devel] [RISU PATCH v5 02/13] 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 -----