-
Notifications
You must be signed in to change notification settings - Fork 12.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Tooling/Inclusion] Add binary search related std::ranges
symbols to the mapping.
#113796
Conversation
std::range
symbols to the mapping.
@llvm/pr-subscribers-clang Author: None (c8ef) ChangesFixes #94459. Full diff: https://github.com/llvm/llvm-project/pull/113796.diff 1 Files Affected:
diff --git a/clang/lib/Tooling/Inclusions/Stdlib/StdSymbolMap.inc b/clang/lib/Tooling/Inclusions/Stdlib/StdSymbolMap.inc
index b46bd2e4d7a4b5..48d1afc378d54f 100644
--- a/clang/lib/Tooling/Inclusions/Stdlib/StdSymbolMap.inc
+++ b/clang/lib/Tooling/Inclusions/Stdlib/StdSymbolMap.inc
@@ -3547,6 +3547,7 @@ SYMBOL(as_rvalue_view, std::ranges::, <ranges>)
SYMBOL(basic_istream_view, std::ranges::, <ranges>)
SYMBOL(begin, std::ranges::, <ranges>)
SYMBOL(bidirectional_range, std::ranges::, <ranges>)
+SYMBOL(binary_search, std::ranges::, <algorithm>)
SYMBOL(binary_transform_result, std::ranges::, <algorithm>)
SYMBOL(borrowed_iterator_t, std::ranges::, <ranges>)
SYMBOL(borrowed_range, std::ranges::, <ranges>)
@@ -3592,6 +3593,7 @@ SYMBOL(enable_view, std::ranges::, <ranges>)
SYMBOL(end, std::ranges::, <ranges>)
SYMBOL(ends_with, std::ranges::, <algorithm>)
SYMBOL(equal, std::ranges::, <algorithm>)
+SYMBOL(equal_range, std::ranges::, <algorithm>)
SYMBOL(equal_to, std::ranges::, <functional>)
SYMBOL(fill, std::ranges::, <algorithm>)
SYMBOL(fill_n, std::ranges::, <algorithm>)
@@ -3643,6 +3645,7 @@ SYMBOL(lazy_split_view, std::ranges::, <ranges>)
SYMBOL(less, std::ranges::, <functional>)
SYMBOL(less_equal, std::ranges::, <functional>)
SYMBOL(lexicographical_compare, std::ranges::, <algorithm>)
+SYMBOL(lower_bound, std::ranges::, <algorithm>)
SYMBOL(make_heap, std::ranges::, <algorithm>)
SYMBOL(max, std::ranges::, <algorithm>)
SYMBOL(max_element, std::ranges::, <algorithm>)
@@ -3765,6 +3768,7 @@ SYMBOL(uninitialized_value_construct_n, std::ranges::, <memory>)
SYMBOL(unique, std::ranges::, <algorithm>)
SYMBOL(unique_copy, std::ranges::, <algorithm>)
SYMBOL(unique_copy_result, std::ranges::, <algorithm>)
+SYMBOL(upper_bound, std::ranges::, <algorithm>)
SYMBOL(values_view, std::ranges::, <ranges>)
SYMBOL(view, std::ranges::, <ranges>)
SYMBOL(view_base, std::ranges::, <ranges>)
|
std::range
symbols to the mapping.std::ranges
symbols to the mapping.
can you move these changes into |
Done. Please take another look. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks, lgtm!
let me know if i should land this for you
@@ -411,6 +411,11 @@ SYMBOL(_27, std::placeholders::, <functional>) | |||
SYMBOL(_28, std::placeholders::, <functional>) | |||
SYMBOL(_29, std::placeholders::, <functional>) | |||
|
|||
SYMBOL(binary_search, std::ranges::, <algorithm>) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you move this next to
llvm-project/clang/lib/Tooling/Inclusions/Stdlib/StdSpecialSymbolMap.inc
Lines 363 to 369 in 2de1fc8
// Symbols missing from the generated symbol map as reported by users. | |
// Remove when the generator starts producing them. | |
SYMBOL(make_any, std::, <any>) | |
SYMBOL(any_cast, std::, <any>) | |
SYMBOL(div, std::, <cstdlib>) | |
SYMBOL(abort, std::, <cstdlib>) | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
Thanks for your review! |
LLVM Buildbot has detected a new failure on builder Full details are available at: https://lab.llvm.org/buildbot/#/builders/162/builds/9362 Here is the relevant piece of the build log for the reference
|
…o the mapping. (llvm#113796) Fixes llvm#94459. This patch adds binary search related `std::ranges` symbols to the mapping.
Fixes #94459.