Adapt to llvm.org StringRef API change

This commit is contained in:
Fred Riss
2020-01-31 15:31:50 -08:00
committed by Michael Forster
parent 710799dd09
commit 259d78a350
99 changed files with 346 additions and 327 deletions

View File

@@ -398,15 +398,15 @@ static StringRef copyString(llvm::BumpPtrAllocator &allocator, StringRef str) {
static std::unique_ptr<Group> make_group(StringRef name) {
auto g = std::make_unique<Group>();
g->name = name;
g->description = name;
g->name = name.str();
g->description = name.str();
return g;
}
static std::unique_ptr<Result> make_result(Completion *result) {
auto r = std::make_unique<Result>(result);
r->name = result->getName();
r->description = result->getDescription();
r->name = result->getName().str();
r->description = result->getDescription().str();
return r;
}