[PATCH] D145302: [clangd] Add library for clangd main function

Ivan Murashko via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sat Mar 4 02:30:05 PST 2023


ivanmurashko created this revision.
ivanmurashko added reviewers: sammccall, kadircet, ilya-biryukov.
Herald added a subscriber: arphaman.
Herald added a project: All.
ivanmurashko requested review of this revision.
Herald added subscribers: cfe-commits, MaskRay.
Herald added a project: clang-tools-extra.

The diff adds a library for clangd main function. That change allows to create custom builds for clangd outside the main LLVM repo. The main reason for such builds is an ability to use custom clang-tidy modules (created outside LLVM repo).

Note: The possibility for the custom clang-tidy modules was added recently at https://reviews.llvm.org/D73300. The header installation for clangd was also added as a separate diff: https://reviews.llvm.org/D145228

Test Plan:

  ninja clangd

also check that necessary libs are installed aka

  ninja install
  ...
  ls <install folder>/lib/libclangdMain.a


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D145302

Files:
  clang-tools-extra/clangd/tool/CMakeLists.txt
  clang-tools-extra/clangd/tool/ClangdMain.cpp
  clang-tools-extra/clangd/tool/ClangdMain.h
  clang-tools-extra/clangd/tool/ClangdToolMain.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D145302.502363.patch
Type: text/x-patch
Size: 4288 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230304/9c2e12fd/attachment.bin>


More information about the cfe-commits mailing list