[PATCH] D80781: [clang] Always allow including builtin headers in [no_undeclared_headers] modules.

Martin Böhme via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri May 29 02:08:33 PDT 2020


mboehme created this revision.
mboehme added a project: clang.
Herald added a subscriber: cfe-commits.
mboehme added a reviewer: rsmith.

Previously, this would fail if the builtin headers had been "claimed" by a different module that wraps these builtin headers. libc++ does this, for example.

This change adds a test demonstrating this situation; the test fails without the fix.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D80781

Files:
  clang/include/clang/Lex/ModuleMap.h
  clang/lib/Lex/HeaderSearch.cpp
  clang/lib/Lex/ModuleMap.cpp
  clang/test/Modules/Inputs/no-undeclared-includes-builtins/system_module/module.modulemap
  clang/test/Modules/Inputs/no-undeclared-includes-builtins/system_module/stddef.h
  clang/test/Modules/Inputs/no-undeclared-includes-builtins/user_module/module.modulemap
  clang/test/Modules/Inputs/no-undeclared-includes-builtins/user_module/user_module.h
  clang/test/Modules/no-undeclared-includes-builtins.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D80781.267144.patch
Type: text/x-patch
Size: 5659 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200529/32ac07e3/attachment.bin>


More information about the cfe-commits mailing list