diff --git a/clang-tools-extra/clang-tidy/CMakeLists.txt b/clang-tools-extra/clang-tidy/CMakeLists.txt index 83a3236131dc93..93117cf1d6373a 100644 --- a/clang-tools-extra/clang-tidy/CMakeLists.txt +++ b/clang-tools-extra/clang-tidy/CMakeLists.txt @@ -35,7 +35,6 @@ clang_target_link_libraries(clangTidy clangFrontend clangLex clangRewrite - clangSema clangSerialization clangTooling clangToolingCore diff --git a/clang-tools-extra/clang-tidy/ClangTidy.cpp b/clang-tools-extra/clang-tidy/ClangTidy.cpp index c4cac7d27b77c2..9c8c93c5d16c72 100644 --- a/clang-tools-extra/clang-tidy/ClangTidy.cpp +++ b/clang-tools-extra/clang-tidy/ClangTidy.cpp @@ -336,6 +336,7 @@ class ClangTidyASTConsumer : public MultiplexConsumer { std::unique_ptr Profiling; std::unique_ptr Finder; std::vector> Checks; + void anchor() override {}; }; } // namespace