diff options
author | Jakub Jelinek <jakub@redhat.com> | 2025-04-09 22:07:33 +0200 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2025-04-09 22:09:15 +0200 |
commit | f7738c36710f8084e24cbb1d92acf3b6e5e83ea9 (patch) | |
tree | b637daf67f79c8abcf1057d598608eed67f7fa3d /gcc | |
parent | 76b267b43cbf93163b1648c4430ab1102e24142e (diff) | |
download | gcc-f7738c36710f8084e24cbb1d92acf3b6e5e83ea9.zip gcc-f7738c36710f8084e24cbb1d92acf3b6e5e83ea9.tar.gz gcc-f7738c36710f8084e24cbb1d92acf3b6e5e83ea9.tar.bz2 |
pretty-print: Fix format specifier description
I've noticed we talk about %Ns even when that isn't supported and
we actually only support %.Ns which the comment describes.
2025-04-09 Jakub Jelinek <jakub@redhat.com>
* pretty-print.cc (pretty_printer::format): Use %.Ns instead of
%Ns in function comment.
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/pretty-print.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/pretty-print.cc b/gcc/pretty-print.cc index 79c7bc2..abd6c0b 100644 --- a/gcc/pretty-print.cc +++ b/gcc/pretty-print.cc @@ -1640,7 +1640,7 @@ push_back_any_text (pp_token_list *tok_list, %@: diagnostic_event_id_ptr, for which event_id->known_p () must be true. %.*s: a substring the length of which is specified by an argument integer. - %Ns: likewise, but length specified as constant in the format string. + %.Ns: likewise, but length specified as constant in the format string. Flag 'q': quote formatted text (must come immediately after '%'). %Z: Requires two arguments - array of int, and len. Prints elements of the array. |