[PATCH] D24516: [Driver][Diagnostics] Make 'show option names' default for driver warnings

2016-10-10 Thread Bruno Cardoso Lopes via cfe-commits
bruno closed this revision. bruno added a comment. Committed r283827 Comment at: test/Driver/show-option-names.c:4 +// RUN: %clang -c -target i386-apple-darwin10 -fno-diagnostics-show-option -isysroot /FOO %s 2>&1 | FileCheck --check-prefix=CHECK-NO-SHOW-OPTION-NAMES %s +//

[PATCH] D24516: [Driver][Diagnostics] Make 'show option names' default for driver warnings

2016-10-10 Thread Vedant Kumar via cfe-commits
vsk accepted this revision. vsk added a comment. This revision is now accepted and ready to land. Lgtm, with one potential nit. Comment at: test/Driver/show-option-names.c:4 +// RUN: %clang -c -target i386-apple-darwin10 -fno-diagnostics-show-option -isysroot /FOO %s 2>&1 |

[PATCH] D24516: [Driver][Diagnostics] Make 'show option names' default for driver warnings

2016-10-10 Thread Bruno Cardoso Lopes via cfe-commits
bruno updated this revision to Diff 74185. bruno added a comment. Update after Vedant's review! https://reviews.llvm.org/D24516 Files: include/clang/Frontend/CompilerInvocation.h lib/Frontend/CompilerInvocation.cpp test/Driver/show-option-names.c Index: test/Driver/show-option-names.c

[PATCH] D24516: [Driver][Diagnostics] Make 'show option names' default for driver warnings

2016-10-10 Thread Vedant Kumar via cfe-commits
vsk added inline comments. Comment at: lib/Frontend/CompilerInvocation.cpp:965 + Opts.ShowOptionNames = Args.hasArg(OPT_fdiagnostics_show_option) || + (DefaultShowOpt && !Args.hasArg(OPT_fno_diagnostics_show_option)); Does it make sense to use: hasFlag

[PATCH] D24516: [Driver][Diagnostics] Make 'show option names' default for driver warnings

2016-10-10 Thread Bruno Cardoso Lopes via cfe-commits
bruno added a reviewer: vsk. bruno added a comment. Ping!! https://reviews.llvm.org/D24516 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D24516: [Driver][Diagnostics] Make 'show option names' default for driver warnings

2016-10-03 Thread Bruno Cardoso Lopes via cfe-commits
bruno added a comment. Ping! https://reviews.llvm.org/D24516 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D24516: [Driver][Diagnostics] Make 'show option names' default for driver warnings

2016-09-16 Thread Bruno Cardoso Lopes via cfe-commits
bruno added a comment. Ping! https://reviews.llvm.org/D24516 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D24516: [Driver][Diagnostics] Make 'show option names' default for driver warnings

2016-09-13 Thread Bruno Cardoso Lopes via cfe-commits
bruno created this revision. bruno added a reviewer: rsmith. bruno added a subscriber: cfe-commits. 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