[PATCH] D56267: [clangd] Interfaces for writing code actions
Ilya Biryukov via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Jan 28 13:16:33 PST 2019
ilya-biryukov added inline comments.
================
Comment at: clang-tools-extra/clangd/Protocol.cpp:425
+const llvm::StringLiteral ExecuteCommandParams::CLANGD_APPLY_TWEAK =
+ "clangd.applyCodeAction";
+
----------------
sammccall wrote:
> tweak or applyTweak
Done. Thanks for spotting this, totally missed it.
================
Comment at: clang-tools-extra/clangd/SourceCode.h:59
+/// care to avoid comparing the result with expansion locations.
+llvm::Expected<SourceLocation> sourceLocationInMainFile(const SourceManager &SM,
+ Position P);
----------------
sammccall wrote:
> (can we add a unit test for this function?)
Added a test in `ClangdUnitTests` for a lack of a better place. `SourceCodeTests` only test non-source-manager-related things, so adding a dependency on `SourceManager` there seemed weird.
Happy to move them elsewhere, let me know what you think.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D56267/new/
https://reviews.llvm.org/D56267
More information about the cfe-commits
mailing list