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
7 lines
455 B
C++
7 lines
455 B
C++
// RUN: rm -rf %t
|
|
// RUN: %clang_cc1 -fimplicit-module-maps -fmodules-cache-path=%t -fmodules-decluse -fmodule-name=Textual -I %S/Inputs/declare-use %s -verify
|
|
// RUN: %clang_cc1 -fimplicit-module-maps -fmodules-cache-path=%t -fmodules-decluse -fmodule-name=Textual -I %S/Inputs/declare-use %s -fno-modules-validate-textual-header-includes
|
|
|
|
// expected-error@textual.h:* {{module Textual does not depend on a module exporting 'a.h'}}
|
|
#include "textual.h"
|