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 89A4D3858D37 for ; Wed, 21 Sep 2022 09:39:29 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 89A4D3858D37 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=1663753169; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=dvCXeeERVKUOFrvze0QTYqhVS/gH6Ey/w+aNCmMrJGE=; b=Te0J+2+Df8gXOm5jx95HswpHI98APnHktVRWCJHSQR1EYTllVjIoOA0oHB/dI/qOvuYCVf wbyM2Sv0TXG9/g3aOetmhm2/3C7Yo7KqT+VZ239HDnz6YD6MU2x8Os7dMSlSlpa9fHXWrl dA6k664rKeWZEaUAb7T2b/fF+d7Pqp4= 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-654-uYT2Eo-KPRqPWwuxWXtqeA-1; Wed, 21 Sep 2022 05:39:28 -0400 X-MC-Unique: uYT2Eo-KPRqPWwuxWXtqeA-1 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.rdu2.redhat.com [10.11.54.1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id E4DA8811E81 for ; Wed, 21 Sep 2022 09:39:27 +0000 (UTC) Received: from localhost (unknown [10.33.36.214]) by smtp.corp.redhat.com (Postfix) with ESMTP id ADDEF40C2064 for ; Wed, 21 Sep 2022 09:39:27 +0000 (UTC) From: Jonathan Wakely To: gcc-patches@gcc.gnu.org Subject: [wwwdocs] Add reference to pp_format to Coding Conventions Date: Wed, 21 Sep 2022 10:39:27 +0100 Message-Id: <20220921093927.870907-1-jwakely@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.1 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-12.3 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_LOW,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: Finding the docs for the GCC-specific diagnostic formats isn't easy. This might help. OK for wwwdocs? --- 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 -- 2.37.3