[all-commits] [llvm/llvm-project] 06cf7a: Make syntax tree test print the line number when i...

Dmitri Gribenko via All-commits all-commits at lists.llvm.org
Thu Jun 4 01:45:33 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 06cf7adcc88178f887984fa74cdefb20cd8cd124
      https://github.com/llvm/llvm-project/commit/06cf7adcc88178f887984fa74cdefb20cd8cd124
  Author: Dmitri Gribenko <gribozavr at gmail.com>
  Date:   2020-06-04 (Thu, 04 Jun 2020)

  Changed paths:
    M clang/unittests/Tooling/Syntax/TreeTest.cpp

  Log Message:
  -----------
  Make syntax tree test print the line number when it fails

Summary:
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).

Reviewers: hlopko, eduucaldas

Reviewed By: hlopko, eduucaldas

Subscribers: cfe-commits

Tags: #clang

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




More information about the All-commits mailing list