Don't ignore options when diffing translation units (.bi files).
authorGiuliano Procida <gprocida@google.com>
Mon, 3 Feb 2020 12:04:39 +0000 (12:04 +0000)
committerDodji Seketeli <dodji@redhat.com>
Mon, 3 Feb 2020 13:08:26 +0000 (14:08 +0100)
commit95535d8f6f444509eefd2b2616ec1e15a32e4452
tree1025e3e9382359c5cf55298bdf39b604285cf955
parentdbed2ad67d290af9c7ecd9d44c1891d6bb1dd2fc
Don't ignore options when diffing translation units (.bi files).

There was an inconsistency in the way the diff context was used for
different file types. This change eliminates this and so .bi files now
have all the command line options applied to their diffs.

* tests/data/Makefile.am: Add test case files.
* tests/data/test-abidiff-exit/test-loc-*: New test cases.
* tests/test-abidiff-exit.cc (in_out_specs): Add new test cases.
* tools/abidiff.cc (main): Use populated ctxt for translation unit
diff.

Signed-off-by: Giuliano Procida <gprocida@google.com>
Signed-off-by: Dodji Seketeli <dodji@redhat.com>
tests/data/Makefile.am
tests/data/test-abidiff-exit/test-loc-v0.bi [new file with mode: 0644]
tests/data/test-abidiff-exit/test-loc-v1.bi [new file with mode: 0644]
tests/data/test-abidiff-exit/test-loc-with-locs-report.txt [new file with mode: 0644]
tests/data/test-abidiff-exit/test-loc-without-locs-report.txt [new file with mode: 0644]
tests/test-abidiff-exit.cc
tools/abidiff.cc