[PATCH] D54769: [FileCheck] New option -warn
    Sjoerd Meijer via Phabricator via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Thu Nov 22 06:00:55 PST 2018
    
    
  
SjoerdMeijer updated this revision to Diff 175043.
SjoerdMeijer added a comment.
I decided to continue here, and implemented the diagnostic that Paul suggested in the other ticket, because it's small and a nice demonstrator for this new option:
> Another useful diagnostic (probably best done separately) would be when a given prefix triggers no directives at all. That's obviously an incorrect test; either it has typos or has a dangling -check-prefix whose directives have all been removed. Right now, this diagnostic occurs only when there are no matching directives at all. But if you specify two prefixes, and only one of them matches a directive, FileCheck is silent. I think that's bad.
I ran this on the regression tests and found more than enough things! They all looked genuine dangling prefixes to me, and I haven't spotted any false positives yet.
Once this change is in (if we're happy with it), I will start using it, also to get experience, and start with cleaning up the Arm tests....
https://reviews.llvm.org/D54769
Files:
  include/llvm/Support/FileCheck.h
  lib/Support/FileCheck.cpp
  test/FileCheck/check-warnings.txt
  utils/FileCheck/FileCheck.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D54769.175043.patch
Type: text/x-patch
Size: 4808 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20181122/3bbcd80a/attachment.bin>
    
    
More information about the llvm-commits
mailing list