[all-commits] [llvm/llvm-project] 56ac9d: [clangd] Add library for clangd main function

Ivan Murashko via All-commits all-commits at lists.llvm.org
Tue Jul 11 13:50:23 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 56ac9d46a7c1468d587ccec02a781e52d0bb298a
      https://github.com/llvm/llvm-project/commit/56ac9d46a7c1468d587ccec02a781e52d0bb298a
  Author: Ivan Murashko <ivan.murashko at gmail.com>
  Date:   2023-07-11 (Tue, 11 Jul 2023)

  Changed paths:
    M clang-tools-extra/clangd/tool/CMakeLists.txt
    M clang-tools-extra/clangd/tool/ClangdMain.cpp
    A clang-tools-extra/clangd/tool/ClangdMain.h
    A clang-tools-extra/clangd/tool/ClangdToolMain.cpp

  Log Message:
  -----------
  [clangd] Add library for clangd main function

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

Test Plan:
```
ninja clangd
```
also check that necessary libs are installed aka
```
ninja install
...
ls <install folder>/lib/libclangdMain.a
```

Differential Revision: https://reviews.llvm.org/D145302




More information about the All-commits mailing list