]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
pretty-print: Fix format specifier description
authorJakub Jelinek <jakub@redhat.com>
Wed, 9 Apr 2025 20:07:33 +0000 (22:07 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 9 Apr 2025 20:09:15 +0000 (22:09 +0200)
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.

gcc/pretty-print.cc

index 79c7bc2b6625212755dbb58d30455c6616051cb2..abd6c0b528f4e069bafd34c32144f5caa35d3a6e 100644 (file)
@@ -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.