[clang] [clang] Support header shadowing diagnostics in Clang header search (PR #162491)

Jinjie Huang via cfe-commits cfe-commits at lists.llvm.org
Thu Nov 6 04:41:23 PST 2025


================
@@ -557,6 +557,10 @@ def warn_pp_hdrstop_filename_ignored : Warning<
 def remark_pp_search_path_usage : Remark<
   "search path used: '%0'">,
   InGroup<UsedSearchPath>;
+def warn_header_shadowed
+  : Warning<"multiple candidates for header '%0' found; "
+            "using the one from '%1', shadowed by '%2'">,
----------------
Jinjie-Huang wrote:

Done.

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


More information about the cfe-commits mailing list