[Clang] Fix missing libraries for the include cleaner check
authorJoseph Huber <jhuber6@vols.utk.edu>
Fri, 2 Jun 2023 17:42:15 +0000 (12:42 -0500)
committerJoseph Huber <jhuber6@vols.utk.edu>
Fri, 2 Jun 2023 17:43:55 +0000 (12:43 -0500)
Summary:
Recently, the changes in https://reviews.llvm.org/D148793 introduced
some extra dependencies that caused link failured on my machine. This
patch adds the necessary libraries to resolve the link failures and
allow me to build again.

clang-tools-extra/clang-tidy/misc/CMakeLists.txt

index 1703ff8..fde72f6 100644 (file)
@@ -55,8 +55,11 @@ clang_target_link_libraries(clangTidyMiscModule
   clangAST
   clangASTMatchers
   clangBasic
+  clangFormat
   clangIncludeCleaner
   clangLex
   clangSerialization
   clangTooling
+  clangToolingInclusions
+  clangToolingInclusionsStdlib
   )