llvm-project/clang/test
Manman Ren 47a4445687 Modules: add command line option fmodules-disable-diagnostic-validation
With PCH+Module, sometimes compiler gives a hard error:
Module file ‘<some-file path>.pcm' is out of date and needs to be rebuilt

This happens when we have a pch importing a module and the module gets
overwritten by another compiler instance after we build the pch (one example is
that both compiler instances hash to the same pcm file but use different
diagnostic options). When we try to load the pch later on, the compiler notices
that the imported module is out of date (modification date, size do not match)
but it can't handle this out of date pcm (i.e it does not know how to rebuild
the pch).

This commit introduces a new command line option so for PCH + module, we can
turn on this option and if two compiler instances only differ in diagnostic
options, the latter instance will not invalidate the original pcm.

rdar://26675801
Differential Revision: http://reviews.llvm.org/D22773

llvm-svn: 276769
2016-07-26 17:12:17 +00:00
..
ARCMT [test/objcmt] Add a follow-up test case for r275600. 2016-07-15 20:40:24 +00:00
ASTMerge When importing classes and structs with anonymous structs, it is critical that 2016-07-14 19:53:44 +00:00
Analysis [analyzer] Add checker modeling potential C++ self-assignment 2016-07-21 23:42:31 +00:00
CXX Push alias-declarations and alias-template declarations into scope even if 2016-07-15 20:53:25 +00:00
CodeCompletion [CodeCompletion] Allow system headers providing private symbols with a single underscore. 2016-07-01 01:17:02 +00:00
CodeGen Update for LLVM changes 2016-07-26 15:21:18 +00:00
CodeGenCUDA NVPTX: Use the nvvm builtins to read SRegs rather than the legacy ptx ones 2016-07-07 16:41:08 +00:00
CodeGenCXX Update test to account for r276604 2016-07-25 04:47:45 +00:00
CodeGenObjC test: add missing triple to test 2016-07-17 22:54:42 +00:00
CodeGenObjCXX Fix mangled name of method with ns_consumed parameters. 2016-05-25 14:15:08 +00:00
CodeGenOpenCL [OpenCL] AMDGCN target will generate images in constant address space 2016-07-20 19:21:11 +00:00
Coverage
CoverageMapping [Coverage] Do not write out coverage mappings with zero entries 2016-07-26 00:24:59 +00:00
Driver Modules: add command line option fmodules-disable-diagnostic-validation 2016-07-26 17:12:17 +00:00
FixIt ObjC Class Property: diagnostics when accessing a class property using instance. 2016-06-28 23:01:49 +00:00
Format
Frontend Provide __GLIBCXX_TYPE_INT_N_0 and __GLIBCXX_BITSIZE_INT_N_0 when in C++ gnu language extensions. 2016-07-21 07:44:41 +00:00
Headers Attempting to fix lit test test/Headers/opencl-c-header.cl on cygwin. 2016-06-27 21:43:00 +00:00
Index [index] Create different USR if a property is a class property. 2016-07-15 22:18:19 +00:00
Integration
Layout [MS ABI] Implement __declspec(empty_bases) and __declspec(layout_version) 2016-05-23 17:16:12 +00:00
Lexer Add -fmodules-ts flag to cc1 for the provisional C++ modules TS, and mark 2016-07-23 02:32:21 +00:00
Misc P0305R0: Semantic analysis and code generation for C++17 init-statement for 'if' and 'switch': 2016-07-14 00:11:03 +00:00
Modules Modules: add command line option fmodules-disable-diagnostic-validation 2016-07-26 17:12:17 +00:00
OpenMP [OpenMP] diagnose orphaned teams construct 2016-07-26 04:32:50 +00:00
PCH Support '#pragma once' in headers when using PCH 2016-07-25 17:17:06 +00:00
Parser P0217R3: Parsing support and framework for AST representation of C++1z 2016-07-22 23:36:59 +00:00
Preprocessor [Myriad]: better compatibility with vendor source 2016-07-25 16:36:02 +00:00
Profile [Profile] Enable profile merging with -fprofile-generat[=<dir>] 2016-07-22 22:25:01 +00:00
Rewriter
Sema Add .rgba syntax extension to ext_vector_type types 2016-07-22 18:49:43 +00:00
SemaCUDA [CUDA] Add additional testcases for EraseUnwantedCUDAMatches. 2016-07-12 23:23:12 +00:00
SemaCXX [cxx1z-constexpr-lambda] Make a lambda's closure type eligible as a literal-type in C++1z 2016-07-23 04:05:19 +00:00
SemaObjC [Sema][ObjC] Compute the nullability of a conditional expression based 2016-07-25 21:58:19 +00:00
SemaObjCXX Sema: support __declspec(dll*) on ObjC interfaces 2016-07-15 20:41:10 +00:00
SemaOpenCL Add .rgba syntax extension to ext_vector_type types 2016-07-22 18:49:43 +00:00
SemaTemplate Push alias-declarations and alias-template declarations into scope even if 2016-07-15 20:53:25 +00:00
TableGen
Tooling Back out the test case for r266973 for now. 2016-04-21 10:46:14 +00:00
Unit Replace hardcoded comment at 'lit.site.cfg.in' 2016-04-16 06:54:46 +00:00
VFS
.clang-format
CMakeLists.txt Re-apply "test: Use add_lit_testsuites so that subsets of tests can be specified" 2016-07-05 17:54:40 +00:00
TestRunner.sh
cxx-sections.data
lit.cfg Port some more debug info tests on Windows 2016-06-30 17:41:27 +00:00
lit.site.cfg.in Replace hardcoded comment at 'lit.site.cfg.in' 2016-04-16 06:54:46 +00:00
make_test_dirs.pl