Allow for single-line deletions in clang_tidy.py (#19082)
authorEric Faust <efaust@fb.com>
Wed, 17 Apr 2019 23:59:34 +0000 (16:59 -0700)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Thu, 18 Apr 2019 00:02:30 +0000 (17:02 -0700)
commit48859e3ad39abffde828072b391af9e6bbf08d67
treeb133a8a97a39ba9d1f01872c1c44f44419446af7
parent242743eedbba8b308da51cdebdd077cc0e8e96b3
Allow for single-line deletions in clang_tidy.py (#19082)

Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/19082

When you have just one line of deletions, just as with additions, there is no count printed.
Without this fix, we ignore all globs with single-line deletions when selecting which lines were changed.
When all the changes in the file were single-line, this meant no line-filtering at all!

Differential Revision: D14860426

fbshipit-source-id: c60e9d84f9520871fc0c08fa8c772c227d06fa27
tools/clang_tidy.py