diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2019-08-14 11:14:25 +0100 |
---|---|---|
committer | Jonathan Wakely <redi@gcc.gnu.org> | 2019-08-14 11:14:25 +0100 |
commit | 7eeb5982c3d5b7fdd024769d076f4eca15b87aa9 (patch) | |
tree | 7ffe401db4062f815ae737f5d15089ed7c55c7ce | |
parent | 4b0f6ee8b58dedc18192933e35f81b2b71d44fe7 (diff) | |
download | gcc-7eeb5982c3d5b7fdd024769d076f4eca15b87aa9.zip gcc-7eeb5982c3d5b7fdd024769d076f4eca15b87aa9.tar.gz gcc-7eeb5982c3d5b7fdd024769d076f4eca15b87aa9.tar.bz2 |
Add more entries to the C++ get_std_name_hint array
* name-lookup.c (get_std_name_hint): Add more entries.
From-SVN: r274475
-rw-r--r-- | gcc/cp/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/cp/name-lookup.c | 40 |
2 files changed, 44 insertions, 0 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index c3b91b0..186ee7b 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,7 @@ +2019-08-14 Jonathan Wakely <jwakely@redhat.com> + + * name-lookup.c (get_std_name_hint): Add more entries. + 2019-08-14 Paolo Carlini <paolo.carlini@oracle.com> * decl2.c (grok_array_decl): Use the location of the open square diff --git a/gcc/cp/name-lookup.c b/gcc/cp/name-lookup.c index 9f27822..d5e491e 100644 --- a/gcc/cp/name-lookup.c +++ b/gcc/cp/name-lookup.c @@ -5550,9 +5550,11 @@ get_std_name_hint (const char *name) {"make_any", "<any>", cxx17}, /* <array>. */ {"array", "<array>", cxx11}, + {"to_array", "<array>", cxx2a}, /* <atomic>. */ {"atomic", "<atomic>", cxx11}, {"atomic_flag", "<atomic>", cxx11}, + {"atomic_ref", "<atomic>", cxx2a}, /* <bitset>. */ {"bitset", "<bitset>", cxx11}, /* <complex>. */ @@ -5575,9 +5577,17 @@ get_std_name_hint (const char *name) {"ofstream", "<fstream>", cxx98}, /* <functional>. */ {"bind", "<functional>", cxx11}, + {"bind_front", "<functional>", cxx2a}, {"function", "<functional>", cxx11}, {"hash", "<functional>", cxx11}, + {"invoke", "<functional>", cxx17}, {"mem_fn", "<functional>", cxx11}, + {"not_fn", "<functional>", cxx17}, + {"reference_wrapper", "<functional>", cxx11}, + {"unwrap_reference", "<functional>", cxx2a}, + {"unwrap_reference_t", "<functional>", cxx2a}, + {"unwrap_ref_decay", "<functional>", cxx2a}, + {"unwrap_ref_decay_t", "<functional>", cxx2a}, /* <future>. */ {"async", "<future>", cxx11}, {"future", "<future>", cxx11}, @@ -5618,11 +5628,16 @@ get_std_name_hint (const char *name) {"map", "<map>", cxx98}, {"multimap", "<map>", cxx98}, /* <memory>. */ + {"allocate_shared", "<memory>", cxx11}, + {"allocator", "<memory>", cxx98}, + {"allocator_traits", "<memory>", cxx11}, {"make_shared", "<memory>", cxx11}, {"make_unique", "<memory>", cxx11}, {"shared_ptr", "<memory>", cxx11}, {"unique_ptr", "<memory>", cxx11}, {"weak_ptr", "<memory>", cxx11}, + /* <memory_resource>. */ + {"pmr", "<memory_resource>", cxx17}, /* <mutex>. */ {"mutex", "<mutex>", cxx11}, {"timed_mutex", "<mutex>", cxx11}, @@ -5672,14 +5687,39 @@ get_std_name_hint (const char *name) {"u16string", "<string>", cxx11}, {"u32string", "<string>", cxx11}, /* <string_view>. */ + {"basic_string_view", "<string_view>", cxx17}, {"string_view", "<string_view>", cxx17}, /* <thread>. */ {"thread", "<thread>", cxx11}, + {"this_thread", "<thread>", cxx11}, /* <tuple>. */ + {"apply", "<tuple>", cxx17}, + {"forward_as_tuple", "<tuple>", cxx11}, + {"make_from_tuple", "<tuple>", cxx17}, {"make_tuple", "<tuple>", cxx11}, + {"tie", "<tuple>", cxx11}, {"tuple", "<tuple>", cxx11}, + {"tuple_cat", "<tuple>", cxx11}, {"tuple_element", "<tuple>", cxx11}, + {"tuple_element_t", "<tuple>", cxx14}, {"tuple_size", "<tuple>", cxx11}, + {"tuple_size_v", "<tuple>", cxx17}, + /* <type_traits>. */ + {"enable_if", "<type_traits>", cxx11}, + {"enable_if_t", "<type_traits>", cxx14}, + {"invoke_result", "<type_traits>", cxx17}, + {"invoke_result_t", "<type_traits>", cxx17}, + {"remove_cvref", "<type_traits>", cxx2a}, + {"remove_cvref_t", "<type_traits>", cxx2a}, + {"type_identity", "<type_traits>", cxx2a}, + {"type_identity_t", "<type_traits>", cxx2a}, + {"void_t", "<type_traits>", cxx17}, + {"conjunction", "<type_traits>", cxx17}, + {"conjunction_v", "<type_traits>", cxx17}, + {"disjunction", "<type_traits>", cxx17}, + {"disjunction_v", "<type_traits>", cxx17}, + {"negation", "<type_traits>", cxx17}, + {"negation_v", "<type_traits>", cxx17}, /* <unordered_map>. */ {"unordered_map", "<unordered_map>", cxx11}, {"unordered_multimap", "<unordered_map>", cxx11}, |