Skip to content

Commit 98e7670

Browse files
committed
[Tooling/Inclusion] Add more multi-header symbols to StdSpecialSymbolMap.inc
Differential Revision: https://reviews.llvm.org/D143569
1 parent 0352690 commit 98e7670

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

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

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,22 @@ SYMBOL(unwrap_ref_decay_t, std::, <type_traits>)
3030
SYMBOL(unwrap_ref_decay_t, std::, <functional>)
3131
SYMBOL(wint_t, std::, <cwctype>)
3232
SYMBOL(wint_t, std::, <cwchar>)
33+
SYMBOL(swap, std::, <utility>)
34+
SYMBOL(swap, std::, <algorithm>) // until C++11
35+
// C++ [string.view.synop 23.3.2]: The function templates defined in
36+
// [utility.swap] ... are available when <string_­view> is included.
37+
SYMBOL(swap, std::, <string_view>) // since C++17
38+
// C++ [tuple.helper 22.4.7]: In addition to being available via inclusion of
39+
// the <tuple> header, ... any of the headers <array>, <ranges>, or <utility>
40+
// are included.
41+
SYMBOL(tuple_size, std::, <tuple>)
42+
SYMBOL(tuple_size, std::, <array>)
43+
SYMBOL(tuple_size, std::, <ranges>)
44+
SYMBOL(tuple_size, std::, <utility>)
45+
SYMBOL(tuple_element, std::, <tuple>)
46+
SYMBOL(tuple_element, std::, <array>)
47+
SYMBOL(tuple_element, std::, <ranges>)
48+
SYMBOL(tuple_element, std::, <utility>)
3349
// C++ [iterator.range 25.7]: In addition to being available via inclusion of
3450
// the <iterator> header, the function templates in [iterator.range] are
3551
// available when any of the following headers are included: <array>, <deque>,

0 commit comments

Comments
 (0)