[PATCH] D62538: [clangd] Add hidden tweaks to dump AST/selection.
Sam McCall via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue May 28 11:04:39 PDT 2019
sammccall created this revision.
sammccall added a reviewer: ilya-biryukov.
Herald added subscribers: cfe-commits, kadircet, arphaman, jkorous, MaskRay, mgorny.
Herald added a project: clang.
This introduces a few new concepts:
- tweaks have an Intent (they don't all advertise as refactorings)
- tweaks may produce messages (for ShowMessage notification). Generalized Replacements -> Effect.
- tweaks (and other features) may be hidden (clangd -hidden-features flag). We may choose to promote these one day. I'm not sure they're worth their own feature flags though.
Verified it in vim-clangd (not yet open source), curious if the UI is ok in VSCode.
Repository:
rCTE Clang Tools Extra
https://reviews.llvm.org/D62538
Files:
clangd/ClangdLSPServer.cpp
clangd/ClangdServer.cpp
clangd/ClangdServer.h
clangd/Protocol.cpp
clangd/Protocol.h
clangd/refactor/Tweak.h
clangd/refactor/tweaks/CMakeLists.txt
clangd/refactor/tweaks/DumpAST.cpp
clangd/refactor/tweaks/RawStringLiteral.cpp
clangd/refactor/tweaks/SwapIfBranches.cpp
clangd/tool/ClangdMain.cpp
clangd/unittests/TweakTests.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D62538.201719.patch
Type: text/x-patch
Size: 22919 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20190528/bb7bc09f/attachment-0001.bin>
More information about the cfe-commits
mailing list