This is an archive of the discontinued LLVM Phabricator instance.

clangd: Stop calling FileEntryRef::FileEntryRef
ClosedPublic

Authored by dexonsmith on Oct 15 2020, 4:34 PM.

Details

Summary

In ReplayPreamble::replay, use getFileRef instead of getFile, and
then use that FileEntryRef later to avoid needing
FileEntryRef::FileEntryRef. The latter is going to become private to
FileManager in a later commit.

Diff Detail

Event Timeline

dexonsmith created this revision.Oct 15 2020, 4:34 PM
dexonsmith requested review of this revision.Oct 15 2020, 4:34 PM
arphaman accepted this revision.Oct 23 2020, 4:52 PM

LGTM with a nit.

clang-tools-extra/clangd/ParsedAST.cpp
222

You can drop the FIXME here now.

This revision is now accepted and ready to land.Oct 23 2020, 4:52 PM
dexonsmith marked an inline comment as done.Oct 23 2020, 6:30 PM
clang-tools-extra/clangd/ParsedAST.cpp
222

Good point, fixed.

dexonsmith closed this revision.Oct 23 2020, 6:34 PM
dexonsmith marked an inline comment as done.