]> granicus.if.org Git - clang/commit
[analyzer][tests] Use normalize_plist in place of diff_plist (`tail` cases)
authorHubert Tong <hubert.reinterpretcast@gmail.com>
Mon, 10 Jun 2019 22:40:35 +0000 (22:40 +0000)
committerHubert Tong <hubert.reinterpretcast@gmail.com>
Mon, 10 Jun 2019 22:40:35 +0000 (22:40 +0000)
commitae5a4cd2ab3279aba2d048c575bfc8a1c8a322ef
tree35b8a8b29c72f0af584488a75f2cfef7e519ec6e
parentdbdcaef8d0acd7ae9708b18ca3d7fc9e090e47a0
[analyzer][tests] Use normalize_plist in place of diff_plist (`tail` cases)

Summary:
The `%diff_plist` lit substitution invokes `diff` with a non-portable
`-I` option. The intended effect can be achieved by normalizing the
inputs to `diff` beforehand. Such normalization can be done with
`grep -Ev`, which is also used by other tests.

This patch applies the change (adjusted for review comments) described
in http://lists.llvm.org/pipermail/cfe-dev/2019-April/061904.html
mechanically to the cases where the output file is piped to
`%diff_plist` via `tail`. `%diff_plist` is then, being unused, removed.

The changes were applied via a script.

Reviewers: NoQ, sfertile, xingxue, jasonliu, daltenty

Subscribers: xazax.hun, baloghadamsoftware, szepet, a.sidorin, mikhail.ramalho, Szelethus, donat.nagy, dkrupp, Charusso, jsji, cfe-commits

Tags: #clang

Differential Revision: https://reviews.llvm.org/D62951

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@362998 91177308-0d34-0410-b5e6-96231b3b80d8
test/Analysis/MismatchedDeallocator-path-notes.cpp
test/Analysis/diagnostics/plist-diagnostics-include-check.cpp
test/Analysis/diagnostics/plist-multi-file.c
test/Analysis/lambda-notes.cpp
test/Analysis/lit.local.cfg
test/Analysis/malloc-plist.c