hanchenye-llvm-project/clang/test/Modules
Richard Trieu 758d7a5a33 Allow BlockDecl in CXXRecord scope to have no access specifier.
Using a BlockDecl in a default member initializer causes it to be attached to
CXXMethodDecl without its access specifier being set.  This prevents a crash
where getAccess is called on this BlockDecl, since that method expects any
Decl in CXXRecord scope to have an access specifier.

llvm-svn: 322984
2018-01-19 20:46:19 +00:00
..
Inputs [ODRHash] Don't hash friend functions. 2018-01-12 04:42:27 +00:00
DebugInfoNamespace.cpp Module Debug Info: Emit namespaced C++ forward decls in the correct module. 2017-05-11 22:59:19 +00:00
DebugInfoSubmoduleImport.c Add a test that local submodule visibility has no effect on debug info 2017-05-11 16:40:48 +00:00
DebugInfoSubmodules.c
DebugInfoTransitiveImport.m Update for LLVM IR metadata changes (DIImportedEntity now needs a DIFile). 2017-07-19 00:09:58 +00:00
ExtDebugInfo.cpp -gmodules: Emit debug info for implicit module imports via #include. 2018-01-03 19:10:21 +00:00
ExtDebugInfo.m
ModuleDebugInfo.cpp -gmodules: Emit debug info for implicit module imports via #include. 2018-01-03 19:10:21 +00:00
ModuleDebugInfo.m Debug Info: Set the MainFileName when generating -gmodules debug info for PCM. 2017-07-18 23:58:34 +00:00
ModuleModuleDebugInfo.cpp
Rmodule-build.m
Werror-Wsystem-headers.m
Werror.m
add-remove-private.m [Modules] Change private modules rules and warnings 2017-12-22 02:53:30 +00:00
adl.cpp [modules] Fix visibility checking for using declarations via ADL. 2017-10-11 01:49:57 +00:00
anon-linkage.cpp [Modules TS] Module ownership semantics for redeclarations. 2017-10-10 22:33:17 +00:00
anon-namespace.cpp
anon-redecl.cpp [modules] Additional tests. 2017-01-26 23:07:59 +00:00
attr-unavailable.m
auto-import-unavailable.cpp
auto-module-import.m [Modules] Change private modules rules and warnings 2017-12-22 02:53:30 +00:00
autolink.m IR: Replace the "Linker Options" module flag with "llvm.linker.options" named metadata. 2017-06-12 20:10:48 +00:00
autolinkTBD.m IR: Replace the "Linker Options" module flag with "llvm.linker.options" named metadata. 2017-06-12 20:10:48 +00:00
available-is-better.cpp
build-fail-notes.m
builtin-import.mm Fix Modules/{builtin-import.mm,umbrella-header-include-builtin.mm} to be able to handle non-Darwin targets 2017-09-29 15:45:34 +00:00
builtins.m Modules/builtins.m requires shell. 2017-04-04 02:50:40 +00:00
check-for-sanitizer-feature.cpp [Modules] Handle sanitizer feature mismatches when importing modules 2017-06-01 20:01:01 +00:00
codegen-flags.test Modular Codegen: Separate flags for function and debug info support 2017-04-12 20:58:33 +00:00
codegen-nodep.test Fix up test to handle the now split -fmodules-codegen and -fmodules-debuginfo flags 2017-04-12 21:09:34 +00:00
codegen-opt.test Modular Codegen: Don't home/modularize static functions in headers 2017-11-02 21:55:40 +00:00
codegen.test Modular Codegen: Don't home always_inline functions 2017-11-02 22:28:50 +00:00
compiler_builtins.m
compiler_builtins_aarch64.m
compiler_builtins_arm.m
compiler_builtins_x86.c
config-mismatch.cpp Revert r288626, which reverts r288449. Original commit message: 2016-12-06 00:40:17 +00:00
config_macros.m
conflicts.m
const-var-init-update.cpp PR33002: When we instantiate the definition of a static data member, we might 2017-06-22 22:18:46 +00:00
crash-typo-correction-visibility.cpp [clang] Get rid of "%T" expansions 2017-08-15 19:47:06 +00:00
crash-vfs-headermaps.m Put back REQUIRES: system-darwin to fix asan bot. 2017-05-01 21:49:54 +00:00
crash-vfs-include-pch.m Put back REQUIRES: system-darwin to fix asan bot. 2017-05-01 21:49:54 +00:00
crash-vfs-ivfsoverlay.m [test] Disable leak checking on a clang crash test on Darwin 2017-09-29 15:46:27 +00:00
crash-vfs-path-emptydir-entries.m Replace cp -a in various Clang tests 2018-01-04 01:15:52 +00:00
crash-vfs-path-symlink-component.m Replace cp -a in various Clang tests 2018-01-04 01:15:52 +00:00
crash-vfs-path-symlink-topheader.m Replace cp -a in various Clang tests 2018-01-04 01:15:52 +00:00
crash-vfs-path-traversal.m Add pragma to perform module import and use it in -E output. 2017-04-29 00:34:47 +00:00
crash-vfs-relative-incdir.m Put back REQUIRES: system-darwin to fix asan bot. 2017-05-01 21:49:54 +00:00
crash-vfs-relative-overlay.m Add pragma to perform module import and use it in -E output. 2017-04-29 00:34:47 +00:00
crash-vfs-run-reproducer.m Put back REQUIRES: system-darwin to fix asan bot. 2017-05-01 21:49:54 +00:00
crash-vfs-umbrella-frameworks.m Replace cp -a in various Clang tests 2018-01-04 01:15:52 +00:00
crashes.m
cstd.m
cxx-decls.cpp
cxx-dtor.cpp
cxx-inline-namespace.cpp
cxx-irgen.cpp Make '-disable-llvm-optzns' an alias for '-disable-llvm-passes'. 2016-12-23 00:23:01 +00:00
cxx-linkage-cache.cpp
cxx-lookup.cpp
cxx-many-overloads.cpp
cxx-templates.cpp Extend -ast-dump for CXXRecordDecl to dump the flags from the DefinitionData. 2017-09-22 00:11:15 +00:00
cxx17-inline-variables.cpp PR33746: Store the 'inline'ness of a static data member with the update record 2017-11-02 01:06:00 +00:00
cxx17.cpp Take into account C++17's noexcept function types during merging -- it should 2017-03-08 23:00:26 +00:00
cycles.c
darwin_specific_modulemap_hacks.m
debug-info-moduleimport-in-module.m Update for LLVM IR metadata changes (DIImportedEntity now needs a DIFile). 2017-07-19 00:09:58 +00:00
debug-info-moduleimport.m Update for LLVM IR metadata changes (DIImportedEntity now needs a DIFile). 2017-07-19 00:09:58 +00:00
declare-use-compatible.cpp
declare-use.S
declare-use1.cpp
declare-use2.cpp
declare-use3.cpp
declare-use4.cpp
declare-use5.cpp
decldef.m
decldef.mm
deferred-lookup.cpp
dependency-dump-dependent-module.m Attempt to fix Windows buildbot. 2017-03-10 19:34:15 +00:00
dependency-dump.m Attempt to fix Windows buildbot. 2017-03-10 19:34:15 +00:00
dependency-gen-inferred-map.m
dependency-gen-pch.m
dependency-gen.m
dependency-gen.modulemap
diag-flags.cpp Fix this test to use a construct that actually forces struct layout to happen when testing -Wpadded. 2017-06-27 00:22:07 +00:00
diag-pragma.c
diag-pragma.cpp Remove and replace DiagStatePoint tracking and lookup data structure. 2017-01-26 01:01:01 +00:00
diagnose-missing-import.m [Modules] Fix overly conservative assertion for import diagnostic 2017-05-23 23:53:17 +00:00
diagnostic-options-out-of-date.m Modules: Use hash of PCM content for SIGNATURE 2017-03-13 18:45:08 +00:00
diagnostics.modulemap Support lazy stat'ing of files referenced by module maps. 2017-06-02 01:55:39 +00:00
diamond-pch.c
diamond.c
direct-module-import.m
driver.c
elaborated-type-specifier-from-hidden-module.m [Modules] Implement ODR-like semantics for tag types in C/ObjC 2017-07-01 00:06:47 +00:00
embed-files-compressed.cpp
embed-files.cpp
empty.modulemap
epic-fail.m
exclude-header.c
explicit-build-extra-files.cpp
explicit-build-flags.cpp
explicit-build-missing-files.cpp
explicit-build-overlap.cpp
explicit-build-prefer-self.cpp
explicit-build-relpath.cpp
explicit-build.cpp
exponential-paths.cpp
export_as_test.c [Module map] Introduce a private module re-export directive. 2017-09-14 23:38:44 +00:00
extensions.c
extern_c.cpp
extern_c_bad.cpp
extern_cxx.cpp When we enter a module within a linkage specification, switch the linkage 2017-05-18 19:34:55 +00:00
fatal-module-loader-error.m
filename.cpp
find-privateheaders.m [Modules] Allow umbrella frameworks to define private submodules for subframeworks 2017-05-09 00:41:38 +00:00
fmodules-validate-once-per-build-session.c
framework-name.m
getSourceDescriptor-crash.cpp
global-init.cpp
global_index.m [Modules] Change private modules rules and warnings 2017-12-22 02:53:30 +00:00
gnumode-non-benign.cpp [modules] Add missing test from r297030. 2017-03-06 17:47:57 +00:00
header-attribs.cpp Support lazy stat'ing of files referenced by module maps. 2017-06-02 01:55:39 +00:00
header-import.m
header-in-multiple-maps.cpp
hidden-definition.cpp
hidden-names.cpp [modules] Additional tests. 2017-01-26 23:07:59 +00:00
ignored_macros.m
implementation-of-module.m
implicit-build-config-out-of-date.m
implicit-built-Werror-using-W.cpp Serialization: Simulate -Werror settings in implicit modules 2017-04-12 03:58:58 +00:00
implicit-map-dot-private.m [Modules] Map missing private submodules from Foo.Private to Foo_Private 2017-12-22 05:04:43 +00:00
implicit-private-canonical.m [Modules] Change private modules rules and warnings 2017-12-22 02:53:30 +00:00
implicit-private-with-different-name.m [Modules] Change private modules rules and warnings 2017-12-22 02:53:30 +00:00
implicit-private-with-submodule.m [Modules] Change private modules rules and warnings 2017-12-22 02:53:30 +00:00
import-decl.cpp
import-self.m
import-syntax.c Add pragma to perform module import and use it in -E output. 2017-04-29 00:34:47 +00:00
import-textual-noguard.mm [Modules] Support #import when entering files with modules 2017-01-11 02:14:51 +00:00
import-textual.mm [Modules] Support #import when entering files with modules 2017-01-11 02:14:51 +00:00
include-own-headers.m
include-relative.c
include_next.c
incomplete-module.m
incomplete-umbrella.m [Modules] Improve diagnostics for incomplete umbrella 2017-04-27 22:29:14 +00:00
inferred-attributes.mm
inferred-framework-case.m
inferred-frameworks.m
inferred-submodules.m
initializer_list.cpp
inner-struct-redefines-invisible.m [modules] Set the lexical DC for dummy tag decls that refer to hidden 2017-08-11 12:06:52 +00:00
interface-visibility.m Testcase missed from r306075. 2017-06-26 04:41:22 +00:00
internal-constants.cpp
invalid-pch-module-id.m [PCH] Fix a regression when PCH is used with -fmodules 2017-02-07 21:54:57 +00:00
invalidate-identifiers.c
irgen.c
lambda-context.cpp
libc-libcxx.cpp
libstdcxx-ambiguous-internal.cpp
linkage-merge.cpp
linkage-merge.m
load-after-failure.m
load_failure.c
localsubmodulevis.m [Modules] Fix test to wipe out the cache before using it 2017-04-24 21:58:13 +00:00
lookup-assert-protocol.m [ASTReader] Add test for previous change r306583 / 145692e. 2017-06-29 19:42:35 +00:00
lookup-assert.m
lookup.cpp
lookup.m ASTPrinter: Objective-C method declarations don't need a space after 2017-06-02 15:02:59 +00:00
macro-ambiguity.cpp
macro-hiding.cpp
macro-masking.cpp
macro-redefinition.cpp [modules] Simplify module macro handling in non-local-submodule-visibility mode. 2017-05-19 23:32:38 +00:00
macro-reexport.cpp
macro-undef-through-pch.m
macros.c
macros2.c
malformed-overload.m clang/test/Modules/malformed-overload.m: Make sure module cache is clean. 2017-04-27 13:08:48 +00:00
malformed.cpp
merge-anon-in-extern_c.cpp [modules] Add a regression test for merging anon decls in extern C contexts. 2017-10-24 14:52:35 +00:00
merge-anon-in-template.cpp
merge-class-definition-visibility.cpp
merge-decl-context.cpp
merge-decl-order.cpp
merge-dependent-friends.cpp
merge-enumerators.cpp
merge-fn-prototype-tags.c
merge-friends.cpp
merge-function-defs.cpp [modules] Additional tests. 2017-01-26 23:07:59 +00:00
merge-implicit-special-members.cpp
merge-name-for-linkage.cpp [modules] When reading / writing a typedef that is a name for linkage for 2017-01-26 22:39:55 +00:00
merge-nested-templates.cpp
merge-target-features.cpp
merge-template-friend.cpp
merge-template-members.cpp
merge-template-pattern-visibility.cpp
merge-template-specializations.cpp
merge-typedefs.cpp
merge-using-decls.cpp [Test] NFC: Fixed typo in comments 2017-03-01 17:55:03 +00:00
merge-var-template-def.cpp
merge-vtable-codegen.cpp
method_pool.m
method_pool_write.m
minimal-identifier-tables.cpp
misplaced-1.cpp
misplaced-2.cpp
misplaced-3.cpp
misplaced-4.cpp
misplaced-5.c
missing-flag.cpp Reject attempts to build a module without -fmodules, rather than silently doing weird things. 2017-07-06 21:05:56 +00:00
missing-header.m
missing-submodule.m
modify-module.m Avoid assumption that lit tests are writable (in a couple more places). NFC 2018-01-09 09:32:53 +00:00
modular_maps.cpp
module-feature.m
module-file-modified.c
module-impl-with-link.c IR: Replace the "Linker Options" module flag with "llvm.linker.options" named metadata. 2017-06-12 20:10:48 +00:00
module-imported-by-pch-path.m Change path used in a test from r318503 to work on windows 2017-11-17 04:26:07 +00:00
module-map-path-hash.cpp
module-private.cpp
module_file_info.m Modules: Use hash of PCM content for SIGNATURE 2017-03-13 18:45:08 +00:00
module_map_cwd.c Fix handling of -fmodule-map-file=X where X has no directory component. 2017-03-09 00:58:22 +00:00
modulemap-locations.m [Modules] Change private modules rules and warnings 2017-12-22 02:53:30 +00:00
modules-cache-path-canonicalization.m [clang] Get rid of "%T" expansions 2017-08-15 19:47:06 +00:00
modules-with-same-name.m
modules.idx
multiple-include.cpp
namespaces.cpp
no-implicit-builds.cpp
no-implicit-maps.cpp
no-linkage.cpp
no-stale-modtime.m
normal-module-map.cpp
objc-at-keyword.m [Lexer] Ensure that the token is not an annotation token when 2017-05-17 11:08:36 +00:00
objc-categories.m [ObjC][Modules] Don't perform property lookup in hidden class extensions 2017-02-22 23:18:49 +00:00
objc-category-2.m
objc-category-3.m
objc-category.m
objc-designated-init-mod.m [Modules][ObjC] Check definition from canonical decl on designated initializers 2017-04-26 05:06:20 +00:00
objc-hidden.m
objc-initializer.m
objc-method-redecl.m
objc_redef.m
odr.cpp [AST] Incorrectly qualified unscoped enumeration as template actual parameter. 2017-12-21 21:47:22 +00:00
odr_hash-Friend.cpp Add context to why test was disabled on Windows 2018-01-16 19:53:06 +00:00
odr_hash-Unresolved.cpp Test case for r321396 2018-01-06 03:20:59 +00:00
odr_hash-blocks.cpp Allow BlockDecl in CXXRecord scope to have no access specifier. 2018-01-19 20:46:19 +00:00
odr_hash.cpp [ODRHash] Support ODR violation detection in functions. 2017-12-23 00:41:01 +00:00
on-demand-build.m
on-demand-macros.m
outofdate-rebuild.m Reapply "Modules: Cache PCMs in memory and avoid a use-after-free" 2017-03-20 17:58:26 +00:00
overloadable-attrs.cpp Represent pass_object_size attrs in ExtParameterInfo 2017-02-24 02:49:47 +00:00
parse-attributes.modulemap
path-resolution.modulemap Fix incorrect use of current directory to find moved paths in ASTReader. 2017-07-25 10:22:06 +00:00
pch-module-macro.m
pch-used.m
pch-with-module-name.m PCH: fix a regression that reports a module is defined in both pch and pcm. 2017-01-09 19:20:18 +00:00
pch_container.m
pr19692.cpp
pr20399.cpp
pr20786.cpp
pr21217.cpp
pr21547.cpp
pr21687.cpp
pr24954.cpp
pr25501.cpp
pr26014.cpp
pr26179.cpp
pr27041.cpp
pr27186.cpp
pr27401.cpp
pr27513.cpp
pr27699.cpp
pr27739.cpp
pr27754.cpp
pr27890.cpp
pr28332.cpp
pr28438.cpp
pr28752.cpp
pr28812.cpp
pr31469.cpp PR31469: Don't add friend template class decls to redecl chain in dependent contexts. 2017-01-12 09:16:26 +00:00
pragma-pack.cpp Modules: Do not serialize #pragma pack state 2017-04-15 00:07:57 +00:00
prebuilt-module.m
preprocess-build-diamond.m Add -frewrite-imports flag. 2017-06-09 21:24:02 +00:00
preprocess-build.cpp Reject attempts to build a module without -fmodules, rather than silently doing weird things. 2017-07-06 21:05:56 +00:00
preprocess-decluse.cpp Track the set of module maps read while building a .pcm file and reload those when preprocessing from that .pcm file. 2017-06-29 02:19:42 +00:00
preprocess-missing.modulemap Support lazy stat'ing of files referenced by module maps. 2017-06-02 01:55:39 +00:00
preprocess-module.cpp When preprocessing with -frewrite-imports and -fmodule-file=, do not pass all 2017-06-26 19:39:25 +00:00
preprocess-nested.cpp [modules] When compiling a preprocessed module map, look for headers relative 2017-05-31 20:56:55 +00:00
preprocess-unavailable.cpp Add an explicit -std= to test to unbreak on PS4 targets. 2017-05-30 20:13:34 +00:00
preprocess.cpp Add pragma to perform module import and use it in -E output. 2017-04-29 00:34:47 +00:00
preprocess.m Add pragma to perform module import and use it in -E output. 2017-04-29 00:34:47 +00:00
private.cpp
private.modulemap
private1.cpp
prune.m [Modules] Change private modules rules and warnings 2017-12-22 02:53:30 +00:00
public-private.modulemap
rebuild.m Modules: Use hash of PCM content for SIGNATURE 2017-03-13 18:45:08 +00:00
recursive.c
recursive_visibility.mm
redecl-add-after-load.cpp
redecl-found-building-chains.cpp
redecl-merge.m
redecl-merge2.m
redecl-namespaces.mm
redecl-templates.cpp
redeclarations.m
redecls.m
redefinition-c-tagtypes.m [Modules] Change private modules rules and warnings 2017-12-22 02:53:30 +00:00
redefinition-same-header.m [Modules] Implement ODR-like semantics for tag types in C/ObjC 2017-07-01 00:06:47 +00:00
redundant-include.mm Additional test file missed from r288737. 2016-12-06 00:14:22 +00:00
relative-dep-gen.cpp Reject attempts to build a module without -fmodules, rather than silently doing weird things. 2017-07-06 21:05:56 +00:00
renamed.m
require-modular-includes.m
requires-coroutines.mm [Modules] Change private modules rules and warnings 2017-12-22 02:53:30 +00:00
requires-gnuinlineasm.m Factor out and unify emission of "module is unavailable" diagnostics. 2017-06-05 18:57:56 +00:00
requires.m [Modules] Change private modules rules and warnings 2017-12-22 02:53:30 +00:00
requires.mm [Modules] Change private modules rules and warnings 2017-12-22 02:53:30 +00:00
resolution-change.m
self-import-header.m
separate_map_tree.cpp
serialized-diags.m
shadow.m Reapply r321781: [Modules] Allow modules specified by -fmodule-map-file to shadow implicitly found ones 2018-01-05 02:33:18 +00:00
shadowed-submodule.m Reapply r321781: [Modules] Allow modules specified by -fmodule-map-file to shadow implicitly found ones 2018-01-05 02:33:18 +00:00
signal.m
static_assert.cpp
stddef.c
stddef.m
stress-objc.m
stress1.cpp
strict-decluse.cpp
string_names.cpp Support non-identifier module names when preprocessing modules. 2017-06-19 23:09:36 +00:00
subframework-from-intermediate-path.m [Modules] Change private modules rules and warnings 2017-12-22 02:53:30 +00:00
subframeworks.m [Modules] Change private modules rules and warnings 2017-12-22 02:53:30 +00:00
submodule-visibility-cycles.cpp
submodule-visibility.cpp [modules] When creating a declaration, cache its owning module immediately 2017-05-17 00:24:14 +00:00
submodules-merge-defs.cpp
submodules-preprocess.cpp
submodules.cpp
submodules.m
suggest-include.cpp
system-out-of-date-test.m Reapply "Modules: Cache PCMs in memory and avoid a use-after-free" 2017-03-20 17:58:26 +00:00
system_headers.m
tag-injection.c
tag-injection.cpp
target-features.m
template-default-args.cpp [modules] Properly look up the owning module for an instantiation of a merged template. 2017-04-21 01:15:13 +00:00
template-specialization-visibility.cpp
templates-2.mm
templates.mm Change memcpy/memove/memset to have dest and source alignment attributes (Step 1). 2018-01-19 17:12:54 +00:00
textual-hdr-in-umbrella-hdr.m [Modules] Fix misleading warning about missing textual header in umbrella header 2017-01-12 19:15:33 +00:00
textual-headers.cpp
thread-safety.cpp
typedef-tag-not-visible.m
typo.m
umbrella-header-include-builtin.mm Fix Modules/{builtin-import.mm,umbrella-header-include-builtin.mm} to be able to handle non-Darwin targets 2017-09-29 15:45:34 +00:00
undefined-type-fixit1.cpp
unnecessary-module-map-parsing.c
unused-global-init.cpp
update-after-load.cpp
update-exception-spec.cpp
use-after-free.m
using-decl-friend-2.cpp Serialize the IDNS for a UsingShadowDecl rather than recomputing it. 2018-01-06 01:07:05 +00:00
using-decl-friend.cpp When name lookup finds a non-imported declaration and looks back along the 2018-01-06 00:09:23 +00:00
using-decl-inheritance.cpp [modules] Add test for using declaration in classes. 2017-08-29 09:27:41 +00:00
using-decl-redecl.cpp
using-decl.cpp
using-directive-redecl.cpp [modules] Retain multiple using-directives in the same scope even if they name the same namespace. 2017-10-30 22:38:20 +00:00
using-directive.cpp [modules] Only take visible using-directives into account during name lookup. 2017-10-11 01:19:11 +00:00
va_list.cpp
va_list.m
validate-system-headers.m
var-templates.cpp Use an even more precise triple to avoid errors on Darwin, where we don't use comdats for inline entities. 2017-12-05 21:29:36 +00:00
visibility-in-instantiation.cpp [modules] When finding the owning module of an instantiated context in template 2017-10-18 01:41:38 +00:00
warn-unused-local-typedef.cpp
warning-mismatch.m Reapply "Modules: Cache PCMs in memory and avoid a use-after-free" 2017-03-20 17:58:26 +00:00
wildcard-submodule-exports.cpp
working-dir-flag.m