Intent was a nice idea but it ends up being a bit awkward/heavyweight
without adding much.
In particular, it makes it hard to implement CodeActionParams.only properly
(there's an inheritance hierarchy for kinds).
Paths
| Differential D88427
[clangd] Remove Tweak::Intent, use CodeAction kind directly ClosedPublic Authored by sammccall on Sep 28 2020, 9:17 AM.
Details Summary Intent was a nice idea but it ends up being a bit awkward/heavyweight In particular, it makes it hard to implement CodeActionParams.only properly
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Oct 1 2020, 11:31 PM This revision was landed with ongoing or failed builds.Oct 2 2020, 2:14 AM Closed by commit rG17747d2ec8ec: [clangd] Remove Tweak::Intent, use CodeAction kind directly. NFC (authored by sammccall). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 294726 clang-tools-extra/clangd/ClangdLSPServer.cpp
clang-tools-extra/clangd/ClangdServer.h
clang-tools-extra/clangd/ClangdServer.cpp
clang-tools-extra/clangd/refactor/Tweak.h
clang-tools-extra/clangd/refactor/tweaks/AddUsing.cpp
clang-tools-extra/clangd/refactor/tweaks/AnnotateHighlightings.cpp
clang-tools-extra/clangd/refactor/tweaks/DefineInline.cpp
clang-tools-extra/clangd/refactor/tweaks/DefineOutline.cpp
clang-tools-extra/clangd/refactor/tweaks/DumpAST.cpp
clang-tools-extra/clangd/refactor/tweaks/ExpandAutoType.cpp
clang-tools-extra/clangd/refactor/tweaks/ExpandMacro.cpp
clang-tools-extra/clangd/refactor/tweaks/ExtractFunction.cpp
clang-tools-extra/clangd/refactor/tweaks/ExtractVariable.cpp
clang-tools-extra/clangd/refactor/tweaks/ObjCLocalizeStringLiteral.cpp
clang-tools-extra/clangd/refactor/tweaks/RawStringLiteral.cpp
clang-tools-extra/clangd/refactor/tweaks/RemoveUsingNamespace.cpp
clang-tools-extra/clangd/refactor/tweaks/SwapIfBranches.cpp
|