llvm-project/clang/test/Modules/Inputs
Richard Smith a002063de3 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
2022-09-06 17:12:57 -07:00
..
ASTHash Add AST_SIGNATURE record to unhashed control block of PCM files 2020-06-11 14:09:07 +01:00
AddRemovePrivate.framework
AlsoDependsOnModule.framework/Headers
AutolinkTBD.framework Use functions with prototypes when appropriate; NFC 2022-02-10 16:06:03 -05:00
CmdLine.framework/Headers
Conflicts
DebugInfoNamespace
DependsOnModule.framework
F.framework
FooFramework.framework
GNUAsm/NeedsGNUInlineAsm.framework
HasSubModules.framework
Main.framework
MainA.framework
Modified
Module.framework
ModuleDiags
ModuleMapLocations
MutuallyRecursive1.framework/Headers
MutuallyRecursive2.framework/Headers
NameInDir.framework
NameInDir2.framework
NameInDirInferred.framework/Headers
NoUmbrella.framework
NotAModule.framework/Headers
PR20399
PR20786
PR21547
PR21687
PR24954
PR25501
PR26014
PR26179
PR27041
PR27186
PR27401
PR27513
PR27699 [clang] update pr27699 test to make headers different (NFC) 2022-08-31 13:12:28 +02:00
PR27739
PR27754
PR27890
PR28332
PR28438
PR28752
PR28794
PR28812
PR31469 [AST] [Modules] Handle full cases of DefaultArgStorage::setInherited 2022-07-13 00:13:56 +08:00
Rmodule-import
SameHeader
StdDef
System/usr/include
UseAfterFree
anon-namespace
anon-redecl
asm-goto Remove stale assert. 2020-09-24 13:59:42 -07:00
at-import-in-framework-header Use functions with prototypes when appropriate; NFC 2022-02-10 16:06:03 -05:00
attr-unavailable
auto-import-unavailable
autoload-subdirectory
available-is-better
bad-private-include/Bad.framework
check-for-sanitizer-feature
class-extension
codegen
codegen-flags make -fmodules-codegen and -fmodules-debuginfo work also with PCHs 2020-07-09 15:22:26 +02:00
codegen-nodep
codegen-opt
crash-recovery
crash-typo-correction-visibility
cxx-dtor
cxx-lookup
cxx17 Don't diagnose a redeclaration of a deduction guide if the prior 2020-06-12 10:29:01 -07:00
cxx20 Don't diagnose a redeclaration of a deduction guide if the prior 2020-06-12 10:29:01 -07:00
declare-use Enforce module decl-use restrictions and private header restrictions in textual headers 2022-09-06 17:12:57 -07:00
deferred-lookup
diagnose-missing-import
double-quotes Use functions with prototypes when appropriate; NFC 2022-02-10 16:06:03 -05:00
elsewhere
empty
error [ASTReader] Only mark module out of date if not already compiled 2021-04-16 17:57:03 -07:00
exclude-header
explicit-build
explicit-build-diags [clang] Remove misleading assertion in FullSourceLoc 2021-08-06 14:48:28 +02:00
explicit-build-inferred/frameworks [clang][modules] Build inferred modules 2021-05-17 10:40:51 +02:00
explicit-build-overlap
explicit-build-prefer-self
exportas-link
filename
framework-public-includes-private Use functions with prototypes when appropriate; NFC 2022-02-10 16:06:03 -05:00
getSourceDescriptor-crash
gnumode-non-benign
header-attribs
header-in-multiple-maps
hidden-names
implicit-built-Werror-using-W
implicit-invalidate-chain Revert "[modules] Do not cache invalid state for modules that we attempted to load." 2020-03-10 10:59:26 -07:00
implicit-invalidate-common
implicit-private-canonical/A.framework
implicit-private-with-different-name/A.framework
implicit-private-with-submodule/A.framework
implicit-private-without-public [modules] Allow frameworks to have only a private module without a public one. 2020-02-28 15:40:24 -08:00
import-once [HeaderSearch] Fix processing #import-ed headers multiple times with modules enabled. 2020-08-20 17:41:28 -07:00
import-textual
include-relative
include_next
incomplete-framework-module/Foo.framework
incomplete-umbrella/Foo.framework
inferred-attr
inherit-attribute Re-land 7a527f1777 with fixes. 2020-08-21 14:40:09 -04:00
initializer_list
interface-diagnose-missing-import/Foo.framework
internal-constants
invalid-module-id
invalidate-identifiers
libc-libcxx
libstdcxx-ambiguous-internal
lookup-assert
lookup-assert-protocol
lsv-debuginfo
lsv-private-macro Support #__private_macro and #__public_macro in local submodule 2021-03-23 16:54:28 -07:00
macro-ambiguity
macro-hiding
macro-masking
macro-reexport
macro-undef-through-pch
malformed
malformed-overload
merge-anon-in-template
merge-class-definition-visibility
merge-decl-context
merge-decl-order
merge-dependent-friends
merge-fn-prototype-tags
merge-friends
merge-function-defs
merge-implicit-special-members
merge-lifetime-extended-temporary [clang][modules] Add support for merging lifetime-extended temporaries 2019-12-02 19:55:13 +01:00
merge-name-for-linkage
merge-nested-templates
merge-record-definition [modules] Fix miscompilation when using two RecordDecl definitions with the same name. 2021-08-30 17:51:38 -07:00
merge-target-features
merge-template-friend
merge-template-members
merge-template-pattern-visibility
merge-template-specializations [modules] Merge variable template specializations. 2022-04-19 14:48:42 -07:00
merge-typedefs
merge-using-decls Support for merging UsingPackDecls across modules. 2021-07-01 18:43:49 -07:00
merge-var-template-def
merge-vtable-codegen
misplaced
missing-header-local-visibility When making modules transitively visible, don't take into account 2020-04-17 22:49:58 -07:00
modular_maps
module-impl-with-link
module-map-path-hash
module-name-used-by-objc-bridge [clang][modules] Delay creating `IdentifierInfo` for names of explicit modules 2021-10-18 11:50:29 +02:00
module-transtive-instantiation [NFC] [C++20] [Modules] Add tests for template instantiation in transitively imported module 2021-12-22 11:09:41 +08:00
modules-with-same-name
ms-enums Re-land "[MS] Fix assert handling enum forward decls in hasVisibleDefinition" 2020-04-23 16:22:01 -07:00
multiple-include
nested-template-default-arg-redecl
no-implicit-builds
no-linkage
no-module-map
no-undeclared-includes-builtins [clang] Always allow including builtin headers in [no_undeclared_headers] modules. 2020-06-04 08:33:39 +02:00
non-ambiguous-enum
normal-module-map
objc-category
objc-category-2
objc-category-3
objc-desig-init
objc-hidden
objc-initializer
odr
odr_hash-Friend
odr_hash-Unresolved
odr_hash-elaborated-types
odr_using_dependent_name [Modules] Incorrect ODR detection for unresolved using type 2021-12-17 10:37:40 +08:00
oldname
outofdate-rebuild
overloadable-attrs
pch-shared-module [clang][modules] Cache loads of modules imported by PCH 2021-10-13 18:09:52 +02:00
pch-with-module-name
pr19692
prebuilt-implicit-module Allow searching for prebuilt implicit modules. 2020-11-10 10:14:13 -08:00
prebuilt-module
preprocess
preprocess-decluse
private
private0
private1
private2
private3
protocol-redefinition
rec-types
redecl-found-building-chains
redecl-templates
redecls
relative-import-path
require-modular-includes
self-import-header
self-referencing-lambda
separate_map_tree
set-pure-crash [modules] Fix crash in call to `FunctionDecl::setPure()` 2020-11-18 11:55:29 -08:00
shadow
shadowed-submodule
static_assert
stress1
string_names
subdir Use functions with prototypes when appropriate; NFC 2022-02-10 16:06:03 -05:00
subdirectory-module-maps-working-dir/subdir_module Use functions with prototypes when appropriate; NFC 2022-02-10 16:06:03 -05:00
submodule-in-private-mmap/A.framework
submodule-visibility
submodules
submodules-merge-defs
suggest-include
system-out-of-date
template-default-args
template-specialization-visibility
template_name_lookup [AST] lookup in parent DeclContext for transparent DeclContext 2022-01-11 10:16:26 +08:00
thread-safety
unavailable-local-visibility
undefined-type-fixit
unnecessary-module-map-parsing Use functions with prototypes when appropriate; NFC 2022-02-10 16:06:03 -05:00
unused-global-init
update-after-load
update-exception-spec
using-decl-redecl
va_list
warning-mismatch
wildcard-submodule-exports
working-dir-test/Test.framework
DebugCXX.h
DebugDwoId.h Reland "Correctly emit dwoIDs after ASTFileSignature refactoring (D81347)" 2020-08-24 14:52:53 +02:00
DebugNestedA.h
DebugNestedB.h
DebugObjC.h
DebugObjCImport.h
DebugSubmoduleA.h
DebugSubmoduleB.h
DiagOutOfDate.h
ExtensionTestA.h
ImportNameInDir.h
MacroFabs1.h
MethodPoolA.h
MethodPoolASub.h
MethodPoolASub2.h
MethodPoolB.h
MethodPoolBSub.h
MethodPoolBSub2.h
MethodPoolCombined1.h
MethodPoolCombined2.h
MethodPoolString1.h
MethodPoolString2.h
autolink-sub.h
autolink-sub2.h
autolink-sub3.h
autolink-sub3.pch
autolink.h
builtin.h
builtin_sub.h
c-header-bad.h
c-header.h
category_bottom.h
category_left.h
category_left_sub.h
category_other.h
category_right.h
category_right_sub.h
category_top.h
codegen-extern-template.modulemap fix recent -fmodules-codegen fix test 2020-01-14 23:51:07 +01:00
config.h Use functions with prototypes when appropriate; NFC 2022-02-10 16:06:03 -05:00
crash.h
cxx-decls-imported.h
cxx-decls-merged.h
cxx-decls-premerged.h
cxx-decls-unimported.h
cxx-header.h
cxx-inline-namespace-b.h
cxx-inline-namespace.h
cxx-irgen-left.h
cxx-irgen-right.h
cxx-irgen-top.h s/instantate/instantiate/ throughout. NFCI. 2020-12-01 22:13:40 -05:00
cxx-linkage-cache.h
cxx-many-overloads.h
cxx-templates-a.h
cxx-templates-b-impl.h
cxx-templates-b.h
cxx-templates-c.h
cxx-templates-common.h
cxx-templates-d.h
cxx-templates-textual.h
cxx-templates-unimported.h
decl.h
decl2.h
def-include.h
def.h
dependency-gen-base.modulemap
dependency-gen-base2.modulemap
dependency-gen-included.h
dependency-gen-included2.h
dependency-gen.h
diag_flags.h
diag_pragma.h
diagnostics-aux-2.modulemap
diagnostics-aux.modulemap
diamond.h
diamond_bottom.h
diamond_left.h
diamond_right.h
diamond_top.h
dummy.h
elaborated-type-structs.h
empty.h
export_as_test.modulemap
gmodules-deduction-guide.h [gmodules] Skip CXXDeductionGuideDecls when visiting FunctionDecls in 2022-06-06 19:12:26 -07:00
ignored_macros.h
import-decl.h
incomplete_mod.h
incomplete_mod_missing.h
innerstructredef.h
irgen.h
linkage-merge-bar.h
linkage-merge-foo.h
linkage-merge-sub.h
load_failure.h
lookup_left.h
lookup_left.hpp
lookup_right.h
lookup_right.hpp
macros-indirect.h
macros.h
macros_bottom.h
macros_left.h
macros_other.h
macros_right.h
macros_right_undef.h
macros_top.h
macros_top_b.h
macros_top_c.h
modular_maps-moduleb-cwd.map
module.map [ASTReader] Always rebuild a cached module that has errors 2021-02-03 22:06:46 -08:00
module_private_left.h
module_private_right.h
namespaces-left.h
namespaces-right.h
namespaces-top.h
non-module.h
objc-method-redecl.h
objcAtKeywordMissingEnd.h
objc_type_param.h Fix a reentrance bug with deserializing ObjC type parameters. 2020-02-12 18:44:19 -05:00
pch-import-module-out-of-date.pch
pch-import-module-with-macro.pch
pch-typedef.h [clang][modules][pch] Allow loading PCH with different modules cache path 2021-06-14 11:04:56 +02:00
pch-used.h Use functions with prototypes when appropriate; NFC 2022-02-10 16:06:03 -05:00
point.h
pragma_pack_set.h
preprocess-prefix.h
recursive1.h
recursive2.h
recursive_visibility_a1_inner.h
recursive_visibility_a2_more_inner.h
recursive_visibility_b.h
recursive_visibility_c.h
redecl-add-after-load-decls.h
redecl-add-after-load-top.h
redecl-add-after-load.h
redecl-merge-bottom-prefix.h
redecl-merge-bottom.h
redecl-merge-left-left.h
redecl-merge-left.h
redecl-merge-right.h
redecl-merge-top-explicit.h
redecl-merge-top.h
redecl_namespaces_left.h
redecl_namespaces_right.h
redeclarations_left.h
redeclarations_right.h
relative-dep-gen-1.h
relative-dep-gen-2.h
relative-dep-gen-cwd.modulemap
relative-dep-gen.modulemap
template-nontrivial0.h
template-nontrivial1.h
templates-left.h
templates-right.h
templates-top.h
typedef-tag-hidden.h
typedef-tag.h
typo.h
use-builtin.h
using-decl-a.h
using-decl-b.h
warn-unused-local-typedef.h
warning.h
weird_objc.h