File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -269,13 +269,9 @@ void IndexBuilder::addExternalSymbolUnchecked(
269
269
for (auto &rel : *extSym.mutable_relationships ()) {
270
270
rels.insert ({std::move (rel)});
271
271
}
272
- // SAFETY: Don't inline this assignment statement since lack of
273
- // guarantees around subexpression evaluation order mean that
274
- // the std::move(name) may happen before name.asStringRef() is called.
275
272
auto builder = std::make_unique<SymbolInformationBuilder>(
276
273
name, std::move (docs), std::move (rels));
277
274
this ->externalSymbols .emplace (name, std::move (builder));
278
- return ;
279
275
}
280
276
281
277
void IndexBuilder::addExternalSymbol (scip::SymbolInformation &&extSym) {
@@ -313,6 +309,9 @@ IndexBuilder::populateForwardDeclResolver() {
313
309
for (auto &[_, docBuilder] : this ->multiplyIndexed ) {
314
310
docBuilder->populateForwardDeclResolver (forwardDeclResolver);
315
311
}
312
+ for (auto &[symbolName, _] : this ->externalSymbols ) {
313
+ forwardDeclResolver.insertExternal (symbolName);
314
+ }
316
315
return std::make_unique<ForwardDeclResolver>(std::move (forwardDeclResolver));
317
316
}
318
317
You can’t perform that action at this time.
0 commit comments