diff options
author | Sam McCall <sam.mccall@gmail.com> | 2020-08-13 10:43:51 +0200 |
---|---|---|
committer | Sam McCall <sam.mccall@gmail.com> | 2020-08-13 12:26:32 +0200 |
commit | 32626bcc0b9b1180db7eebc46c45faff7905bd05 (patch) | |
tree | 1f9d9f8e4e75db3c7e79d06ce787b033fbe6390c /llvm/lib/Object/ELFObjectFile.cpp | |
parent | 6af1677161fbcdedf8ba08e8ffd065c9451ae733 (diff) | |
download | llvm-32626bcc0b9b1180db7eebc46c45faff7905bd05.zip llvm-32626bcc0b9b1180db7eebc46c45faff7905bd05.tar.gz llvm-32626bcc0b9b1180db7eebc46c45faff7905bd05.tar.bz2 |
[clangd] Add ClangdServer::customAction() extension point
This lets basic AST-consuming actions be defined outside clangdserver.
(it essentially exposes TUScheduler::runWithAST).
Two use cases for now:
- replace ClangdServer::dumpAST, which doesn't really belong in the public
interface (a followup patch will do this)
- allow embedders to add/experiment with extra features
(e.g. I know some who want to try crazy AST+ML code completion...)
Maybe in the future we should use this sort of mechanism to make ClangdServer
less of a monolith, but that's not in scope for now.
This would probably require a richer and more carefully-thought-out API.
Differential Revision: https://reviews.llvm.org/D85883
Diffstat (limited to 'llvm/lib/Object/ELFObjectFile.cpp')
0 files changed, 0 insertions, 0 deletions