[clang] 68daf7d - [Tooling/Inclusion] Add binary search related `std::ranges` symbols to the mapping. (#113796)

via cfe-commits cfe-commits at lists.llvm.org
Wed Oct 30 07:04:17 PDT 2024


Author: c8ef
Date: 2024-10-30T22:04:14+08:00
New Revision: 68daf7d27ecc085fe7347552736197db6453f71c

URL: https://github.com/llvm/llvm-project/commit/68daf7d27ecc085fe7347552736197db6453f71c
DIFF: https://github.com/llvm/llvm-project/commit/68daf7d27ecc085fe7347552736197db6453f71c.diff

LOG: [Tooling/Inclusion] Add binary search related `std::ranges` symbols to the mapping. (#113796)

Fixes #94459.

This patch adds binary search related `std::ranges` symbols to the mapping.

Added: 
    

Modified: 
    clang/lib/Tooling/Inclusions/Stdlib/StdSpecialSymbolMap.inc

Removed: 
    


################################################################################
diff  --git a/clang/lib/Tooling/Inclusions/Stdlib/StdSpecialSymbolMap.inc b/clang/lib/Tooling/Inclusions/Stdlib/StdSpecialSymbolMap.inc
index 0d351d688a3296..4d466013eeac3f 100644
--- a/clang/lib/Tooling/Inclusions/Stdlib/StdSpecialSymbolMap.inc
+++ b/clang/lib/Tooling/Inclusions/Stdlib/StdSpecialSymbolMap.inc
@@ -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>)


        


More information about the cfe-commits mailing list