[all-commits] [llvm/llvm-project] 64bb60: [Modules] Don't fail when an unused textual header...

Volodymyr Sapsai via All-commits all-commits at lists.llvm.org
Thu May 8 09:07:55 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 64bb60a471a5ddc9c9bec413c65fdab730a1e4b0
      https://github.com/llvm/llvm-project/commit/64bb60a471a5ddc9c9bec413c65fdab730a1e4b0
  Author: Volodymyr Sapsai <vsapsai at apple.com>
  Date:   2025-05-08 (Thu, 08 May 2025)

  Changed paths:
    M clang/lib/Lex/ModuleMap.cpp
    M clang/test/Modules/Inputs/submodules/module.modulemap
    M clang/test/Modules/missing-header.m

  Log Message:
  -----------
  [Modules] Don't fail when an unused textual header is missing. (#138227)

According to the documentation
> A header declaration that does not contain `exclude` nor `textual`
specifies a header that contributes to the enclosing module.

Which means that `exclude` and `textual` header don't contribute to the
enclosing module and their presence isn't required to build such a
module. The keywords tell clang how a header should be treated in a
context of the module but they don't add headers to the module.

When a textual header *is* used, clang still emits "file not found"
error pointing to the location where the missing file is included.



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