[clang-tools-extra] [clang-tidy] Add new check 'misc-static-initialization-cycle' (PR #175342)
DonĂ¡t Nagy via cfe-commits
cfe-commits at lists.llvm.org
Mon May 4 05:17:57 PDT 2026
================
@@ -0,0 +1,402 @@
+//===----------------------------------------------------------------------===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+
+#include "StaticInitializationCycleCheck.h"
+#include "clang/AST/ASTContext.h"
+#include "clang/AST/DynamicRecursiveASTVisitor.h"
+#include "clang/ASTMatchers/ASTMatchFinder.h"
+#include "clang/Analysis/CallGraph.h"
+#include "llvm/ADT/DenseMap.h"
+#include "llvm/ADT/SCCIterator.h"
+#include <sstream>
----------------
NagyDonat wrote:
```suggestion
```
Delete this include now that you use `raw_ostream`.
https://github.com/llvm/llvm-project/pull/175342
More information about the cfe-commits
mailing list