Skip to content

Commit

Permalink
[Tooling/Inclusion] Add binary search related std::ranges symbols t…
Browse files Browse the repository at this point in the history
…o the mapping. (#113796)

Fixes #94459.

This patch adds binary search related `std::ranges` symbols to the mapping.
  • Loading branch information
c8ef authored Oct 30, 2024
1 parent e6e0463 commit 68daf7d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions clang/lib/Tooling/Inclusions/Stdlib/StdSpecialSymbolMap.inc
Original file line number Diff line number Diff line change
Expand Up @@ -367,6 +367,11 @@ SYMBOL(any_cast, std::, <any>)
SYMBOL(div, std::, <cstdlib>)
SYMBOL(abort, std::, <cstdlib>)

SYMBOL(binary_search, std::ranges::, <algorithm>)
SYMBOL(equal_range, std::ranges::, <algorithm>)
SYMBOL(lower_bound, std::ranges::, <algorithm>)
SYMBOL(upper_bound, std::ranges::, <algorithm>)

// These are C symbols that are not under std namespace.
SYMBOL(localtime_r, None, <ctime>)
SYMBOL(localtime_r, None, <time.h>)
Expand Down

0 comments on commit 68daf7d

Please sign in to comment.