llvm-project/clang/test
Chad Rosier d6f716ab2a [driver] Parse diagnostic args in the driver.
Previously, only diagnostics thrown by the cc1 process were
actually honoring the diagnostic options given on the command line,
like -Werror.

Reuse the existing code in Frontend currently used for cc1,
adjusting it to not interpret -Wl, linker flags as warnings.

Also fix a faulty test exposed by this change.
It wasn't actually testing anything, and was giving this warning:

clang-3: warning: argument unused during compilation: '-verify'

Which -Werror didn't turn into an error because it was output
by the driver, not the cc1 process, and diagnostic options
weren't parsed by the driver. And you couldn't see the warning
when running the test suite.

Fixes PR12181.
Patch by Dylan Noblesmith <nobled@dreamwidth.org>.

llvm-svn: 152660
2012-03-13 20:09:56 +00:00
..
ARCMT [objcmt] Add a triple to test/ARCMT/objcmt-subscripting-literals.m 2012-03-06 22:03:39 +00:00
ASTMerge Fix crash at @implementation with a forward reference as base class. 2012-03-13 01:09:36 +00:00
Analysis [analyzer] Change the order in which we analyze the functions under 2012-03-13 19:32:19 +00:00
CXX Implement [temp.param]p5: the top-level cv-qualifiers on a non-type template 2012-03-13 07:21:50 +00:00
CodeCompletion Provide result types for code completions that describe built-in 2011-10-18 21:20:17 +00:00
CodeGen Fix the long double to be of width/align 64. Rename va_list_test to 2012-03-13 19:20:17 +00:00
CodeGenCUDA CUDA: IR generation support for device stubs 2011-10-06 18:51:56 +00:00
CodeGenCXX Ensure that default arguments are handled correctly in sub scopes. For example: 2012-03-13 08:55:35 +00:00
CodeGenObjC Add clang support for new Objective-C literal syntax for NSDictionary, NSArray, 2012-03-06 20:05:56 +00:00
CodeGenObjCXX Add clang support for new Objective-C literal syntax for NSDictionary, NSArray, 2012-03-06 20:05:56 +00:00
CodeGenOpenCL A few style changes. 2012-01-19 01:16:16 +00:00
Coverage rename -ccc-host-triple into -target 2012-01-20 22:01:23 +00:00
Driver [driver] Parse diagnostic args in the driver. 2012-03-13 20:09:56 +00:00
FixIt Fix a couple of issues with literal-operator-id parsing, and provide recovery 2012-03-08 23:06:02 +00:00
Frontend Remove the unuseful -fdiagnostics-show-name 2012-02-15 19:45:34 +00:00
Headers rename -ccc-host-triple into -target 2012-01-20 22:01:23 +00:00
Index [Sema] -Add an invalid objc category to the DeclContext so that it can be 2012-03-12 18:34:26 +00:00
Lexer User-defined literals are done. 2012-03-09 08:41:27 +00:00
Misc Move int<->pointer conversion warnings behind -Wint-conversions. 2012-03-02 20:23:08 +00:00
Modules Fix PR10447: lazily building name lookup tables for DeclContexts was broken. 2012-03-13 03:12:56 +00:00
PCH AST representation for user-defined literals, plus just enough of semantic 2012-03-07 08:35:16 +00:00
Parser Fix a crash-on-invalid found by -Wlogical-op-parentheses. 2012-03-12 15:39:49 +00:00
Preprocessor Updated the test so that it checks for ms-compatibility in addition to ms-extensions. 2012-03-10 22:52:10 +00:00
Rewriter test/Rewriter/rewrite-modern-ivars-2.mm: Add "-triple i386-apple-darwin9". 2012-03-10 03:02:29 +00:00
Sema Fix parsing of type-specifier-seq's. Types are syntactically allowed to be 2012-03-12 07:56:15 +00:00
SemaCUDA CUDA: diagnose invalid calls across targets 2011-10-02 23:49:40 +00:00
SemaCXX Ensure that default arguments are handled correctly in sub scopes. For example: 2012-03-13 08:55:35 +00:00
SemaObjC Fix crash at @implementation with a forward reference as base class. 2012-03-13 01:09:36 +00:00
SemaObjCXX lldb support: under debugger support flag, when sending message 2012-03-09 18:47:16 +00:00
SemaOpenCL Support constant evaluation for OpenCL nested vector literals. Patch by Anton Lokhmotov. 2012-01-03 23:24:20 +00:00
SemaTemplate Fix parsing of type-specifier-seq's. Types are syntactically allowed to be 2012-03-12 07:56:15 +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 CMake: Promote the testing targets out of folders on IDE. 2012-01-30 03:15:47 +00:00
Makefile lit support for REQUIRES: asserts. 2011-06-22 23:23:49 +00:00
TestRunner.sh
cxx-sections.data
lit.cfg Have the driver pass CPU and target feature information to cc1as. 2012-02-10 20:37:10 +00:00
lit.site.cfg.in lit support for REQUIRES: asserts. 2011-06-22 23:23:49 +00:00
make_test_dirs.pl