================
@@ -0,0 +1,27 @@
+// RUN: rm -fR %t
+// RUN: mkdir %t
+// RUN: %clang_analyze_cc1 -analyzer-checker=core \
+// RUN:                    -analyzer-output=html -o %t -verify %s
+// RUN: cat %t/report-*.html | FileCheck %s
----------------
Lu4nScr1pt1ng wrote:

After your suggestion, I tried --match-full-lines, but the report puts the
whole source row in one long line, so I would have to match the line number
cell, the arrow ids and everything else too. The indentation in the old
checks was just for readability, the output doesn't have whitespace between
the tags

And then I looked into the code again, and yeah, the matches can be tighter:
CHECK-SAME allows gaps between the matches, so the old checks only verified
the order of the tags, not adjacency, so I made an improvement for it

I changed it so each directive matches one contiguous fragment now: the
popup table has to come right after the variable, and the closing tags have
to be adjacent all the way to </td></tr>. I also tested that the new checks
fail on the pre-fix output

Done in ed58ede76.

https://github.com/llvm/llvm-project/pull/207793
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to