[clang] 98e7670 - [Tooling/Inclusion] Add more multi-header symbols to StdSpecialSymbolMap.inc

Haojian Wu via cfe-commits cfe-commits at lists.llvm.org
Wed Feb 8 11:16:04 PST 2023


Author: Haojian Wu
Date: 2023-02-08T20:15:47+01:00
New Revision: 98e7670b64d8b5bbb12432945b476cc9634b6358

URL: https://github.com/llvm/llvm-project/commit/98e7670b64d8b5bbb12432945b476cc9634b6358
DIFF: https://github.com/llvm/llvm-project/commit/98e7670b64d8b5bbb12432945b476cc9634b6358.diff

LOG: [Tooling/Inclusion] Add more multi-header symbols to StdSpecialSymbolMap.inc

Differential Revision: https://reviews.llvm.org/D143569

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 21cadd3c190bc..3d2ea91a94d36 100644
--- a/clang/lib/Tooling/Inclusions/Stdlib/StdSpecialSymbolMap.inc
+++ b/clang/lib/Tooling/Inclusions/Stdlib/StdSpecialSymbolMap.inc
@@ -30,6 +30,22 @@ SYMBOL(unwrap_ref_decay_t, std::, <type_traits>)
 SYMBOL(unwrap_ref_decay_t, std::, <functional>)
 SYMBOL(wint_t, std::, <cwctype>)
 SYMBOL(wint_t, std::, <cwchar>)
+SYMBOL(swap, std::, <utility>)
+SYMBOL(swap, std::, <algorithm>) // until C++11
+// C++ [string.view.synop 23.3.2]: The function templates defined in
+// [utility.swap] ... are available when <string_­view> is included.
+SYMBOL(swap, std::, <string_view>) // since C++17
+// C++ [tuple.helper 22.4.7]: In addition to being available via inclusion of
+// the <tuple> header, ... any of the headers <array>, <ranges>, or <utility>
+// are included.
+SYMBOL(tuple_size, std::, <tuple>)
+SYMBOL(tuple_size, std::, <array>)
+SYMBOL(tuple_size, std::, <ranges>)
+SYMBOL(tuple_size, std::, <utility>)
+SYMBOL(tuple_element, std::, <tuple>)
+SYMBOL(tuple_element, std::, <array>)
+SYMBOL(tuple_element, std::, <ranges>)
+SYMBOL(tuple_element, std::, <utility>)
 // C++ [iterator.range 25.7]: In addition to being available via inclusion of
 // the <iterator> header, the function templates in [iterator.range] are
 // available when any of the following headers are included: <array>, <deque>,


        


More information about the cfe-commits mailing list