llvm-project/clang/test
Daniel Jasper ad3ba6be31 Revert "Recover better from an incompatible .pcm file being provided by -fmodule-file=. We try to include the headers of the module textually in this case, still enforcing the modules semantic rules. In order to make that work, we need to still track that we're entering and leaving the module. Also, if the module was also marked as unavailable (perhaps because it was missing a file), we shouldn't mark the module unavailable -- we don't need the module to be complete if we're going to enter it textually."
This reverts commit r288449.

I believe that this is currently faulty wrt. modules being imported
inside namespaces. Adding these lines to the new test:

  namespace n {
  #include "foo.h"
  }

Makes it break with

  fatal error: import of module 'M' appears within namespace 'n'

However, I believe it should fail with

  error: redundant #include of module 'M' appears within namespace 'n'

I have tracked this down to us now inserting a tok::annot_module_begin
instead of a tok::annot_module_include in
Preprocessor::HandleIncludeDirective() and then later in
Parser::parseMisplacedModuleImport(), we hit the code path for
tok::annot_module_begin, which doesn't set FromInclude of
checkModuleImportContext to true (thus leading to the "wrong"
diagnostic).

llvm-svn: 288626
2016-12-04 22:34:37 +00:00
..
ARCMT [test/objcmt] Add a follow-up test case for r275600. 2016-07-15 20:40:24 +00:00
ASTMerge Fixed layout of test/ASTMerge. 2016-11-16 18:21:00 +00:00
Analysis DR616, and part of P0135R1: member access (or pointer-to-member access) on a 2016-12-03 01:14:32 +00:00
CXX [Sema] Don't perform aggregate initialization for types with explicit constructors 2016-12-03 01:26:47 +00:00
CodeCompletion Fix heuristics skipping invalid ctor-initializers with C++11 2016-11-03 07:36:17 +00:00
CodeGen Use ${:uid} to generate unique MS asm labels, not {:uid} 2016-11-29 00:39:37 +00:00
CodeGenCUDA [CUDA] Rename cuda_builtin_vars.h to __clang_cuda_builtin_vars.h. 2016-10-08 22:16:08 +00:00
CodeGenCXX Sema: delay the DLL exported member referencing 2016-12-03 01:57:47 +00:00
CodeGenCoroutines [coroutines] Add allocation and deallocation substatements. 2016-10-27 16:28:31 +00:00
CodeGenObjC Switch CGObjCMac to use ConstantInitBuilder. Whew. 2016-11-30 02:39:18 +00:00
CodeGenObjCXX Forward ns_consumed delegate arguments with a move. 2016-11-18 01:08:24 +00:00
CodeGenOpenCL [OpenCL] Prevent generation of globals in non-constant AS for OpenCL. 2016-11-29 17:01:19 +00:00
Coverage Make output of -ast-print a valid C++ code. 2016-11-10 08:49:37 +00:00
CoverageMapping [Coverage] Support for C++17 if initializers 2016-10-14 23:38:16 +00:00
Driver With LTO and profile-use, enable hotness info in opt remarks 2016-12-02 17:54:34 +00:00
FixIt Warn when 'assume_nonnull' infers nullability within an array. 2016-11-10 23:28:30 +00:00
Format Make clang-format remove duplicate headers when sorting #includes. 2016-08-10 09:32:23 +00:00
Frontend [Frontend] Fix an issue where a quoted search path is incorrectly 2016-12-02 09:51:51 +00:00
Headers [OpenCL] Remove redundant test for OpenCL header file 2016-11-07 15:55:51 +00:00
Index [libclang] Add APIs to check the result of an integer expression in CXEvalResult without overflow 2016-12-01 23:41:27 +00:00
Integration
Layout [MS ABI] Implement __declspec(empty_bases) and __declspec(layout_version) 2016-05-23 17:16:12 +00:00
Lexer p0012r1: define corresponding feature test macro 2016-12-02 02:02:23 +00:00
Misc More diagnostic name fixups: w_ -> warn_, warning_ -> warn_, not_ -> note_. 2016-12-02 23:00:28 +00:00
Modules Revert "Recover better from an incompatible .pcm file being provided by -fmodule-file=. We try to include the headers of the module textually in this case, still enforcing the modules semantic rules. In order to make that work, we need to still track that we're entering and leaving the module. Also, if the module was also marked as unavailable (perhaps because it was missing a file), we shouldn't mark the module unavailable -- we don't need the module to be complete if we're going to enter it textually." 2016-12-04 22:34:37 +00:00
OpenMP [OpenMP] Sema and parsing for 'teams distribute parallel for simd' pragma 2016-11-30 23:51:03 +00:00
PCH Add dllexport default ctor closure PCH regression test for PR31121 2016-11-23 18:33:54 +00:00
Parser [ObjC] Avoid a @try/@finally/@autoreleasepool fixit when parsing an expression 2016-12-01 12:14:38 +00:00
Preprocessor [CUDA] Attempt to fix test failures in cuda-macos-includes.cu. 2016-11-18 01:11:32 +00:00
Profile Add test for D21736. 2016-11-22 20:03:40 +00:00
Rewriter
Sema [TableGen] Ignore fake args for parsing-related arg counts. 2016-12-01 17:52:39 +00:00
SemaCUDA [CUDA] Use only the GVALinkage on function definitions. 2016-11-08 23:45:51 +00:00
SemaCXX DR616, and part of P0135R1: member access (or pointer-to-member access) on a 2016-12-03 01:14:32 +00:00
SemaObjC DR616, and part of P0135R1: member access (or pointer-to-member access) on a 2016-12-03 01:14:32 +00:00
SemaObjCXX Don't require nullability on 'va_list'. 2016-11-10 23:28:34 +00:00
SemaOpenCL [OpenCL] Refactor read_only/write_only pipes. 2016-12-01 11:30:49 +00:00
SemaTemplate Make output of -ast-print a valid C++ code. 2016-11-10 08:49:37 +00:00
TableGen
Tooling
Unit
VFS Don't diagnose non-modular includes when we are not compiling a module. 2016-08-26 17:16:46 +00:00
.clang-format
CMakeLists.txt [test] Fix detecting LLVM zlib support in stand-alone builds 2016-11-01 20:31:52 +00:00
TestRunner.sh
cxx-sections.data
lit.cfg [test] Correctly include build llvm_shlib_dir in stand-alone builds 2016-11-15 12:54:10 +00:00
lit.site.cfg.in XFAIL Driver/darwin-stdlib.cpp if CLANG_DEFAULT_CXX_STDLIB is set 2016-09-29 07:43:08 +00:00
make_test_dirs.pl