public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH 0/4] Improvements to #include suggestions
@ 2018-03-22 23:37 David Malcolm
  2018-03-22 23:37 ` [PATCH 3/4] C++: suggest missing headers for implicit use of "std" (PR c++/85021) David Malcolm
                   ` (3 more replies)
  0 siblings, 4 replies; 10+ messages in thread
From: David Malcolm @ 2018-03-22 23:37 UTC (permalink / raw)
  To: gcc-patches; +Cc: David Malcolm

This patch kit adds various improvements to the suggestions
we offer for missing #include directives, in response to
recent feedback on my blog post.

None of these are regressions, but it's a new user-visible
feature, so would be nice to fix them for the release, and I
believe they're relatively low risk.

David Malcolm (4):
  More #include suggestions (PR c++/84269)
  C: Ensure that we print include hints in
    -Wimplicit-function-declaration
  C++: suggest missing headers for implicit use of "std" (PR c++/85021)
  C++: more std header hints; filter on C++ dialect (PR c++/84269)

 gcc/c-family/known-headers.cc                      |  33 ++-
 gcc/c/c-decl.c                                     |  14 +-
 gcc/cp/name-lookup.c                               | 316 ++++++++++++++++-----
 .../g++.dg/lookup/missing-std-include-6.C          |  75 +++++
 .../g++.dg/lookup/missing-std-include-7.C          |  16 ++
 .../g++.dg/lookup/missing-std-include-8.C          |  44 +++
 gcc/testsuite/g++.dg/lookup/missing-std-include.C  |   7 +-
 gcc/testsuite/g++.dg/spellcheck-reswords.C         |   1 +
 gcc/testsuite/g++.dg/spellcheck-stdlib.C           |  73 +++++
 gcc/testsuite/gcc.dg/spellcheck-stdlib-2.c         |  38 +++
 gcc/testsuite/gcc.dg/spellcheck-stdlib-3.c         |  16 ++
 gcc/testsuite/gcc.dg/spellcheck-stdlib.c           |  50 ++++
 12 files changed, 607 insertions(+), 76 deletions(-)
 create mode 100644 gcc/testsuite/g++.dg/lookup/missing-std-include-6.C
 create mode 100644 gcc/testsuite/g++.dg/lookup/missing-std-include-7.C
 create mode 100644 gcc/testsuite/g++.dg/lookup/missing-std-include-8.C
 create mode 100644 gcc/testsuite/gcc.dg/spellcheck-stdlib-2.c
 create mode 100644 gcc/testsuite/gcc.dg/spellcheck-stdlib-3.c

-- 
1.8.5.3

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

end of thread, other threads:[~2018-04-06 15:21 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-03-22 23:37 [PATCH 0/4] Improvements to #include suggestions David Malcolm
2018-03-22 23:37 ` [PATCH 3/4] C++: suggest missing headers for implicit use of "std" (PR c++/85021) David Malcolm
2018-03-29 19:27   ` Jason Merrill
2018-04-05 23:33     ` [PATCH v2] " David Malcolm
2018-04-06 15:21       ` Jason Merrill
2018-03-22 23:37 ` [PATCH 4/4] C++: more std header hints; filter on C++ dialect (PR c++/84269) David Malcolm
2018-03-29 19:30   ` Jason Merrill
2018-03-22 23:37 ` [PATCH 1/4] More #include suggestions " David Malcolm
2018-03-29 19:25   ` Jason Merrill
2018-03-23  0:35 ` [PATCH 2/4] C: Ensure that we print include hints in -Wimplicit-function-declaration David Malcolm

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