[clang-tools-extra] r343448 - [clangd] Fix header mapping for std::string. NFC

Eric Liu via cfe-commits cfe-commits at lists.llvm.org
Mon Oct 1 01:50:49 PDT 2018


Author: ioeric
Date: Mon Oct  1 01:50:49 2018
New Revision: 343448

URL: http://llvm.org/viewvc/llvm-project?rev=343448&view=rev
Log:
[clangd] Fix header mapping for std::string. NFC

Some implementation has std::string declared in <iosfwd>.

Modified:
    clang-tools-extra/trunk/clangd/index/CanonicalIncludes.cpp

Modified: clang-tools-extra/trunk/clangd/index/CanonicalIncludes.cpp
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clangd/index/CanonicalIncludes.cpp?rev=343448&r1=343447&r2=343448&view=diff
==============================================================================
--- clang-tools-extra/trunk/clangd/index/CanonicalIncludes.cpp (original)
+++ clang-tools-extra/trunk/clangd/index/CanonicalIncludes.cpp Mon Oct  1 01:50:49 2018
@@ -143,6 +143,7 @@ void addSystemHeadersMapping(CanonicalIn
       {"std::basic_stringstream", "<sstream>"},
       {"std::istringstream", "<sstream>"},
       {"std::ostringstream", "<sstream>"},
+      {"std::string", "<string>"},
       {"std::stringbuf", "<sstream>"},
       {"std::stringstream", "<sstream>"},
       {"std::wistringstream", "<sstream>"},




More information about the cfe-commits mailing list