Fix clangd build after 33c9dbbd380
authorNico Weber <thakis@chromium.org>
Thu, 10 Sep 2020 15:05:28 +0000 (11:05 -0400)
committerNico Weber <thakis@chromium.org>
Thu, 10 Sep 2020 15:05:53 +0000 (11:05 -0400)
clang-tools-extra/clangd/CMakeLists.txt
llvm/utils/gn/secondary/clang-tools-extra/clangd/BUILD.gn

index 639441e..3a1a034 100644 (file)
@@ -33,6 +33,8 @@ if(MSVC AND NOT CLANG_CL)
  set_source_files_properties(CompileCommands.cpp PROPERTIES COMPILE_FLAGS -wd4130) # disables C4130: logical operation on address of string constant
 endif()
 
+include_directories(BEFORE "${CMAKE_CURRENT_BINARY_DIR}/../clang-tidy")
+
 add_clang_library(clangDaemon
   AST.cpp
   ClangdLSPServer.cpp
index 84d3f14..7fa4cc8 100644 (file)
@@ -27,6 +27,7 @@ static_library("clangd") {
     ":features",
     "//clang-tools-extra/clang-tidy",
     "//clang-tools-extra/clang-tidy:all-checks",
+    "//clang-tools-extra/clang-tidy:clang-tidy-config",
     "//clang-tools-extra/clangd/support",
     "//clang/lib/AST",
     "//clang/lib/ASTMatchers",