public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/84890] Overly verbose notes for missing headers
       [not found] <bug-84890-4@http.gcc.gnu.org/bugzilla/>
@ 2023-06-13 21:43 ` cvs-commit at gcc dot gnu.org
  2023-06-13 21:48 ` dmalcolm at gcc dot gnu.org
  1 sibling, 0 replies; 2+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2023-06-13 21:43 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84890

--- Comment #11 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by David Malcolm <dmalcolm@gcc.gnu.org>:

https://gcc.gnu.org/g:7474c46cf2d3715fe23871671c756fd5f65bc225

commit r14-1798-g7474c46cf2d3715fe23871671c756fd5f65bc225
Author: David Malcolm <dmalcolm@redhat.com>
Date:   Tue Jun 13 17:42:47 2023 -0400

    c/c++: use positive tone in missing header notes [PR84890]

    Quoting "How a computer should talk to people" (as quoted
    in "Concepts Error Messages for Humans"):

    "Various negative tones or actions are unfriendly: being manipulative,
    not giving a second chance, talking down, using fashionable slang,
    blaming. We must not seem to blame the person. We should avoid suggesting
    that the person is inadequate. Phrases like "you forgot" may seem
    harmless, but what if a computer said this to you four or five times in
    two minutes? Anyway, the person may disagree, so why risk offense?"

    gcc/c-family/ChangeLog:
            PR c/84890
            * known-headers.cc
            (suggest_missing_header::~suggest_missing_header): Reword note to
            avoid negative tone of "forgetting".

    gcc/cp/ChangeLog:
            PR c/84890
            * name-lookup.cc (missing_std_header::~missing_std_header): Reword
            note to avoid negative tone of "forgetting".

    gcc/testsuite/ChangeLog:
            PR c/84890
            * g++.dg/cpp2a/srcloc3.C: Update expected message.
            * g++.dg/lookup/missing-std-include-2.C: Likewise.
            * g++.dg/lookup/missing-std-include-3.C: Likewise.
            * g++.dg/lookup/missing-std-include-6.C: Likewise.
            * g++.dg/lookup/missing-std-include.C: Likewise.
            * g++.dg/spellcheck-inttypes.C: Likewise.
            * g++.dg/spellcheck-stdint.C: Likewise.
            * g++.dg/spellcheck-stdlib.C: Likewise.
            * gcc.dg/spellcheck-inttypes.c: Likewise.
            * gcc.dg/spellcheck-stdbool.c: Likewise.
            * gcc.dg/spellcheck-stdint.c: Likewise.
            * gcc.dg/spellcheck-stdlib.c: Likewise.

    Signed-off-by: David Malcolm <dmalcolm@redhat.com>

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Bug c/84890] Overly verbose notes for missing headers
       [not found] <bug-84890-4@http.gcc.gnu.org/bugzilla/>
  2023-06-13 21:43 ` [Bug c/84890] Overly verbose notes for missing headers cvs-commit at gcc dot gnu.org
@ 2023-06-13 21:48 ` dmalcolm at gcc dot gnu.org
  1 sibling, 0 replies; 2+ messages in thread
From: dmalcolm at gcc dot gnu.org @ 2023-06-13 21:48 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84890

David Malcolm <dmalcolm at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
             Status|ASSIGNED                    |RESOLVED

--- Comment #12 from David Malcolm <dmalcolm at gcc dot gnu.org> ---
Should be fixed on trunk for GCC 14 by the above patch.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-06-13 21:48 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-84890-4@http.gcc.gnu.org/bugzilla/>
2023-06-13 21:43 ` [Bug c/84890] Overly verbose notes for missing headers cvs-commit at gcc dot gnu.org
2023-06-13 21:48 ` dmalcolm at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).