[PATCH] D141218: [clangd] Include the correct header for typeid()
Nathan Ridge via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Jan 9 15:07:24 PST 2023
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rG056d4dca7764: [clangd] Include the correct header for typeid() (authored by nridge).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D141218/new/
https://reviews.llvm.org/D141218
Files:
clang-tools-extra/clangd/IncludeFixer.cpp
Index: clang-tools-extra/clangd/IncludeFixer.cpp
===================================================================
--- clang-tools-extra/clangd/IncludeFixer.cpp
+++ clang-tools-extra/clangd/IncludeFixer.cpp
@@ -225,7 +225,7 @@
case diag::err_implied_std_initializer_list_not_found:
return only(insertHeader("<initializer_list>"));
case diag::err_need_header_before_typeid:
- return only(insertHeader("<typeid>"));
+ return only(insertHeader("<typeinfo>"));
case diag::err_need_header_before_placement_new:
case diag::err_implicit_coroutine_std_nothrow_type_not_found:
return only(insertHeader("<new>"));
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D141218.487572.patch
Type: text/x-patch
Size: 634 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230109/41d30d8d/attachment-0001.bin>
More information about the cfe-commits
mailing list