Message ID | 20230606141252.95032-1-philmd@linaro.org |
---|---|
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a5d:4d8a:0:0:0:0:0 with SMTP id b10csp2659829wru; Tue, 6 Jun 2023 07:14:28 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7iqtMoJXUTBpY1e4aWuMgyR7DA3SA984sMHLPcVPH35COVNpzvnmHIq/vIidjBQ3uTg3Iw X-Received: by 2002:ac8:5c84:0:b0:3f4:f9fc:bf3a with SMTP id r4-20020ac85c84000000b003f4f9fcbf3amr2176629qta.65.1686060866671; Tue, 06 Jun 2023 07:14:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686060866; cv=none; d=google.com; s=arc-20160816; b=IxaQUIjXDqloL2kFt0gCfMaEDAwEAnLqu8nfYUgBneu0W5+oEnXbQo1qHBV7/yUbL5 1L79KR7aKZubzGapWiKjwEI0/GM66a9yLKpvZHrPdTg11HNg/fWc+pHgRzYIvuaHl9mH 0jdnZ25hJEoGuCKt3CZlBV1ejnY6cMqCSUOdhSb7S+l47yDzV+h4wEnvte9ysh1mXj2+ jhB0lSXQWJV2jp5P0GhbE5YO8hJTem3ZRNpQqEAXdkCpjoeGWmc1tF0+ngcUyG+3YLrO CipHMBdq448loEvU0Y3FyNxKEomlQ348YKLViN5ymMeYAGWpDL/BHhb+eGbZ8gZmfWTG W8JQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from:dkim-signature; bh=W04OLH0QJKfn19fH/wO2Mz30bJLZK/wIkX0NhoZFTMw=; b=UGUA5Jl7AKFIeTC377g+T7tRNWetHTFRXKMiKQdlrcS33WjaIdMEvNeatJXNPQDVJD euLliFA/ufYGZWu8W+39cql7JZ+OE+MmYviOtwGtegau7GtGdfkdQ1AVFx9ObRG8yDHN Q8Ux5bukhwdfF0q/TkYoTJxyu/XkEXWJ0aPIo7QU4xGgq8b+eu31FqOj2DZPdwYwmdgN ucJ7IaAynkZDezzrMUbwK6YqYtXHGjfJfPvvr2TmJo9CvS5QFkzoEftbyFvPB9OR0HKf A5HQDlsALrC/P2Hkbb2eCMfilwfpER/v09oa9ji7lhASL4cTHmdJQRl4qdkwK4gOGDnP 526w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=z8pQQtX9; 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"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: <qemu-devel-bounces+patch=linaro.org@nongnu.org> Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id k10-20020a05622a03ca00b003f6b115179bsi6188369qtx.622.2023.06.06.07.14.26 for <patch@linaro.org> (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 06 Jun 2023 07:14:26 -0700 (PDT) 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; dkim=pass header.i=@linaro.org header.s=google header.b=z8pQQtX9; 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"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from <qemu-devel-bounces@nongnu.org>) id 1q6XQp-0003p9-Ce; Tue, 06 Jun 2023 10:13:07 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <philmd@linaro.org>) id 1q6XQn-0003nS-ET for qemu-devel@nongnu.org; Tue, 06 Jun 2023 10:13:05 -0400 Received: from mail-wm1-x334.google.com ([2a00:1450:4864:20::334]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from <philmd@linaro.org>) id 1q6XQi-0005UW-4P for qemu-devel@nongnu.org; Tue, 06 Jun 2023 10:13:04 -0400 Received: by mail-wm1-x334.google.com with SMTP id 5b1f17b1804b1-3f6d3f83d0cso62704915e9.2 for <qemu-devel@nongnu.org>; Tue, 06 Jun 2023 07:12:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1686060775; x=1688652775; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=W04OLH0QJKfn19fH/wO2Mz30bJLZK/wIkX0NhoZFTMw=; b=z8pQQtX9UJxTFD2NiC4+90Qfcn2Y4lL6cwQhwWCOn1N0D4WdBv869uhpPbCbsDzZh4 SsIbB+T/1kBEHpkBdyHgoRGR0SgDVbNmB6TpsyUb4K8pYFMPbMn/QXo+/voJGuSQagtb 8D/NQQ1GoU6Q2HS7bRujqQw9PuTIwyagM2DOcq3sbdJG26wzPF/7GHGID5Kf+to+AJ9w rJ1Q1fQGzsAXRr0bcqgXDXD0ivzj127pna/Z6Ku4Fw+evsKX6hmX0fqx4yhGDmRtGpHR 58qA0uZtvpebOV4u2koPPBxa4XpZcFsntcbPm5OtTb7mdDb0ACPnySR/trB3gRfluqm+ ZxNg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686060775; x=1688652775; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=W04OLH0QJKfn19fH/wO2Mz30bJLZK/wIkX0NhoZFTMw=; b=P7vuAEgwDLgj0szHNmaBmKAQRGytYvcAthgQDYju34Ddq2HhdK9xeT1t9naMTK1lwR TIDJAFGOhMWY/F0w7h4KCuuLqM08T7eAn5mzPJ6Pok+2q4PYEaLy61IF8FWvlr8uCb66 A+ndm6zAuOUP0r+40/h9MECd2YsfxdVUohPjVLn3fecghq+qwMYYOCqw7BPbyGRTtAU7 os+JChmESDiiLaLVP7f3/GwPSuY4kRp7aX/u30x6KCrzXX5iOlnpvQAXaulSsh9aDkeI QXmk1pPty+KYYTXjys8BkHyNRNhEhA4i2ejoor/UjewheWDu6yXsLtYvq4HoU4RSe0uf Nc0A== X-Gm-Message-State: AC+VfDwOunPdN94cb7dNI7z09Hi1WG5c6pL2zsQ65J0ggxS2I9yK5Scg E4JYqXGThjX15EyDX77PySdaq/UdGzF0mWipOP0= X-Received: by 2002:a5d:428f:0:b0:30e:4b9b:7fcc with SMTP id k15-20020a5d428f000000b0030e4b9b7fccmr2104988wrq.32.1686060775487; Tue, 06 Jun 2023 07:12:55 -0700 (PDT) Received: from localhost.localdomain (vbo91-h01-176-184-50-104.dsl.sta.abo.bbox.fr. [176.184.50.104]) by smtp.gmail.com with ESMTPSA id b9-20020a05600010c900b0030ae87bd3e3sm12755764wrx.18.2023.06.06.07.12.53 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Tue, 06 Jun 2023 07:12:55 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= <philmd@linaro.org> To: qemu-devel@nongnu.org Cc: qemu-s390x@nongnu.org, qemu-ppc@nongnu.org, qemu-riscv@nongnu.org, qemu-arm@nongnu.org, =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= <philmd@linaro.org> Subject: [PATCH 0/5] misc: Enforce .[ch].inc extension for re-included .c/.h files Date: Tue, 6 Jun 2023 16:12:47 +0200 Message-Id: <20230606141252.95032-1-philmd@linaro.org> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2a00:1450:4864:20::334; envelope-from=philmd@linaro.org; helo=mail-wm1-x334.google.com X-Spam_score_int: 4 X-Spam_score: 0.4 X-Spam_bar: / X-Spam_report: (0.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, SUSPICIOUS_RECIPS=2.51, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: <qemu-devel.nongnu.org> List-Unsubscribe: <https://lists.nongnu.org/mailman/options/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe> List-Archive: <https://lists.nongnu.org/archive/html/qemu-devel> List-Post: <mailto:qemu-devel@nongnu.org> List-Help: <mailto:qemu-devel-request@nongnu.org?subject=help> List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=subscribe> Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org |
Series |
misc: Enforce .[ch].inc extension for re-included .c/.h files
|
expand
|
Philippe Mathieu-Daudé <philmd@linaro.org> writes: > Follow the convention to use the .inc extension for .c/.h files > re-included, as docummented in Coding Style since commit 6a0057aa22: > > If you do use template header files they should be named with > the ``.c.inc`` or ``.h.inc`` suffix to make it clear they are > being included for expansion. > > Most of the codebase already uses this extension: > > $ git ls-files | fgrep .inc | wc -l > 155 Ahh prescient as I've just added this hack to the loc tool I'm using: modified src/lib.rs @@ -338,7 +338,7 @@ pub fn lang_from_ext(filepath: &str) -> Lang { "at" => AmbientTalk, "awk" => Awk, "bat" | "btm" | "cmd" => Batch, - "c" | "ec" | "pgc" => C, + "c" | "ec" | "pgc" | "inc" => C, "cc" | "cpp" | "cxx" | "c++" | "pcc" => Cpp, "cfc" => ColdFusionScript, "cmake" => CMake, while gathering loc stats for the project.