[PATCH] D156648: [Tooling/Inclusion] Add std::range symbols in the mapping.

2023-07-31 Thread Haojian Wu via Phabricator via cfe-commits
hokein added a comment.

In D156648#4545863 , @kadircet wrote:

> can you also create a cherry-pick request for this patch once it lands?

Filed https://github.com/llvm/llvm-project/issues/64261.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D156648

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


[PATCH] D156648: [Tooling/Inclusion] Add std::range symbols in the mapping.

2023-07-31 Thread Haojian Wu via Phabricator via cfe-commits
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rG171868dc2cd6: [Tooling/Inclusion] Add std::range symbols in 
the mapping. (authored by hokein).

Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D156648

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
@@ -242,6 +242,11 @@
 (symbol_index_root, "filesystem.html", "std::filesystem::"),
 (symbol_index_root, "pmr.html", "std::pmr::"),
 (symbol_index_root, "ranges.html", "std::ranges::"),
+
+(symbol_index_root, "views.html", "std::ranges::views::"),
+# std::ranges::views can be accessed as std::views.
+(symbol_index_root, "views.html", "std::views::"),
+
 (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
@@ -3773,6 +3773,33 @@
 SYMBOL(wistream_view, std::ranges::, )
 SYMBOL(zip_transform_view, std::ranges::, )
 SYMBOL(zip_view, std::ranges::, )
+SYMBOL(all, std::ranges::views::, )
+SYMBOL(all_t, std::ranges::views::, )
+SYMBOL(as_const, std::ranges::views::, )
+SYMBOL(as_rvalue, std::ranges::views::, )
+SYMBOL(common, std::ranges::views::, )
+SYMBOL(counted, std::ranges::views::, )
+SYMBOL(drop, std::ranges::views::, )
+SYMBOL(drop_while, std::ranges::views::, )
+SYMBOL(elements, std::ranges::views::, )
+SYMBOL(empty, std::ranges::views::, )
+SYMBOL(filter, std::ranges::views::, )
+SYMBOL(iota, std::ranges::views::, )
+SYMBOL(istream, std::ranges::views::, )
+SYMBOL(istream, std::ranges::views::, )
+SYMBOL(join, std::ranges::views::, )
+SYMBOL(join_with, std::ranges::views::, )
+SYMBOL(keys, std::ranges::views::, )
+SYMBOL(lazy_split, std::ranges::views::, )
+SYMBOL(reverse, std::ranges::views::, )
+SYMBOL(single, std::ranges::views::, )
+SYMBOL(split, std::ranges::views::, )
+SYMBOL(take, std::ranges::views::, )
+SYMBOL(take_while, std::ranges::views::, )
+SYMBOL(transform, std::ranges::views::, )
+SYMBOL(values, std::ranges::views::, )
+SYMBOL(zip, std::ranges::views::, )
+SYMBOL(zip_transform, std::ranges::views::, )
 SYMBOL(ECMAScript, std::regex_constants::, )
 SYMBOL(awk, std::regex_constants::, )
 SYMBOL(basic, std::regex_constants::, )
@@ -3817,3 +3844,30 @@
 SYMBOL(sleep_for, std::this_thread::, )
 SYMBOL(sleep_until, std::this_thread::, )
 SYMBOL(yield, std::this_thread::, )
+SYMBOL(all, std::views::, )
+SYMBOL(all_t, std::views::, )
+SYMBOL(as_const, std::views::, )
+SYMBOL(as_rvalue, std::views::, )
+SYMBOL(common, std::views::, )
+SYMBOL(counted, std::views::, )
+SYMBOL(drop, std::views::, )
+SYMBOL(drop_while, std::views::, )
+SYMBOL(elements, std::views::, )
+SYMBOL(empty, std::views::, )
+SYMBOL(filter, std::views::, )
+SYMBOL(iota, std::views::, )
+SYMBOL(istream, std::views::, )
+SYMBOL(istream, std::views::, )
+SYMBOL(join, std::views::, )
+SYMBOL(join_with, std::views::, )
+SYMBOL(keys, std::views::, )
+SYMBOL(lazy_split, std::views::, )
+SYMBOL(reverse, std::views::, )
+SYMBOL(single, std::views::, )
+SYMBOL(split, std::views::, )
+SYMBOL(take, std::views::, )
+SYMBOL(take_while, std::views::, )
+SYMBOL(transform, std::views::, )
+SYMBOL(values, std::views::, )
+SYMBOL(zip, std::views::, )
+SYMBOL(zip_transform, std::views::, )


Index: clang/tools/include-mapping/gen_std.py
===
--- clang/tools/include-mapping/gen_std.py
+++ clang/tools/include-mapping/gen_std.py
@@ -242,6 +242,11 @@
 (symbol_index_root, "filesystem.html", "std::filesystem::"),
 (symbol_index_root, "pmr.html", "std::pmr::"),
 (symbol_index_root, "ranges.html", "std::ranges::"),
+
+(symbol_index_root, "views.html", "std::ranges::views::"),
+# std::ranges::views can be accessed as std::views.
+(symbol_index_root, "views.html", "std::views::"),
+
 (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
===

[PATCH] D156648: [Tooling/Inclusion] Add std::range symbols in the mapping.

2023-07-31 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.

can you also create a cherry-pick request for this patch once it lands?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D156648

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


[PATCH] D156648: [Tooling/Inclusion] Add std::range symbols in the mapping.

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

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


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D156648

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
@@ -242,6 +242,11 @@
 (symbol_index_root, "filesystem.html", "std::filesystem::"),
 (symbol_index_root, "pmr.html", "std::pmr::"),
 (symbol_index_root, "ranges.html", "std::ranges::"),
+
+(symbol_index_root, "views.html", "std::ranges::views::"),
+# std::ranges::views can be accessed as std::views.
+(symbol_index_root, "views.html", "std::views::"),
+
 (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
@@ -3773,6 +3773,33 @@
 SYMBOL(wistream_view, std::ranges::, )
 SYMBOL(zip_transform_view, std::ranges::, )
 SYMBOL(zip_view, std::ranges::, )
+SYMBOL(all, std::ranges::views::, )
+SYMBOL(all_t, std::ranges::views::, )
+SYMBOL(as_const, std::ranges::views::, )
+SYMBOL(as_rvalue, std::ranges::views::, )
+SYMBOL(common, std::ranges::views::, )
+SYMBOL(counted, std::ranges::views::, )
+SYMBOL(drop, std::ranges::views::, )
+SYMBOL(drop_while, std::ranges::views::, )
+SYMBOL(elements, std::ranges::views::, )
+SYMBOL(empty, std::ranges::views::, )
+SYMBOL(filter, std::ranges::views::, )
+SYMBOL(iota, std::ranges::views::, )
+SYMBOL(istream, std::ranges::views::, )
+SYMBOL(istream, std::ranges::views::, )
+SYMBOL(join, std::ranges::views::, )
+SYMBOL(join_with, std::ranges::views::, )
+SYMBOL(keys, std::ranges::views::, )
+SYMBOL(lazy_split, std::ranges::views::, )
+SYMBOL(reverse, std::ranges::views::, )
+SYMBOL(single, std::ranges::views::, )
+SYMBOL(split, std::ranges::views::, )
+SYMBOL(take, std::ranges::views::, )
+SYMBOL(take_while, std::ranges::views::, )
+SYMBOL(transform, std::ranges::views::, )
+SYMBOL(values, std::ranges::views::, )
+SYMBOL(zip, std::ranges::views::, )
+SYMBOL(zip_transform, std::ranges::views::, )
 SYMBOL(ECMAScript, std::regex_constants::, )
 SYMBOL(awk, std::regex_constants::, )
 SYMBOL(basic, std::regex_constants::, )
@@ -3817,3 +3844,30 @@
 SYMBOL(sleep_for, std::this_thread::, )
 SYMBOL(sleep_until, std::this_thread::, )
 SYMBOL(yield, std::this_thread::, )
+SYMBOL(all, std::views::, )
+SYMBOL(all_t, std::views::, )
+SYMBOL(as_const, std::views::, )
+SYMBOL(as_rvalue, std::views::, )
+SYMBOL(common, std::views::, )
+SYMBOL(counted, std::views::, )
+SYMBOL(drop, std::views::, )
+SYMBOL(drop_while, std::views::, )
+SYMBOL(elements, std::views::, )
+SYMBOL(empty, std::views::, )
+SYMBOL(filter, std::views::, )
+SYMBOL(iota, std::views::, )
+SYMBOL(istream, std::views::, )
+SYMBOL(istream, std::views::, )
+SYMBOL(join, std::views::, )
+SYMBOL(join_with, std::views::, )
+SYMBOL(keys, std::views::, )
+SYMBOL(lazy_split, std::views::, )
+SYMBOL(reverse, std::views::, )
+SYMBOL(single, std::views::, )
+SYMBOL(split, std::views::, )
+SYMBOL(take, std::views::, )
+SYMBOL(take_while, std::views::, )
+SYMBOL(transform, std::views::, )
+SYMBOL(values, std::views::, )
+SYMBOL(zip, std::views::, )
+SYMBOL(zip_transform, std::views::, )


Index: clang/tools/include-mapping/gen_std.py
===
--- clang/tools/include-mapping/gen_std.py
+++ clang/tools/include-mapping/gen_std.py
@@ -242,6 +242,11 @@
 (symbol_index_root, "filesystem.html", "std::filesystem::"),
 (symbol_index_root, "pmr.html", "std::pmr::"),
 (symbol_index_root, "ranges.html", "std::ranges::"),
+
+(symbol_index_root, "views.html", "std::ranges::views::"),
+# std::ranges::views can be accessed as std::views.
+(symbol_index_root, "views.html", "std::views::"),
+
 (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
+++