Add FileCheck -implicit-check-not option to allow stricter tests without adding too...
authorAlexander Kornienko <alexfh@google.com>
Fri, 11 Jul 2014 12:39:32 +0000 (12:39 +0000)
committerAlexander Kornienko <alexfh@google.com>
Fri, 11 Jul 2014 12:39:32 +0000 (12:39 +0000)
commitc58b079d23a4d76d0a7c9777ed7bdcb66d92d89b
treea6188689dd5b98b7c0d51c8e192a011e510e7e10
parent52c50f5ec5f5fd35f88c955edeacd5e81e8e025f
Add FileCheck -implicit-check-not option to allow stricter tests without adding too many CHECK-NOTs manually.

Summary:
Add FileCheck -implicit-check-not option which allows specifying a
pattern that should only occur in the input when explicitly matched by a
positive check. This feature allows checking tool diagnostics in a way
clang -verify does it for compiler diagnostics.

The option has been tested on a number of clang-tidy checks, I'll post a link to
the clang-tidy patch to this thread.

Once there's an agreement on the general direction, I can add tests and
documentation.

Reviewers: djasper, bkramer

Reviewed By: bkramer

Subscribers: llvm-commits

Differential Revision: http://reviews.llvm.org/D4462

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@212810 91177308-0d34-0410-b5e6-96231b3b80d8
docs/CommandGuide/FileCheck.rst
test/FileCheck/implicit-check-not.txt [new file with mode: 0644]
utils/FileCheck/FileCheck.cpp