[clang-tools-extra] [clang-tidy] Fix loading clang-tidy as a Clang frontend plugin (PR #221961)
Zeyi Xu via cfe-commits
cfe-commits at lists.llvm.org
Tue Sep 8 04:36:25 PDT 2026
================
@@ -8,10 +8,16 @@
#include "../ClangTidy.h"
#include "../ClangTidyDiagnosticConsumer.h"
+#include "../ClangTidyForceLinker.h" // IWYU pragma: keep
----------------
zeyi2 wrote:
This header ensures the built-in checks are linked into the plugin and registered. It was removed as an unused include in #141420, breaking check registration in the plugin.
https://github.com/llvm/llvm-project/pull/221961
More information about the cfe-commits
mailing list