From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 113367 invoked by alias); 10 Mar 2017 17:26:45 -0000 Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org Received: (qmail 113355 invoked by uid 89); 10 Mar 2017 17:26:45 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,SPF_PASS,URIBL_RED autolearn=ham version=3.3.2 spammy=predates, H*f:sk:29d5d37, H*i:sk:b3d9601, H*f:sk:b3d9601 X-HELO: relay1.mentorg.com Received: from relay1.mentorg.com (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 10 Mar 2017 17:26:43 +0000 Received: from nat-ies.mentorg.com ([192.94.31.2] helo=svr-ies-mbx-01.mgc.mentorg.com) by relay1.mentorg.com with esmtp id 1cmOJO-0000VC-Qe from joseph_myers@mentor.com ; Fri, 10 Mar 2017 09:26:42 -0800 Received: from digraph.polyomino.org.uk (137.202.0.87) by svr-ies-mbx-01.mgc.mentorg.com (139.181.222.1) with Microsoft SMTP Server (TLS) id 15.0.1210.3; Fri, 10 Mar 2017 17:26:39 +0000 Received: from jsm28 (helo=localhost) by digraph.polyomino.org.uk with local-esmtp (Exim 4.86_2) (envelope-from ) id 1cmOJH-0006ma-Dc; Fri, 10 Mar 2017 17:26:35 +0000 Date: Fri, 10 Mar 2017 17:26:00 -0000 From: Joseph Myers To: =?ISO-8859-15?Q?Manuel_L=F3pez-Ib=E1=F1ez?= CC: Roland Illig , GCC Development Subject: Re: diagnostics: %<%s%> vs. %qs In-Reply-To: Message-ID: References: <29d5d377-3260-53d6-6dc5-80a014a1ac49@gmx.de> User-Agent: Alpine 2.20 (DEB 67 2015-01-07) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="-1152306461-1804680624-1489166795=:21146" X-ClientProxiedBy: svr-ies-mbx-01.mgc.mentorg.com (139.181.222.1) To svr-ies-mbx-01.mgc.mentorg.com (139.181.222.1) X-SW-Source: 2017-03/txt/msg00038.txt.bz2 ---1152306461-1804680624-1489166795=:21146 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8BIT Content-length: 945 On Fri, 10 Mar 2017, Manuel López-Ibáñez wrote: > On 07/03/17 20:38, Roland Illig wrote: > > Hi, > > > > in the diagnostics the %qs specifier is used in most of the cases. But > > there are some cases left where the more complicated %<%s%> is used. Is > > there a good reason to prefer the complicated spelling? > > > > Same for %<%T%> and %qT, and similar letters. > > 'q' is a flag supported by some format codes but not all. Also, although > different parts of the compiler may support the same format codes (%T), not > all may have support for 'q' yet. Finally, there may be some code using %<%T%> > that predates the existence of '%qT'. The 'q' flag is part of the generic pretty-print.c:pp_format formatting. Thus, everything using the generic pretty-printing can handle the 'q' flag (whereas %T requires a function with support for the tree formats as well as the base class ones). -- Joseph S. Myers joseph@codesourcery.com ---1152306461-1804680624-1489166795=:21146--