[clang] 3f7b275 - [clang] Add IWYU export pragma to NestedNameSpecifier.h (NFC) (#246865)
via cfe-commits
cfe-commits at lists.llvm.org
Sat Nov 28 12:09:22 PST 2026
Author: Kazu Hirata
Date: 2026-11-28T12:09:17-08:00
New Revision: 3f7b2754f77fe786e1d1dcaf8475ea318c2959fd
URL: https://github.com/llvm/llvm-project/commit/3f7b2754f77fe786e1d1dcaf8475ea318c2959fd
DIFF: https://github.com/llvm/llvm-project/commit/3f7b2754f77fe786e1d1dcaf8475ea318c2959fd.diff
LOG: [clang] Add IWYU export pragma to NestedNameSpecifier.h (NFC) (#246865)
This patch adds an IWYU export pragma for NestedNameSpecifierBase.h in
NestedNameSpecifier.h. Without this patch, clang-include-cleaner
treats transitive includes of NestedNameSpecifierBase.h as sufficient
for NestedNameSpecifier uses and flags NestedNameSpecifier.h as unused.
Note that #159154 already added the same pragma to Type.h for
TypeBase.h.
Assisted-by: Antigravity
Added:
Modified:
clang/include/clang/AST/NestedNameSpecifier.h
Removed:
################################################################################
diff --git a/clang/include/clang/AST/NestedNameSpecifier.h b/clang/include/clang/AST/NestedNameSpecifier.h
index f13351f0d5d3e..760a3f26f435e 100644
--- a/clang/include/clang/AST/NestedNameSpecifier.h
+++ b/clang/include/clang/AST/NestedNameSpecifier.h
@@ -14,7 +14,7 @@
#define LLVM_CLANG_AST_NESTEDNAMESPECIFIER_H
#include "clang/AST/Decl.h"
-#include "clang/AST/NestedNameSpecifierBase.h"
+#include "clang/AST/NestedNameSpecifierBase.h" // IWYU pragma: export
#include "clang/AST/Type.h"
#include "clang/AST/TypeLoc.h"
#include "llvm/ADT/DenseMapInfo.h"
More information about the cfe-commits
mailing list