[clang-tools-extra] [clang-tidy] Fix crash in misc-static-initialization-cycle with clangd (PR #245174)
Zeyi Xu via cfe-commits
cfe-commits at lists.llvm.org
Mon Nov 23 02:07:43 PST 2026
================
@@ -450,6 +450,26 @@ TEST(DiagnosticsTest, ClangTidyEOF) {
diagSource(Diag::ClangTidy), diagName("llvm-include-order")))));
}
+TEST(DiagnosticsTest, ClangTidyStaticInitializationCycleInitInInclude) {
----------------
zeyi2 wrote:
A quick note on the new test: this crash cannot be reproduced with clang-tidy itself, so the regression test is a clangd unit test rather than a tidy lit test.
https://github.com/llvm/llvm-project/pull/245174
More information about the cfe-commits
mailing list