llvm-project/clang/tools/driver
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
..
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 build/Darwin: Add missing Info.plist template. 2010-07-15 20:26:56 +00:00
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 CMAKE_EXECUTABLE_SUFFIX is undefined when a cmake script is executed 2011-02-22 13:05:15 +00:00
driver.cpp [driver] Parse diagnostic args in the driver. 2012-03-13 20:09:56 +00:00