[llvm] [Support] Add IWYU pragma for ManagedStatic.h (PR #117003)

via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 20 08:27:22 PST 2024


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-llvm-support

Author: Kazu Hirata (kazutakahirata)

<details>
<summary>Changes</summary>

We need ManagedStatic on Windows, which we cannot detect if we are
running clang-tidy's misc-include-cleaner on non-Windows machines.


---
Full diff: https://github.com/llvm/llvm-project/pull/117003.diff


1 Files Affected:

- (modified) llvm/lib/Support/Parallel.cpp (+1-1) 


``````````diff
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>

``````````

</details>


https://github.com/llvm/llvm-project/pull/117003


More information about the llvm-commits mailing list