Author: Haojian Wu Date: 2023-07-31T13:05:47+02:00 New Revision: 171868dc2cd60c6e3eaeb3861b18ba0e22461291
URL: https://github.com/llvm/llvm-project/commit/171868dc2cd60c6e3eaeb3861b18ba0e22461291 DIFF: https://github.com/llvm/llvm-project/commit/171868dc2cd60c6e3eaeb3861b18ba0e22461291.diff LOG: [Tooling/Inclusion] Add std::range symbols in the mapping. Fixes https://github.com/llvm/llvm-project/issues/64191 Differential Revision: https://reviews.llvm.org/D156648 Added: Modified: clang/lib/Tooling/Inclusions/Stdlib/StdSymbolMap.inc clang/tools/include-mapping/gen_std.py Removed: ################################################################################ diff --git a/clang/lib/Tooling/Inclusions/Stdlib/StdSymbolMap.inc b/clang/lib/Tooling/Inclusions/Stdlib/StdSymbolMap.inc index a08ec11e77a4a9..b46bd2e4d7a4b5 100644 --- a/clang/lib/Tooling/Inclusions/Stdlib/StdSymbolMap.inc +++ b/clang/lib/Tooling/Inclusions/Stdlib/StdSymbolMap.inc @@ -3773,6 +3773,33 @@ SYMBOL(viewable_range, std::ranges::, <ranges>) SYMBOL(wistream_view, std::ranges::, <ranges>) SYMBOL(zip_transform_view, std::ranges::, <ranges>) SYMBOL(zip_view, std::ranges::, <ranges>) +SYMBOL(all, std::ranges::views::, <ranges>) +SYMBOL(all_t, std::ranges::views::, <ranges>) +SYMBOL(as_const, std::ranges::views::, <ranges>) +SYMBOL(as_rvalue, std::ranges::views::, <ranges>) +SYMBOL(common, std::ranges::views::, <ranges>) +SYMBOL(counted, std::ranges::views::, <ranges>) +SYMBOL(drop, std::ranges::views::, <ranges>) +SYMBOL(drop_while, std::ranges::views::, <ranges>) +SYMBOL(elements, std::ranges::views::, <ranges>) +SYMBOL(empty, std::ranges::views::, <ranges>) +SYMBOL(filter, std::ranges::views::, <ranges>) +SYMBOL(iota, std::ranges::views::, <ranges>) +SYMBOL(istream, std::ranges::views::, <ranges>) +SYMBOL(istream, std::ranges::views::, <iosfwd>) +SYMBOL(join, std::ranges::views::, <ranges>) +SYMBOL(join_with, std::ranges::views::, <ranges>) +SYMBOL(keys, std::ranges::views::, <ranges>) +SYMBOL(lazy_split, std::ranges::views::, <ranges>) +SYMBOL(reverse, std::ranges::views::, <ranges>) +SYMBOL(single, std::ranges::views::, <ranges>) +SYMBOL(split, std::ranges::views::, <ranges>) +SYMBOL(take, std::ranges::views::, <ranges>) +SYMBOL(take_while, std::ranges::views::, <ranges>) +SYMBOL(transform, std::ranges::views::, <ranges>) +SYMBOL(values, std::ranges::views::, <ranges>) +SYMBOL(zip, std::ranges::views::, <ranges>) +SYMBOL(zip_transform, std::ranges::views::, <ranges>) SYMBOL(ECMAScript, std::regex_constants::, <regex>) SYMBOL(awk, std::regex_constants::, <regex>) SYMBOL(basic, std::regex_constants::, <regex>) @@ -3817,3 +3844,30 @@ SYMBOL(get_id, std::this_thread::, <thread>) SYMBOL(sleep_for, std::this_thread::, <thread>) SYMBOL(sleep_until, std::this_thread::, <thread>) SYMBOL(yield, std::this_thread::, <thread>) +SYMBOL(all, std::views::, <ranges>) +SYMBOL(all_t, std::views::, <ranges>) +SYMBOL(as_const, std::views::, <ranges>) +SYMBOL(as_rvalue, std::views::, <ranges>) +SYMBOL(common, std::views::, <ranges>) +SYMBOL(counted, std::views::, <ranges>) +SYMBOL(drop, std::views::, <ranges>) +SYMBOL(drop_while, std::views::, <ranges>) +SYMBOL(elements, std::views::, <ranges>) +SYMBOL(empty, std::views::, <ranges>) +SYMBOL(filter, std::views::, <ranges>) +SYMBOL(iota, std::views::, <ranges>) +SYMBOL(istream, std::views::, <ranges>) +SYMBOL(istream, std::views::, <iosfwd>) +SYMBOL(join, std::views::, <ranges>) +SYMBOL(join_with, std::views::, <ranges>) +SYMBOL(keys, std::views::, <ranges>) +SYMBOL(lazy_split, std::views::, <ranges>) +SYMBOL(reverse, std::views::, <ranges>) +SYMBOL(single, std::views::, <ranges>) +SYMBOL(split, std::views::, <ranges>) +SYMBOL(take, std::views::, <ranges>) +SYMBOL(take_while, std::views::, <ranges>) +SYMBOL(transform, std::views::, <ranges>) +SYMBOL(values, std::views::, <ranges>) +SYMBOL(zip, std::views::, <ranges>) +SYMBOL(zip_transform, std::views::, <ranges>) diff --git a/clang/tools/include-mapping/gen_std.py b/clang/tools/include-mapping/gen_std.py index 2390ff1f2cced7..57a5a6772ba894 100755 --- a/clang/tools/include-mapping/gen_std.py +++ b/clang/tools/include-mapping/gen_std.py @@ -242,6 +242,11 @@ def main(): (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 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits