[all-commits] [llvm/llvm-project] 253759: [clang][modules] Diagnose headers owned by multipl...

Michael Spencer via All-commits all-commits at lists.llvm.org
Wed Apr 15 16:06:55 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2537596d2292d32e029dbccf4ecee55202c8ec64
      https://github.com/llvm/llvm-project/commit/2537596d2292d32e029dbccf4ecee55202c8ec64
  Author: Michael Spencer <bigcheesegs at gmail.com>
  Date:   2026-04-15 (Wed, 15 Apr 2026)

  Changed paths:
    M clang/include/clang/Basic/DiagnosticLexKinds.td
    M clang/include/clang/Basic/Module.h
    M clang/include/clang/Lex/ModuleMap.h
    M clang/lib/Lex/ModuleMap.cpp
    A clang/test/Modules/duplicate-header-ownership.c

  Log Message:
  -----------
  [clang][modules] Diagnose headers owned by multiple modules (#188538)

Add -Wduplicate-header-ownership, an off by default warning that fires
at include time when a header is owned by multiple top-level modules.
This helps catch overlapping module maps that can cause confusing module
resolution.

Assisted-by: claude-opus-4.6



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list