From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1666091711; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=b9yipY0O0PWlMKzaOr55U/MAoE9Guf+z7wJ0OL+WBmM=; b=iDvcd3YgNC+dRwQ2qhPWfaOQXiH+rz+nG4RsAeABVnNy+cgzvEBA1Xrm677wDLoswxUwOH ptqSn7Sbqp7rl3rbFEEL51iebHI8QePS7u0bwYbOCqKmFSpXRLGYThc0MU+Dk/CtZwL1tf 3yYCYzXPv7Eo9kDjuT2Dk0ukDnpCCr8= 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 From: Jonathan Wakely 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-Type: text/plain; charset=us-ascii; format=flowed 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 List-Id: 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