[PATCH] D146021: [Tooling/Inclusion] Index more sub std namespace symbols.

2023-03-14 Thread Haojian Wu via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes.
Closed by commit rG586e497f7985: [Tooling/Inclusion] Index more sub std 
namespace symbols. (authored by hokein).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D146021/new/

https://reviews.llvm.org/D146021

Files:
  clang/lib/Tooling/Inclusions/Stdlib/StdSymbolMap.inc
  clang/tools/include-mapping/gen_std.py

Index: clang/tools/include-mapping/gen_std.py
===
--- clang/tools/include-mapping/gen_std.py
+++ clang/tools/include-mapping/gen_std.py
@@ -248,8 +248,11 @@
   #
   # std::placeholders symbols are handled manually in StdSpecialSymbolMap.inc
   (symbol_index_root, "chrono.html", "std::chrono::"),
+  (symbol_index_root, "execution.html", "std::execution::"),
+  (symbol_index_root, "numbers.html", "std::numbers::"),
   (symbol_index_root, "filesystem.html", "std::filesystem::"),
   (symbol_index_root, "pmr.html", "std::pmr::"),
+  (symbol_index_root, "ranges.html", "std::ranges::"),
   (symbol_index_root, "regex_constants.html", "std::regex_constants::"),
   (symbol_index_root, "this_thread.html", "std::this_thread::"),
   # Zombie symbols that were available from the Standard Library, but are
Index: clang/lib/Tooling/Inclusions/Stdlib/StdSymbolMap.inc
===
--- clang/lib/Tooling/Inclusions/Stdlib/StdSymbolMap.inc
+++ clang/lib/Tooling/Inclusions/Stdlib/StdSymbolMap.inc
@@ -3416,6 +3416,14 @@
 SYMBOL(zoned_seconds, std::chrono::, )
 SYMBOL(zoned_time, std::chrono::, )
 SYMBOL(zoned_traits, std::chrono::, )
+SYMBOL(par, std::execution::, )
+SYMBOL(par_unseq, std::execution::, )
+SYMBOL(parallel_policy, std::execution::, )
+SYMBOL(parallel_unsequenced_policy, std::execution::, )
+SYMBOL(seq, std::execution::, )
+SYMBOL(sequenced_policy, std::execution::, )
+SYMBOL(unseq, std::execution::, )
+SYMBOL(unsequenced_policy, std::execution::, )
 SYMBOL(absolute, std::filesystem::, )
 SYMBOL(canonical, std::filesystem::, )
 SYMBOL(copy, std::filesystem::, )
@@ -3470,6 +3478,32 @@
 SYMBOL(temp_directory_path, std::filesystem::, )
 SYMBOL(u8path, std::filesystem::, )
 SYMBOL(weakly_canonical, std::filesystem::, )
+SYMBOL(e, std::numbers::, )
+SYMBOL(e_v, std::numbers::, )
+SYMBOL(egamma, std::numbers::, )
+SYMBOL(egamma_v, std::numbers::, )
+SYMBOL(inv_pi, std::numbers::, )
+SYMBOL(inv_pi_v, std::numbers::, )
+SYMBOL(inv_sqrt3, std::numbers::, )
+SYMBOL(inv_sqrt3_v, std::numbers::, )
+SYMBOL(inv_sqrtpi, std::numbers::, )
+SYMBOL(inv_sqrtpi_v, std::numbers::, )
+SYMBOL(ln10, std::numbers::, )
+SYMBOL(ln10_v, std::numbers::, )
+SYMBOL(ln2, std::numbers::, )
+SYMBOL(ln2_v, std::numbers::, )
+SYMBOL(log10e, std::numbers::, )
+SYMBOL(log10e_v, std::numbers::, )
+SYMBOL(log2e, std::numbers::, )
+SYMBOL(log2e_v, std::numbers::, )
+SYMBOL(phi, std::numbers::, )
+SYMBOL(phi_v, std::numbers::, )
+SYMBOL(pi, std::numbers::, )
+SYMBOL(pi_v, std::numbers::, )
+SYMBOL(sqrt2, std::numbers::, )
+SYMBOL(sqrt2_v, std::numbers::, )
+SYMBOL(sqrt3, std::numbers::, )
+SYMBOL(sqrt3_v, std::numbers::, )
 SYMBOL(basic_string, std::pmr::, )
 SYMBOL(cmatch, std::pmr::, )
 SYMBOL(deque, std::pmr::, )
@@ -3504,6 +3538,241 @@
 SYMBOL(wcmatch, std::pmr::, )
 SYMBOL(wsmatch, std::pmr::, )
 SYMBOL(wstring, std::pmr::, )
