Incoming define out-of-line tweak requires access to index.
This patch simply propogates the index in ClangdServer to Tweak::Selection while
passing the AST. Also updates TweakTest to accommodate this change.
Paths
| Differential D69165
[clangd] Store Index in Tweak::Selection ClosedPublic Authored by kadircet on Oct 18 2019, 6:09 AM.
Details Summary Incoming define out-of-line tweak requires access to index. This patch simply propogates the index in ClangdServer to Tweak::Selection while
Diff Detail
Event Timelinekadircet added a parent revision: D66647: [clangd] DefineInline action apply logic with fully qualified names.Oct 18 2019, 6:17 AM kadircet added a child revision: D69177: [clangd] Propogate FS into Tweak::Selection.Oct 18 2019, 9:00 AM Comment Actions Overall LG, just a few quick questions.
kadircet added inline comments.
kadircet added inline comments.
ilya-biryukov marked an inline comment as done. Comment ActionsLGTM. Thanks
This revision is now accepted and ready to land.Oct 21 2019, 5:43 AM kadircet added a child revision: D69266: [clangd] Define out-of-line availability checks.Oct 22 2019, 3:54 AM Closed by commit rG8aa84ad37db7: [clangd] Store Index in Tweak::Selection (authored by kadircet). · Explain WhyOct 25 2019, 3:24 AM This revision was automatically updated to reflect the committed changes. kadircet removed a child revision: D69266: [clangd] Define out-of-line availability checks.Nov 28 2019, 2:48 AM
Revision Contents
Diff 226399 clang-tools-extra/clangd/ClangdServer.cpp
clang-tools-extra/clangd/refactor/Tweak.h
clang-tools-extra/clangd/refactor/Tweak.cpp
clang-tools-extra/clangd/unittests/TweakTesting.h
clang-tools-extra/clangd/unittests/TweakTesting.cpp
|
NIT: move it closer to the ParsedAST in constructor as well?