]> granicus.if.org Git - clang/commit
Reapply [Driver][Diagnostics] Make 'show option names' default for driver warnings
authorBruno Cardoso Lopes <bruno.cardoso@gmail.com>
Tue, 11 Oct 2016 18:21:26 +0000 (18:21 +0000)
committerBruno Cardoso Lopes <bruno.cardoso@gmail.com>
Tue, 11 Oct 2016 18:21:26 +0000 (18:21 +0000)
commit6d6fa28130326caf2393e8da71116f632b5138ca
tree1770cd50b3710cadf5886d1808fc384a18445c08
parent029a5ad288b3ada6ec474303927f7d9d67973874
Reapply [Driver][Diagnostics] Make 'show option names' default for driver warnings

Reapply r283827 by fixing the tests to not be target specific

Currently, driver level warnings do not show option names (e.g. warning:
complain about foo [-Woption-name]) in a diagnostic unless
-fdiagnostics-show-option is explictly specified. OTOH, the driver by
default turn this option on for CC1. Change the logic to show option
names by default in the driver as well.

Differential Revision: https://reviews.llvm.org/D24516

rdar://problem/27300909

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@283913 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Frontend/CompilerInvocation.h
lib/Frontend/CompilerInvocation.cpp
test/Driver/show-option-names.c [new file with mode: 0644]