[clang] Add IWYU export pragma to Type.h (PR #159154)
via cfe-commits
cfe-commits at lists.llvm.org
Tue Sep 16 12:08:50 PDT 2025
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-clang
Author: Kim Gräsman (kimgr)
<details>
<summary>Changes</summary>
According to 249167a8982afc3f55237baf1532c5c8ebd850b3, users are expected to include Type.h, which acts as a facade header for TypeBase.h.
Add an IWYU export pragma to help IWYU reason about the relationship.
---
Full diff: https://github.com/llvm/llvm-project/pull/159154.diff
1 Files Affected:
- (modified) clang/include/clang/AST/Type.h (+1-1)
``````````diff
diff --git a/clang/include/clang/AST/Type.h b/clang/include/clang/AST/Type.h
index 48575c1b19395..df106d5b12c8d 100644
--- a/clang/include/clang/AST/Type.h
+++ b/clang/include/clang/AST/Type.h
@@ -19,7 +19,7 @@
#include "clang/AST/Decl.h"
#include "clang/AST/DeclCXX.h"
-#include "clang/AST/TypeBase.h"
+#include "clang/AST/TypeBase.h" // IWYU pragma: export
namespace clang {
``````````
</details>
https://github.com/llvm/llvm-project/pull/159154
More information about the cfe-commits
mailing list