[Tooling/Inclusion] Add missing index_sequence symbols.
authorHaojian Wu <hokein.wu@gmail.com>
Mon, 6 Mar 2023 11:06:44 +0000 (12:06 +0100)
committerHaojian Wu <hokein.wu@gmail.com>
Mon, 6 Mar 2023 13:09:49 +0000 (14:09 +0100)
Fixes https://github.com/llvm/llvm-project/issues/61026

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

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

index 692f61a45e6f46c7df82dd8441d052447b34e27d..ecdcfee35128b30ac65766e6eaf64276df4f0091 100644 (file)
@@ -247,6 +247,13 @@ SYMBOL(abs, None, <math.h>)
 // Don't set any header for it, as it comes with the type header.
 SYMBOL(get, std::, /*no headers*/)
 
+// cppreference symbol index page was missing these symbols.
+// Remove them when the cppreference offline archive catches up.
+SYMBOL(index_sequence, std::, <utility>)
+SYMBOL(index_sequence_for, std::, <utility>)
+SYMBOL(make_index_sequence, std::, <utility>)
+SYMBOL(make_integer_sequence, std::, <utility>)
+
 // Macros
 SYMBOL(NULL, None, <cstddef>)
 SYMBOL(NULL, None, <stddef.h>)