[all-commits] [llvm/llvm-project] 8d74de: [clang] Always allow including builtin headers in ...

martinboehme via All-commits all-commits at lists.llvm.org
Wed Jun 3 23:50:00 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 8d74de9de6d6cca552d7de7d0bfd36b6dd7d58dc
      https://github.com/llvm/llvm-project/commit/8d74de9de6d6cca552d7de7d0bfd36b6dd7d58dc
  Author: Martin Boehme <mboehme at google.com>
  Date:   2020-06-04 (Thu, 04 Jun 2020)

  Changed paths:
    M clang/include/clang/Lex/ModuleMap.h
    M clang/lib/Lex/HeaderSearch.cpp
    M clang/lib/Lex/ModuleMap.cpp
    A clang/test/Modules/Inputs/no-undeclared-includes-builtins/glibc/module.modulemap
    A clang/test/Modules/Inputs/no-undeclared-includes-builtins/glibc/stdio.h
    A clang/test/Modules/Inputs/no-undeclared-includes-builtins/libcxx/module.modulemap
    A clang/test/Modules/Inputs/no-undeclared-includes-builtins/libcxx/stddef.h
    A clang/test/Modules/Inputs/no-undeclared-includes-builtins/libcxx/stdio.h
    A clang/test/Modules/no-undeclared-includes-builtins.cpp

  Log Message:
  -----------
  [clang] Always allow including builtin headers in [no_undeclared_headers] modules.

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.




More information about the All-commits mailing list