This is an archive of the discontinued LLVM Phabricator instance.

[clangd] Propogate FS into Tweak::Selection
AbandonedPublic

Authored by kadircet on Oct 18 2019, 9:00 AM.

Details

Reviewers
ilya-biryukov
Summary

Incoming define out-of-line code action needs to access files that
weren't touched during compilation of the translation unit. This patch passes FS
into Tweak::Selection to make files accessible.

Diff Detail

Event Timeline

kadircet created this revision.Oct 18 2019, 9:00 AM
Herald added a project: Restricted Project. · View Herald TranscriptOct 18 2019, 9:00 AM

This can be obtained from the file manager inside the AST.
I guess a helper function to do this would be helpful, but I don't think we need to strore another copy of it.
WDYT?

kadircet abandoned this revision.Oct 21 2019, 6:28 AM

As discussed offline, dropping the change to fetch the FS from filemanager, to prevent any consistency that might be caused due to having different contents for files in AST while creating it vs while generating refactorings.