Skip to content

Commit d8ef7b6

Browse files
authored
[clang-tidy] Stop linking against clangSema (#113373)
This is bad layering-wise. The only fix needed now is to anchor `SemaConsumer` vtable, which is also done in this patch.
1 parent cb46662 commit d8ef7b6

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

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

-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ clang_target_link_libraries(clangTidy
3535
clangFrontend
3636
clangLex
3737
clangRewrite
38-
clangSema
3938
clangSerialization
4039
clangTooling
4140
clangToolingCore

clang-tools-extra/clang-tidy/ClangTidy.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -336,6 +336,7 @@ class ClangTidyASTConsumer : public MultiplexConsumer {
336336
std::unique_ptr<ClangTidyProfiling> Profiling;
337337
std::unique_ptr<ast_matchers::MatchFinder> Finder;
338338
std::vector<std::unique_ptr<ClangTidyCheck>> Checks;
339+
void anchor() override {};
339340
};
340341

341342
} // namespace

0 commit comments

Comments
 (0)