[llvm] [Support] Add IWYU pragma for ManagedStatic.h (PR #117003)
Kazu Hirata via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 20 08:26:27 PST 2024
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/117003
We need ManagedStatic on Windows, which we cannot detect if we are
running clang-tidy's misc-include-cleaner on non-Windows machines.
>From a251a1930fc01ebcaac2c3c33b8d3880376f1cb5 Mon Sep 17 00:00:00 2001
From: Kazu Hirata <kazu at google.com>
Date: Wed, 20 Nov 2024 08:23:58 -0800
Subject: [PATCH] [Support] Add IWYU pragma for ManagedStatic.h
We need ManagedStatic on Windows, which we cannot detect if we are
running clang-tidy's misc-include-cleaner on non-Windows machines.
---
llvm/lib/Support/Parallel.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/llvm/lib/Support/Parallel.cpp b/llvm/lib/Support/Parallel.cpp
index 2ba02b73dd8f16..6c97786cbd23d9 100644
--- a/llvm/lib/Support/Parallel.cpp
+++ b/llvm/lib/Support/Parallel.cpp
@@ -8,7 +8,7 @@
#include "llvm/Support/Parallel.h"
#include "llvm/Config/llvm-config.h"
-#include "llvm/Support/ManagedStatic.h"
+#include "llvm/Support/ManagedStatic.h" // IWYU pragma: keep
#include "llvm/Support/Threading.h"
#include <atomic>
More information about the llvm-commits
mailing list