llvm-project/clang/tools
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-test Unify naming of LangOptions variable/get function across the Clang stack (Lex to AST). 2012-03-11 07:00:24 +00:00
c-arcmt-test Update library dependencies to add clangEdit on c-index-test and c-arcmt-test. 2012-03-11 08:04:40 +00:00
c-index-test Update library dependencies to add clangEdit on c-index-test and c-arcmt-test. 2012-03-11 08:04:40 +00:00
diagtool Provide common include for all diagnostic headers. 2012-02-15 21:58:34 +00:00
driver [driver] Parse diagnostic args in the driver. 2012-03-13 20:09:56 +00:00
libclang Unify naming of LangOptions variable/get function across the Clang stack (Lex to AST). 2012-03-11 07:00:24 +00:00
scan-build Add static analyzer support for new NSArray/NSDictionary/NSNumber literals. 2012-03-06 20:06:12 +00:00
scan-view Fix call to send_error() in scan-view. An int error code is expected but a string was being sent. Patch by Andrew Price! 2011-02-21 19:26:48 +00:00
CMakeLists.txt Place back previous order of add_subdirectory()'s to reflect build depedencies. 2011-08-09 14:55:12 +00:00
Makefile Misc Minix-specific changes to clang: 2011-12-08 23:54:21 +00:00