+SYMBOL(adjacent_find, std::ranges::, )
+SYMBOL(advance, std::ranges::, )
+SYMBOL(all_of, std::ranges::, )
+SYMBOL(any_of, std::ranges::, )
+SYMBOL(as_const_view, std::ranges::, )
+SYMBOL(as_rvalue_view, std::ranges::, )
+SYMBOL(basic_istream_view, std::ranges::, )
+SYMBOL(begin, std::ranges::, )
+SYMBOL(bidirectional_range, std::ranges::, )
+SYMBOL(binary_transform_result, std::ranges::, )
+SYMBOL(borrowed_iterator_t, std::ranges::, )
+SYMBOL(borrowed_range, std::ranges::, )
+SYMBOL(borrowed_subrange_t, std::ranges::, )
+SYMBOL(cbegin, std::ranges::, )
+SYMBOL(cdata, std::ranges::, )
+SYMBOL(cend, std::ranges::, )
+SYMBOL(clamp, std::ranges::, )
+SYMBOL(common_range, std::ranges::, )
+SYMBOL(common_view, std::ranges::, )
+SYMBOL(const_iterator_t, std::ranges::, )
+SYMBOL(constant_range, std::ranges::, )
+SYMBOL(construct_at, std::ranges::, )
+SYMBOL(contains, std::ranges::, )
+SYMBOL(contains_subrange, std::ranges::, )
+SYMBOL(contiguous_range, std::ranges::, )
+SYMBOL(copy, std::ranges::, )
+SYMBOL(copy_backward, std::ranges::, )
+SYMBOL(copy_backward_result, std::ranges::, )
+SYMBOL(copy_if, std::ranges::, )
+SYMBOL(copy_if_result, std::ranges::, )
+SYMBOL(copy_n, std::ranges::, )
+SYMBOL(copy_n_result, std::ranges::, )
+SYMBOL(copy_result, std::ranges::, )
+SYMBOL(count, std::ranges::, )
+SYMBOL(count_if, std::ranges::, )
+SYMBOL(crbegin, std::ranges::, )
+SYMBOL(crend, std::ranges::, )
+SYMBOL(dangling, std::ranges::, )
+SYMBOL(data, std::ranges::, )
+SYMBOL(destroy, std::ranges::, )
+SYMBOL(destroy_at, std::ranges::, )
+SYMBOL(destroy_n, st

[PATCH] D146021: [Tooling/Inclusion] Index more sub std namespace symbols.

2023-03-14 Thread Kadir Cetinkaya via Phabricator via cfe-commits
kadircet accepted this revision.
kadircet added a comment.
This revision is now accepted and ready to land.

thanks!


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D146021/new/

https://reviews.llvm.org/D146021

___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits


[PATCH] D146021: [Tooling/Inclusion] Index more sub std namespace symbols.

2023-03-14 Thread Haojian Wu via Phabricator via cfe-commits
hokein created this revision.
hokein added a reviewer: kadircet.
Herald added a subscriber: arphaman.
Herald added a project: All.
hokein requested review of this revision.
Herald added a project: clang.

Fixes https://github.com/llvm/llvm-project/issues/61373


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D146021

Files:
  clang/lib/Tooling/Inclusions/Stdlib/StdSymbolMap.inc
  clang/tools/include-mapping/gen_std.py

Index: clang/tools/include-mapping/gen_std.py
===
--- clang/tools/include-mapping/gen_std.py
+++ clang/tools/include-mapping/gen_std.py
@@ -248,8 +248,11 @@
   #
   # std::placeholders symbols are handled manually in StdSpecialSymbolMap.inc
   (symbol_index_root, "chrono.html", "std::chrono::"),
+  (symbol_index_root, "execution.html", "std::execution::"),
+  (symbol_index_root, "numbers.html", "std::numbers::"),
   (symbol_index_root, "filesystem.html", "std::filesystem::"),
   (symbol_index_root, "pmr.html", "std::pmr::"),
+  (symbol_index_root, "ranges.html", "std::ranges::"),
   (symbol_index_root, "regex_constants.html", "std::regex_constants::"),
   (symbol_index_root, "this_thread.html", "std::this_thread::"),
   # Zombie symbols that were available from the Standard Library, but are
Index: clang/lib/Tooling/Inclusions/Stdlib/StdSymbolMap.inc
===
--- clang/lib/Tooling/Inclusions/Stdlib/StdSymbolMap.inc
+++ clang/lib/Tooling/Inclusions/Stdlib/StdSymbolMap.inc
@@ -3416,6 +3416,14 @@
 SYMBOL(zoned_seconds, std::chrono::, )
 SYMBOL(zoned_time, std::chrono::, )
 SYMBOL(zoned_traits, std::chrono::, )
+SYMBOL(par, std::execution::, )
+SYMBOL(par_unseq, std::execution::, )
+SYMBOL(parallel_policy, std::execution::, )
+SYMBOL(parallel_unsequenced_policy, std::execution::, )
+SYMBOL(seq, std::execution::, )
+SYMBOL(sequenced_policy, std::execution::, )
+SYMBOL(unseq, std::execution::, )
+SYMBOL(unsequenced_policy, std::execution::, )
 SYMBOL(absolute, std::filesystem::, )
 SYMBOL(canonical, std::filesystem::, )
 SYMBOL(copy, std::filesystem::, )
@@ -3470,6 +3478,32 @@
 SYMBOL(temp_directory_path, std::filesystem::, )
 SYMBOL(u8path, std::filesystem::, )
 SYMBOL(weakly_canonical, std::filesystem::, )
+SYMBOL(e, std::numbers::, )
+SYMBOL(e_v, std::numbers::, )
+SYMBOL(egamma, std::numbers::, )
+SYMBOL(egamma_v, std::numbers::, )
+SYMBOL(inv_pi, std::numbers::, )
+SYMBOL(inv_pi_v, std::numbers::, )
+SYMBOL(inv_sqrt3, std::numbers::, )
+SYMBOL(inv_sqrt3_v, std::numbers::, )
+SYMBOL(inv_sqrtpi, std::numbers::, )
+SYMBOL(inv_sqrtpi_v, std::numbers::, )
+SYMBOL(ln10, std::numbers::, )
+SYMBOL(ln10_v, std::numbers::, )
+SYMBOL(ln2, std::numbers::, )
+SYMBOL(ln2_v, std::numbers::, )
+SYMBOL(log10e, std::numbers::, )
+SYMBOL(log10e_v, std::numbers::, )
+SYMBOL(log2e, std::numbers::, )
+SYMBOL(log2e_v, std::numbers::, )
+SYMBOL(phi, std::numbers::, )
+SYMBOL(phi_v, std::numbers::, )
+SYMBOL(pi, std::numbers::, )
+SYMBOL(pi_v, std::numbers::, )
+SYMBOL(sqrt2, std::numbers::, )
+SYMBOL(sqrt2_v, std::numbers::, )
+SYMBOL(sqrt3, std::numbers::, )
+SYMBOL(sqrt3_v, std::numbers::, )
 SYMBOL(basic_string, std::pmr::, )
 SYMBOL(cmatch, std::pmr::, )
 SYMBOL(deque, std::pmr::, )
@@ -3504,6 +3538,241 @@
 SYMBOL(wcmatch, std::pmr::, )
 SYMBOL(wsmatch, std::pmr::, )
 SYMBOL(wstring, std::pmr::, )
+SYMBOL(adjacent_find, std::ranges::, )
+SYMBOL(advance, std::ranges::, )
+SYMBOL(all_of, std::ranges::, )
+SYMBOL(any_of, std::ranges::, )
+SYMBOL(as_const_view, std::ranges::, )
+SYMBOL(as_rvalue_view, std::ranges::, )
+SYMBOL(basic_istream_view, std::ranges::, )
+SYMBOL(begin, std::ranges::, )
+SYMBOL(bidirectional_range, std::ranges::, )
+SYMBOL(binary_transform_result, std::ranges::, )
+SYMBOL(borrowed_iterator_t, std::ranges::, )
+SYMBOL(borrowed_range, std::ranges::, )
+SYMBOL(borrowed_subrange_t, std::ranges::, )
+SYMBOL(cbegin, std::ranges::, )
+SYMBOL(cdata, std::ranges::, )
+SYMBOL(cend, std::ranges::, )
+SYMBOL(clamp, std::ranges::, )
+SYMBOL(common_range, std::ranges::, )
+SYMBOL(common_view, std::ranges::, )
+SYMBOL(const_iterator_t, std::ranges::, )
+SYMBOL(constant_range, std::ranges::, )
+SYMBOL(construct_at, std::ranges::, )
+SYMBOL(contains, std::ranges::, )
+SYMBOL(contains_subrange, std::ranges::, )
+SYMBOL(contiguous_range, std::ranges::, )
+SYMBOL(copy, std::ranges::, )
+SYMBOL(copy_backward, std::ranges::, )
+SYMBOL(copy_backward_result, std::ranges::, )
+SYMBOL(copy_if, std::ranges::, )
+SYMBOL(copy_if_result, std::ranges::, )
+SYMBOL(copy_n, std::ranges::, )
+SYMBOL(copy_n_result, std::ranges::, )
+SYMBOL(copy_result, std::ranges::, )
+SYMBOL(count, std::ranges::, )
+SYMBOL(count_if, std::ranges::, )
+SYMBOL(crbegin, std::ranges::, )
+SYMBOL(crend, std::ranges::, )
+SYMBOL(dangling, std::ranges::, )
+SYMBOL(data, std::ranges::, )
+SYMBOL(destroy, std::ranges::, )
+SYMBOL(destroy_at, std::ranges::, )
+SYMBOL(destro