Make this test slightly less fragile; NFC
authorAaron Ballman <aaron@aaronballman.com>
Mon, 29 Aug 2022 13:39:23 +0000 (09:39 -0400)
committerAaron Ballman <aaron@aaronballman.com>
Mon, 29 Aug 2022 13:41:23 +0000 (09:41 -0400)
commitb345be177d03166add391f090fd0288a23413934
treeb2663c8181ce02be55d8362effeb0282baab9f0b
parent22d71e72c9fd9c0cb73ba065fd25efe459d4f81c
Make this test slightly less fragile; NFC

The rule IDs are not stable, so this uses a regex for the rule ids
instead of concrete values. It also moves the CHECK lines below the
code so that it's easier to modify the test in the future. It also
breaks the CHECK lines into multiple lines to improve the performance
of the test and aid in debugging failures. Finally, it adds a comment
to the top of the test explaining that things are still rather fragile.
clang/test/Frontend/sarif-diagnostics.cpp