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

Vedant Kumar via cfe-commits cfe-commits at lists.llvm.org
Mon Oct 10 16:49:44 PDT 2016


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 | FileCheck --check-prefix=CHECK-NO-SHOW-OPTION-NAMES %s
+// CHECK-NO-SHOW-OPTION-NAMES-NOT: warning: no such sysroot directory: '{{([A-Za-z]:.*)?}}/FOO' [-Wmissing-sysroot]
----------------
vsk wrote:
> Can you split this into two checks? One to check that the warning appear, and another to check that the option isn't printed.
Argh, I suppose there's no "CHECK-SAME-NOT" functionality in FileCheck. If you want to shave off a compiler invocation, maybe you could write:

CHECK: ... {{$}}


https://reviews.llvm.org/D24516





More information about the cfe-commits mailing list