C++: hints for missing std:: headers
authorDavid Malcolm <dmalcolm@redhat.com>
Tue, 25 Apr 2017 13:54:35 +0000 (13:54 +0000)
committerDavid Malcolm <dmalcolm@gcc.gnu.org>
Tue, 25 Apr 2017 13:54:35 +0000 (13:54 +0000)
commit5ca28c1d5f5f8c435d534ed6142e8215b0babb65
tree4af24850da8afcbe9bf1a162913989aa86eeac0b
parent2ec07fa616d283c60844031818c239f1714d31c9
C++: hints for missing std:: headers

gcc/cp/ChangeLog:
* name-lookup.c (get_std_name_hint): New function.
(maybe_suggest_missing_header): New function.
(suggest_alternative_in_explicit_scope): Call
maybe_suggest_missing_header.

gcc/testsuite/ChangeLog:
* g++.dg/lookup/missing-std-include.C: New test file.

From-SVN: r247240
gcc/cp/ChangeLog
gcc/cp/name-lookup.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/lookup/missing-std-include.C [new file with mode: 0644]