[PATCH] D81107: Make syntax tree test print the line number when it fails

Dmitri Gribenko via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Jun 3 09:18:52 PDT 2020


gribozavr created this revision.
gribozavr added a reviewer: hlopko.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.

The syntax tree test uses a helper function that executes all testing
assertions. When an assertion fails, the only line number that gets
printed to the log refers to the helper function. After this change, we
would also get the line number of the EXPECT_TRUE macro invocation
(unfortunately, the line number of the last token of it, not the first
one, but there's not much I can do about it).


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D81107

Files:
  clang/unittests/Tooling/Syntax/TreeTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D81107.268225.patch
Type: text/x-patch
Size: 20297 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200603/1e7ba07b/attachment-0001.bin>


More information about the cfe-commits mailing list