This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: diagnostics: %<%s%> vs. %qs


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'.

Ideally, we should move all the code to use 'q' and leave %<%> for specific cases like quoting text: "%<--help%>"

Any help on this is appreciated: https://gcc.gnu.org/wiki/GettingStarted#Basics:_Contributing_to_GCC_in_10_easy_steps

Cheers,

Manuel.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]