[PATCH] D39694: [VerifyDiagnosticConsumer] support -verify=<prefixes>

Joel E. Denny via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Nov 8 15:56:41 PST 2017


jdenny updated this revision to Diff 122172.
jdenny retitled this revision from "[VerifyDiagnosticConsumer] support -verify=PREFIX" to "[VerifyDiagnosticConsumer] support -verify=<prefixes>".
jdenny edited the summary of this revision.
jdenny added a comment.

1. Extended -verify to accept multiple prefixes, like FileCheck's --check-prefixes.

2. Demonstrated the benefits of this feature by using it to clean up existing clang tests.

3. Rebased to a more recent master.

Now that this patch is non-trivial, I'll wait a bit for a review before making more revisions.


https://reviews.llvm.org/D39694

Files:
  include/clang/Basic/DiagnosticDriverKinds.td
  include/clang/Basic/DiagnosticOptions.h
  include/clang/Driver/CC1Options.td
  lib/Frontend/CompilerInvocation.cpp
  lib/Frontend/VerifyDiagnosticConsumer.cpp
  test/Frontend/verify-prefixes.c
  test/Sema/tautological-constant-compare.c
  test/Sema/tautological-constant-enum-compare.c
  test/Sema/tautological-unsigned-enum-zero-compare.c
  test/Sema/tautological-unsigned-enum-zero-compare.cpp
  test/Sema/tautological-unsigned-zero-compare.c

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D39694.122172.patch
Type: text/x-patch
Size: 49877 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20171108/359d52f2/attachment-0001.bin>


More information about the cfe-commits mailing list