clang-1/tools/driver
Chad Rosier 2dec85b218 [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>.



git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@152660 91177308-0d34-0410-b5e6-96231b3b80d8
2012-03-13 20:09:56 +00:00
..
CMakeLists.txt Add new code migrator support for migrating existing Objective-C code to use 2012-03-06 20:06:33 +00:00
Info.plist.in
Makefile Add new code migrator support for migrating existing Objective-C code to use 2012-03-06 20:06:33 +00:00
cc1_main.cpp Basic: import IntrusiveRefCntPtr<> into clang namespace 2012-02-20 14:00:23 +00:00
cc1as_main.cpp Add MCRegisterInfo to the MCInstPrinter factory function interface. 2012-03-05 19:33:41 +00:00
clang_symlink.cmake
driver.cpp [driver] Parse diagnostic args in the driver. 2012-03-13 20:09:56 +00:00