From 7eeb5982c3d5b7fdd024769d076f4eca15b87aa9 Mon Sep 17 00:00:00 2001 From: Jonathan Wakely Date: Wed, 14 Aug 2019 11:14:25 +0100 Subject: [PATCH] Add more entries to the C++ get_std_name_hint array * name-lookup.c (get_std_name_hint): Add more entries. From-SVN: r274475 --- gcc/cp/ChangeLog | 4 ++++ gcc/cp/name-lookup.c | 40 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 44 insertions(+) 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 + + * name-lookup.c (get_std_name_hint): Add more entries. + 2019-08-14 Paolo Carlini * 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", "", cxx17}, /* . */ {"array", "", cxx11}, + {"to_array", "", cxx2a}, /* . */ {"atomic", "", cxx11}, {"atomic_flag", "", cxx11}, + {"atomic_ref", "", cxx2a}, /* . */ {"bitset", "", cxx11}, /* . */ @@ -5575,9 +5577,17 @@ get_std_name_hint (const char *name) {"ofstream", "", cxx98}, /* . */ {"bind", "", cxx11}, + {"bind_front", "", cxx2a}, {"function", "", cxx11}, {"hash", "", cxx11}, + {"invoke", "", cxx17}, {"mem_fn", "", cxx11}, + {"not_fn", "", cxx17}, + {"reference_wrapper", "", cxx11}, + {"unwrap_reference", "", cxx2a}, + {"unwrap_reference_t", "", cxx2a}, + {"unwrap_ref_decay", "", cxx2a}, + {"unwrap_ref_decay_t", "", cxx2a}, /* . */ {"async", "", cxx11}, {"future", "", cxx11}, @@ -5618,11 +5628,16 @@ get_std_name_hint (const char *name) {"map", "", cxx98}, {"multimap", "", cxx98}, /* . */ + {"allocate_shared", "", cxx11}, + {"allocator", "", cxx98}, + {"allocator_traits", "", cxx11}, {"make_shared", "", cxx11}, {"make_unique", "", cxx11}, {"shared_ptr", "", cxx11}, {"unique_ptr", "", cxx11}, {"weak_ptr", "", cxx11}, + /* . */ + {"pmr", "", cxx17}, /* . */ {"mutex", "", cxx11}, {"timed_mutex", "", cxx11}, @@ -5672,14 +5687,39 @@ get_std_name_hint (const char *name) {"u16string", "", cxx11}, {"u32string", "", cxx11}, /* . */ + {"basic_string_view", "", cxx17}, {"string_view", "", cxx17}, /* . */ {"thread", "", cxx11}, + {"this_thread", "", cxx11}, /* . */ + {"apply", "", cxx17}, + {"forward_as_tuple", "", cxx11}, + {"make_from_tuple", "", cxx17}, {"make_tuple", "", cxx11}, + {"tie", "", cxx11}, {"tuple", "", cxx11}, + {"tuple_cat", "", cxx11}, {"tuple_element", "", cxx11}, + {"tuple_element_t", "", cxx14}, {"tuple_size", "", cxx11}, + {"tuple_size_v", "", cxx17}, + /* . */ + {"enable_if", "", cxx11}, + {"enable_if_t", "", cxx14}, + {"invoke_result", "", cxx17}, + {"invoke_result_t", "", cxx17}, + {"remove_cvref", "", cxx2a}, + {"remove_cvref_t", "", cxx2a}, + {"type_identity", "", cxx2a}, + {"type_identity_t", "", cxx2a}, + {"void_t", "", cxx17}, + {"conjunction", "", cxx17}, + {"conjunction_v", "", cxx17}, + {"disjunction", "", cxx17}, + {"disjunction_v", "", cxx17}, + {"negation", "", cxx17}, + {"negation_v", "", cxx17}, /* . */ {"unordered_map", "", cxx11}, {"unordered_multimap", "", cxx11}, -- 2.7.4