llvm-project/clang/test
Martin Storsjo acd9ca34d8 [MinGW] Look for libc++ headers in a triplet prefixed path as well
This makes it consistent with libstdc++ and the other default
include directories.

If these headers are found in both locations and one isn't a
symlink to the other, this will cause errors due to libc++ headers
having wrapper headers for some standard C headers, wrappers that
do #include_next the actual one.

If the same libc++ standard C wrapper header exists in more than one
include directory before the real system one, the header include
guard will stop it from doing another #include_next to pick up the
real one, breaking things.

As this is a rather uncommon situation, this should be acceptable
and toolchain maintainers can adapt accordingly if necessary.

Also simplify some of the existing code with a local variable.

Differential Revision: https://reviews.llvm.org/D45500

llvm-svn: 329946
2018-04-12 20:07:38 +00:00
..
ARCMT [ObjC] Allow declaring __strong pointer fields in structs in Objective-C 2018-02-28 07:15:55 +00:00
ASTMerge Fix typos in clang 2018-04-06 15:14:32 +00:00
Analysis [Analyzer] SValBuilder Comparison Rearrangement (with Restrictions and Analyzer Option) 2018-04-11 06:21:12 +00:00
CXX Allow [[maybe_unused]] on static data members; these are considered variables and the attribute should appertain to them. 2018-04-12 12:21:41 +00:00
CodeCompletion [SemaOverload] Fixed crash on code completion 2018-03-09 14:43:29 +00:00
CodeGen [X86] Introduce wbinvd intrinsic 2018-04-12 18:42:02 +00:00
CodeGenCUDA Fix typos in clang 2018-04-06 15:14:32 +00:00
CodeGenCXX Generalize test for 32-bit targets. 2018-04-07 00:28:32 +00:00
CodeGenCoroutines [coroutines] Add __builtin_coro_noop => llvm.coro.noop 2018-04-02 17:35:37 +00:00
CodeGenObjC ObjCGNU: Fix empty v3 protocols being emitted two fields short 2018-04-12 06:46:15 +00:00
CodeGenObjCXX [Sema][ObjC] Ensure that the return type of an ObjC method is a complete 2018-04-12 06:01:41 +00:00
CodeGenOpenCL Fix typos in clang 2018-04-06 15:14:32 +00:00
Coverage
CoverageMapping [Coverage] Handle break/continue outside of loop bodies 2018-02-16 07:59:43 +00:00
Driver [MinGW] Look for libc++ headers in a triplet prefixed path as well 2018-04-12 20:07:38 +00:00
FixIt [Parser][FixIt] Better diagnostics for "typedef" instead of "typename" typo 2018-02-08 14:37:58 +00:00
Format [clang-format] Fix bug where -dump-config failed on ObjC header 2018-01-29 17:36:43 +00:00
Frontend [OpenCL] Added -std/-cl-std=c++ 2018-04-12 14:17:04 +00:00
Headers Fix typos in clang 2018-04-06 15:14:32 +00:00
Import [ASTImporter] Support LambdaExprs and improve template support 2018-01-26 11:36:54 +00:00
Index [Test Fix] Fix broken test Index/comment-objc-parameterized-classes.m 2018-04-12 16:00:05 +00:00
Integration
Layout DR1672, DR1813, DR1881, DR2120: Implement recent fixes to "standard 2018-04-05 18:55:37 +00:00
Lexer [ObjC] Allow declaring __strong pointer fields in structs in Objective-C 2018-02-28 07:15:55 +00:00
Misc [X86] Split up -march=icelake to -client & -server 2018-04-10 18:58:26 +00:00
Modules [ODRHash] Skip more types hashing TypedefType 2018-04-12 02:26:49 +00:00
OpenMP [OPENMP] Additional attributes for the pointer parameters. 2018-04-10 20:10:53 +00:00
PCH [MS] Fix late-parsed template infinite loop in eager instantiation 2018-03-26 18:22:47 +00:00
Parser [Parser] Fix assertion-on-invalid for unexpected typename. 2018-04-10 18:29:47 +00:00
Preprocessor NFC - Indentation fixes in predefined-arch-macros.c 2018-04-12 18:15:39 +00:00
Profile [PGO] Detect more structural changes with the stable hash 2017-11-14 23:56:53 +00:00
Refactor [refactor][extract] avoid extracting expressions from types in functions 2017-11-14 18:59:01 +00:00
Rewriter
Sema Introduce a new builtin, __builtin_dump_struct, that is useful for dumping structure contents at runtime in circumstances where debuggers may not be easily available (such as in kernel work). 2018-04-10 21:58:13 +00:00
SemaCUDA Fix typos in clang 2018-04-06 15:14:32 +00:00
SemaCXX Fix the try_acquire_capability attribute to behave like the other try-lock functions. Fixes PR32954. 2018-04-12 17:53:21 +00:00
SemaObjC Revert "[ObjC] Make C++ triviality type traits available to non-trivial C" 2018-04-09 19:39:27 +00:00
SemaObjCXX [Sema][ObjC] Ensure that the return type of an ObjC method is a complete 2018-04-12 06:01:41 +00:00
SemaOpenCL [OpenCL] Add "cles_khr_int64" extension. 2018-01-26 11:48:46 +00:00
SemaTemplate Fix some handling of AST nodes with diagnostics. 2018-03-28 04:16:13 +00:00
TableGen TableGen: Give up on exact fixits for diagnostic groups 2018-03-06 17:55:00 +00:00
Templight [Templight] Template Instantiation Observer 2018-02-10 14:04:45 +00:00
Tooling Fix test clang-diff-json.cpp 2018-02-10 21:28:55 +00:00
Unit [lit] Set shlibpath_var on Solaris 2017-11-27 13:33:19 +00:00
VFS [vfs] Don't bail out after a missing -ivfsoverlay file 2018-03-23 17:37:27 +00:00
clang-rename [clang-rename] Fix and enable the failing TemplatedClassFunction test. 2017-10-25 08:25:25 +00:00
.clang-format
CMakeLists.txt [ThinLTO/CFI] Include TYPE_ID summaries into GLOBALVAL_SUMMARY_BLOCK 2018-02-14 22:41:15 +00:00
TestRunner.sh
cxx-sections.data
lit.cfg.py [debuginfo] Remove temporary FIXME. 2017-12-14 22:12:46 +00:00
lit.site.cfg.py.in [lit] Add host_cxx to lit config 2017-10-10 17:53:45 +00:00
make_test_dirs.pl