[clang] Add IWYU export pragma to Type.h (PR #159154)
Kim Gräsman via cfe-commits
cfe-commits at lists.llvm.org
Tue Sep 16 12:08:15 PDT 2025
https://github.com/kimgr created https://github.com/llvm/llvm-project/pull/159154
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.
>From 93fd8e806262b37a8f0af039bf8cd0ffd0a688b5 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Kim=20Gr=C3=A4sman?= <kim.grasman at gmail.com>
Date: Tue, 16 Sep 2025 20:57:54 +0200
Subject: [PATCH] Add IWYU export pragma to Type.h
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.
---
clang/include/clang/AST/Type.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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 {
More information about the cfe-commits
mailing list