[cfe-dev] Dependencies between tools

Alexander Kornienko via cfe-dev cfe-dev at lists.llvm.org
Mon May 14 09:30:48 PDT 2018


On Mon, Apr 23, 2018 at 11:10 AM Ilya Biryukov <ibiryukov at google.com> wrote:

> You're right, all of clang-extra-tools are not structured as libraries. I
> guess the most principled approach would to follow LLVM's convention and
> move public headers into include/, everything else to lib/, etc.
>
> +Alexander Kornienko <alexfh at google.com>, have you considered extracting
> a public library interface for clang-tidy before? Any ideas on how to do it
> properly?
>

Clang-tidy has been used as a library since its appearance. But this was
done outside the official source tree. If there's interest in using it from
clangd, but something is missing in the appropriate CMake configs, we
should fix them. However, it looks
like tools/extra/clang-tidy/CMakeLists.txt already defines
`add_clang_library(clangTidy ...`, which should be enough?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20180514/079dccc8/attachment.html>


More information about the cfe-dev mailing list