[all-commits] [llvm/llvm-project] a00206: Enforce module decl-use restrictions and private h...

Richard Smith via All-commits all-commits at lists.llvm.org
Tue Sep 6 17:14:12 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a002063de37c00133b93d2ce1f0ea78fc4b807ff
      https://github.com/llvm/llvm-project/commit/a002063de37c00133b93d2ce1f0ea78fc4b807ff
  Author: Richard Smith <richard at metafoo.co.uk>
  Date:   2022-09-06 (Tue, 06 Sep 2022)

  Changed paths:
    M clang/docs/ReleaseNotes.rst
    M clang/include/clang/Basic/LangOptions.def
    M clang/include/clang/Driver/Options.td
    M clang/include/clang/Lex/Preprocessor.h
    M clang/lib/Lex/PPDirectives.cpp
    M clang/test/Modules/Inputs/declare-use/module.map
    A clang/test/Modules/Inputs/declare-use/textual.h
    A clang/test/Modules/declare-use-textual.cpp

  Log Message:
  -----------
  Enforce module decl-use restrictions and private header restrictions in textual headers

Per the documentation, these restrictions were intended to apply to textual headers but previously this didn't work because we decided there was no requesting module when the `#include` was in a textual header.

A `-cc1` flag is provided to restore the old behavior for transitionary purposes.

Reviewed By: aaron.ballman

Differential Revision: https://reviews.llvm.org/D132779




More information about the All-commits mailing list