[PATCH] D31019: [clangd] [RFC] Use libclang and CXTranslationUnit instead of ASTUnit

Marc-Andre Laperle via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Mar 16 09:03:21 PDT 2017


malaperle-ericsson added a subscriber: bkramer.
malaperle-ericsson added a comment.

In https://reviews.llvm.org/D31019#702631, @bkramer wrote:

> It's not. the goal is to get rid of ASTUnit inside of clangd in the long term as it's a big problem for extensibility. libclang is just a wrapper for ASTUnit, with even more problems.
>
> If you want to get completion running, just call ASTUnit::CodeComplete.


Thanks a lot. When you say the goal is to get rid of ASTUnit, what would it be replaced with? Also, why would one use libclang over ASTUnit (libclangFrontend) then? Perhaps there's some documentation listing the pros and cons?


Repository:
  rL LLVM

https://reviews.llvm.org/D31019





More information about the cfe-commits mailing list