[all-commits] [llvm/llvm-project] ab58c9: [SyntaxTree] Implement annotation-based test infra...

Eduardo Caldas via All-commits all-commits at lists.llvm.org
Tue Aug 18 06:01:24 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: ab58c9ee8a6e9ace3a93198496b4d85e8cb2b5a9
      https://github.com/llvm/llvm-project/commit/ab58c9ee8a6e9ace3a93198496b4d85e8cb2b5a9
  Author: Eduardo Caldas <ecaldas at google.com>
  Date:   2020-08-18 (Tue, 18 Aug 2020)

  Changed paths:
    M clang/unittests/Tooling/Syntax/TreeTestBase.cpp
    M clang/unittests/Tooling/Syntax/TreeTestBase.h

  Log Message:
  -----------
  [SyntaxTree] Implement annotation-based test infrastructure

We add the method `SyntaxTreeTest::treeDumpEqualOnAnnotations`, which
allows us to compare the treeDump of only annotated code. This will reduce a
lot of noise from our `BuildTreeTest` and make them short and easier to
read.


  Commit: c8c92b54d74c1b9256f9aed6ba89d66fbd1d01ae
      https://github.com/llvm/llvm-project/commit/c8c92b54d74c1b9256f9aed6ba89d66fbd1d01ae
  Author: Eduardo Caldas <ecaldas at google.com>
  Date:   2020-08-18 (Tue, 18 Aug 2020)

  Changed paths:
    M clang/unittests/Tooling/Syntax/BuildTreeTest.cpp
    M clang/unittests/Tooling/Syntax/TreeTestBase.cpp

  Log Message:
  -----------
  [SyntaxTree] Use Annotations based tests for expressions

In this process we also create some other tests, in order to not lose
coverage when focusing on the annotated code

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


Compare: https://github.com/llvm/llvm-project/compare/7b777ee73077...c8c92b54d74c


More information about the All-commits mailing list