clang-1/test
Chandler Carruth cb2e00ff65 Enhance the GCC version parsing and comparison logic to handle some more
edge cases and have better behavior. Specifically, we should actually
prefer the general '4.6' version string over the '4.6.1' string, as
'4.6.2' should be able to replace it without breaking rpaths or any
other place that these paths have been embedded. Debian-based
distributions are already using a path structure with symlinks to
achieve in-place upgrades for patch versions. Now our parsing reflects
this and we select the shorter paths instead of the longer paths.

A separate issue was that we would not parse a leading patch version
number even in the presence of a suffix. The above change makes this
more problematic as it would cause a suffix being added to make us treat
the entire thing as patch-version-agnostic, which it isn't. This changes
the logic to distinguish between '4.4.x' and 4.4.1-x', and retain that
the latter has *some* patch number information. Currently, we always
bias toward the shorter and more canonical version strings. If it
becomes important we can add more Debian like rules to produce sequences
such as '4.4.1b' > '4.4.1' > '4.4.1-rc3' > '4.4.1-rc2' > '4.4.1-pre5',
but I'm very doubtful this will ever matter or be desirable.

I've made the tests for this logic a bit more interesting, and added
some specific tests for logic that is now different.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@143841 91177308-0d34-0410-b5e6-96231b3b80d8
2011-11-05 23:24:30 +00:00
..
ARCMT [arcmt] In GC, error out when there is a call that returns a pointer to 2011-11-04 23:43:03 +00:00
ASTMerge Improve location fidelity of objc decls. 2011-10-04 04:48:02 +00:00
Analysis Switch these two tests to use the Clang driver instead of CC1. They want 2011-11-05 10:15:30 +00:00
CXX Make test work with ARM C++ ABI. 2011-11-01 03:30:32 +00:00
CodeCompletion Provide result types for code completions that describe built-in 2011-10-18 21:20:17 +00:00
CodeGen Fix test so that it XFAILs consistently. 2011-11-05 00:49:47 +00:00
CodeGenCUDA CUDA: IR generation support for device stubs 2011-10-06 18:51:56 +00:00
CodeGenCXX tests: Remove some stray and unused -cc1 flags. These tests appear to be written 2011-11-05 05:41:57 +00:00
CodeGenObjC In x86_64, when calling an Objective-C method that returns a _Complex long double, make sure to use the objc_msgSend_fp2ret function which ensures that the return value will be {0, 0} if the receiver is nil. 2011-10-31 16:27:11 +00:00
CodeGenObjCXX obj-c++: Fix a IRGen crash when getter is a reference type. 2011-10-17 21:00:22 +00:00
CodeGenOpenCL Annotate imprecise FP division with fpaccuracy metadata 2011-10-27 19:19:51 +00:00
Coverage Remove the Blackfin backend. 2011-10-25 00:06:12 +00:00
Driver Enhance the GCC version parsing and comparison logic to handle some more 2011-11-05 23:24:30 +00:00
FixIt Make the -verify bits in this test actually test something, and fix a few cases 2011-10-20 01:41:28 +00:00
Frontend Frontend: Support -iframework. 2011-10-18 20:40:38 +00:00
Headers Remove __WCHAR_UNSIGNED__ and anything that used it. 2011-09-20 18:05:01 +00:00
Index [libclang] Fix crash when a #pragma diagnostic is included in the preamble. 2011-11-03 20:28:19 +00:00
Lexer Tests for UTF-8 encoding in strings in source code. Patch by Seth Cantrell. 2011-11-01 02:26:36 +00:00
Misc Switch to a more natural formatting of the macro name printing. 2011-10-24 18:51:08 +00:00
Modules Make the loading of information attached to an IdentifierInfo from an 2011-10-27 09:33:13 +00:00
PCH Switch these two tests to use the Clang driver instead of CC1. They want 2011-11-05 10:15:30 +00:00
Parser Improve the diagnostic when a comma ends up at the end of a declarator group 2011-10-19 21:33:05 +00:00
Preprocessor Change this test to reflect the state we are moving in. The Clang 2011-11-05 10:15:33 +00:00
Rewriter Fix the rewriter, rdar://10234024. 2011-10-05 19:37:56 +00:00
Sema Fix vector macros to correctly check argument types. <rdar://problem/10261670> 2011-11-05 06:08:06 +00:00
SemaCUDA CUDA: diagnose invalid calls across targets 2011-10-02 23:49:40 +00:00
SemaCXX Clean up C++11 constant expression testing. 2011-11-04 18:32:57 +00:00
SemaObjC objc: fixed enum type is supported in objc mode. 2011-11-04 18:51:24 +00:00
SemaObjCXX Improve text of a diagnostic. 2011-10-31 17:27:06 +00:00
SemaOpenCL The comparison of two vectors should return a signed result. hasIntegerRepresentation() used to always return false for vectors, but since it was changed, it also 2011-10-17 21:00:38 +00:00
SemaTemplate Revert r143551. It is causing g++.dg/template/crash52.C test failure. 2011-11-04 18:52:43 +00:00
Unit test/Unit: Fixup lit.cfg to allow running inside test/Unit (with llvm-config in 2011-06-22 21:46:43 +00:00
CMakeLists.txt CUDA: set proper calling conventions for PTX 2011-10-06 16:49:54 +00:00
Makefile lit support for REQUIRES: asserts. 2011-06-22 23:23:49 +00:00
TestRunner.sh Switch TestRunner.sh to just use 'lit'. 2009-09-20 22:00:23 +00:00
cxx-sections.data
lit.cfg Teach lit to ask the Clang it is running what version string to use 2011-11-05 20:55:50 +00:00
lit.site.cfg.in lit support for REQUIRES: asserts. 2011-06-22 23:23:49 +00:00
make_test_dirs.pl