summaryrefslogtreecommitdiff
path: root/clang-tools-extra
diff options
context:
space:
mode:
authorEric Liu <ioeric@google.com>2018-10-01 08:50:49 +0000
committerEric Liu <ioeric@google.com>2018-10-01 08:50:49 +0000
commit77b7ca42b0ea496373c5e5a9710b1fe11e1fba68 (patch)
treeef16528c94e1861a069e3571abf34723a8402265 /clang-tools-extra
parent5b14c698b01d6cac3bcf6f34036126f2be316e84 (diff)
[clangd] Fix header mapping for std::string. NFC
Some implementation has std::string declared in <iosfwd>.
Diffstat (limited to 'clang-tools-extra')
-rw-r--r--clang-tools-extra/clangd/index/CanonicalIncludes.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang-tools-extra/clangd/index/CanonicalIncludes.cpp b/clang-tools-extra/clangd/index/CanonicalIncludes.cpp
index 4bb7fa6c942..757c8ff2f24 100644
--- a/clang-tools-extra/clangd/index/CanonicalIncludes.cpp
+++ b/clang-tools-extra/clangd/index/CanonicalIncludes.cpp
@@ -143,6 +143,7 @@ void addSystemHeadersMapping(CanonicalIncludes *Includes) {
{"std::basic_stringstream", "<sstream>"},
{"std::istringstream", "<sstream>"},
{"std::ostringstream", "<sstream>"},
+ {"std::string", "<string>"},
{"std::stringbuf", "<sstream>"},
{"std::stringstream", "<sstream>"},
{"std::wistringstream", "<sstream>"},