summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/clangd/index/Index.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang-tools-extra/clangd/index/Index.cpp')
-rw-r--r--clang-tools-extra/clangd/index/Index.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/clang-tools-extra/clangd/index/Index.cpp b/clang-tools-extra/clangd/index/Index.cpp
index 20e4b44cc40..1120b22bb9f 100644
--- a/clang-tools-extra/clangd/index/Index.cpp
+++ b/clang-tools-extra/clangd/index/Index.cpp
@@ -9,6 +9,7 @@
#include "Index.h"
#include "llvm/ADT/StringExtras.h"
+#include "llvm/ADT/StringRef.h"
#include "llvm/Support/SHA1.h"
#include "llvm/Support/raw_ostream.h"
@@ -90,9 +91,11 @@ static void own(Symbol &S, llvm::UniqueStringSaver &Strings,
Intern(S.Signature);
Intern(S.CompletionSnippetSuffix);
+
Intern(S.Documentation);
Intern(S.ReturnType);
- Intern(S.IncludeHeader);
+ for (auto &I : S.IncludeHeaders)
+ Intern(I.IncludeHeader);
}
void SymbolSlab::Builder::insert(const Symbol &S) {
OpenPOWER on IntegriCloud