From patchwork Tue Oct 18 11:15:08 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Wakely X-Patchwork-Id: 4093 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4ac7:0:0:0:0:0 with SMTP id y7csp1898414wrs; Tue, 18 Oct 2022 04:16:01 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4/0mfCPvoJQHE8pWfGrNNk+ftm1wMFn94rioz2TbJml+re+3Qt9rc5PnNwooqg+kEd4aut X-Received: by 2002:a17:907:8688:b0:791:91a0:fdb3 with SMTP id qa8-20020a170907868800b0079191a0fdb3mr1841331ejc.499.1666091761439; Tue, 18 Oct 2022 04:16:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666091761; cv=none; d=google.com; s=arc-20160816; b=UsiaHZqaDm3HsDsAoboaFL7dbCB8UtY5PLWzD9w4cVsudi5uXeIwawqKLY6AS5MuBH Bal1XTXAeJAJAuo0BT2TQJSdSj7IiexLlRg2uWNiX0rzha05Ps3PXEmksRv7S7fFvDRi 04M1E/31BbPHHgiYklfC9yQ2KnjxrWFObEYwJPmP77c+99mUonLZMSxcsRR5MlQDKwq5 kYtHjCiD+rJOB8HtaSsbRtBGtZxl3WMHrqduxbRg4msi+L8nnFtkTOLpVXVHnR1ZF4U6 OL8glJwi4MkXISnT7ww4juVWbye1ycZne4EGmN+ltLKdEyxSf+XrY1vRoUQQVDjVkhDl 2J+w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:reply-to:from:list-subscribe:list-help:list-post :list-archive:list-unsubscribe:list-id:precedence :content-disposition:in-reply-to:mime-version:references:message-id :subject:to:date:dmarc-filter:delivered-to:dkim-signature :dkim-filter; bh=b9yipY0O0PWlMKzaOr55U/MAoE9Guf+z7wJ0OL+WBmM=; b=Iue4rHgfIAHGEBwJdmtTElO8oySg7QPvRBHmHABJykkWuBEm3v0mAFJx5kx+bqZbyN ToBYoTdz9+URzwaJcseu+eay5AkJyR5yNuAIBGBrSgsVa79jgVQvVZhDjC4pTbtGZ5GH E3cW93/159EEkHRrJqQRUV2iXfzPxjnYfWDbOO1dwedfTdKBF3eZRYcIrwwOaIYK4Pbh +0NwxMCZEbFF1ae+jdwN4TcgzT7uKg1jr+KBJmq6R5sPeNqjvi4ydKUdqQx6Px+Koggl d4gQGgvMGTpMRjLpOcavqRnEYBHOH5uI4D97btF3Vi7OPbMw9SKWgv0Tsqs4OCp9zH2E 2i6A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=tONw98ss; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from sourceware.org (server2.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id eb13-20020a0564020d0d00b0044611122003si14668213edb.599.2022.10.18.04.16.01 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 18 Oct 2022 04:16:01 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=tONw98ss; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id E0C193857BB7 for ; Tue, 18 Oct 2022 11:15:58 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E0C193857BB7 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1666091758; bh=b9yipY0O0PWlMKzaOr55U/MAoE9Guf+z7wJ0OL+WBmM=; h=Date:To:Subject:References:In-Reply-To:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=tONw98ss+cj8di2KNOR7rbtZU4EreY4ivI3gb8k6thImlPjyrsaSoY/Rdg85+SkYm Ukw6Y1GSdjfFF88xG6V741nRMUt9Z0tledJX3LoA4Z7BkiMVLvGzfNZr1hbbSYeXuc zVXlN9F0mLKmzLjGYAEMPKHWDsgSYekB3sUVAfa0= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by sourceware.org (Postfix) with ESMTPS id 93CD53858C50 for ; Tue, 18 Oct 2022 11:15:11 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 93CD53858C50 Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-160-sx3L2p0PM5ebkBCrnA2ONA-1; Tue, 18 Oct 2022 07:15:10 -0400 X-MC-Unique: sx3L2p0PM5ebkBCrnA2ONA-1 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id CABA4101A54E for ; Tue, 18 Oct 2022 11:15:09 +0000 (UTC) Received: from localhost (unknown [10.33.36.108]) by smtp.corp.redhat.com (Postfix) with ESMTP id 92DCA2022C2B for ; Tue, 18 Oct 2022 11:15:09 +0000 (UTC) Date: Tue, 18 Oct 2022 12:15:08 +0100 To: gcc-patches@gcc.gnu.org Subject: [ping] [wwwdocs] Add reference to pp_format to Coding Conventions Message-ID: References: <20220921093927.870907-1-jwakely@redhat.com> MIME-Version: 1.0 In-Reply-To: <20220921093927.870907-1-jwakely@redhat.com> X-Clacks-Overhead: GNU Terry Pratchett X-Scanned-By: MIMEDefang 3.1 on 10.11.54.4 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Disposition: inline X-Spam-Status: No, score=-12.1 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_NONE, SPF_NONE, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Jonathan Wakely via Gcc-patches From: Jonathan Wakely Reply-To: Jonathan Wakely Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1744571689979846363?= X-GMAIL-MSGID: =?utf-8?q?1747023834858114393?= ping... On 21/09/22 10:39 +0100, Jonathan Wakely wrote: >Finding the docs for the GCC-specific diagnostic formats isn't easy. >This might help. > >OK for wwwdocs? -- >8 -- htdocs/codingconventions.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/htdocs/codingconventions.html b/htdocs/codingconventions.html index e4d30510..f1d1f165 100644 --- a/htdocs/codingconventions.html +++ b/htdocs/codingconventions.html @@ -333,7 +333,8 @@ code token.
  • Diagnostics using the GCC diagnostic functions should generally use the GCC-specific formats such as %qs or %< and %> for quoting and -%m for errno numbers.
  • +%m for errno numbers. See +pp_format in pretty-print.cc for supported formats.
  • Identifiers should generally be formatted with %E or %qE; use of identifier_to_locale is needed