[PATCH] D30498: [clangd] Add support for FixIts.
Benjamin Kramer via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Mar 1 06:34:21 PST 2017
bkramer created this revision.
This uses CodeActions to show 'apply fix' actions when code actions are
requested for a location. The actions themselves make use of a
clangd.applyFix command which has to be implemented on the editor side. I
included an implementation for vscode.
This also adds a -run-synchronously flag which runs everything on the main
thread. This is useful for testing.
https://reviews.llvm.org/D30498
Files:
clangd/ASTManager.cpp
clangd/ASTManager.h
clangd/ClangDMain.cpp
clangd/Protocol.cpp
clangd/Protocol.h
clangd/ProtocolHandlers.cpp
clangd/ProtocolHandlers.h
clangd/clients/clangd-vscode/src/extension.ts
test/clangd/fixits.test
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D30498.90175.patch
Type: text/x-patch
Size: 24737 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20170301/642da6d7/attachment-0001.bin>
More information about the cfe-commits
mailing list