llvmorg-github-actions[bot] wrote:
<!--LLVM PR SUMMARY COMMENT--> @llvm/pr-subscribers-clang Author: Kazu Hirata (kazutakahirata) <details> <summary>Changes</summary> 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 --- Full diff: https://github.com/llvm/llvm-project/pull/246865.diff 1 Files Affected: - (modified) clang/include/clang/AST/NestedNameSpecifier.h (+1-1) ``````````diff 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" `````````` </details> https://github.com/llvm/llvm-project/pull/246865 _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
