llvm-project/clang/unittests/Tooling/Syntax
Dmitri Gribenko 339ed1e042 Move TestClangConfig into libClangTesting and use it in AST Matchers tests
Summary:
Previously, AST Matchers tests were using a custom way to run a test
with a specific C++ standard version. I'm migrating them to a shared
infrastructure to specify a Clang target from libClangTesting. I'm also
changing tests for AST Matchers to run in multiple language standards
versions, and under multiple triples that have different behavior with
regards to templates.

To keep the size of the patch manageable, in this patch I'm only
migrating one file to get the process started and get feedback on this
approach.

One caveat is that increasing the number of test configuration does
significantly increase the runtime of AST Matchers tests. On my machine,
the test runtime increases from 2.0 to 6.0s. I think it is worth the
improved test coverage.

Reviewers: jdoerfert, ymandel

Reviewed By: ymandel

Subscribers: gribozavr2, jfb, sstefan1, cfe-commits

Tags: #clang

Differential Revision: https://reviews.llvm.org/D82179
2020-06-29 12:50:15 +02:00
..
CMakeLists.txt Run syntax tree tests in many language modes 2020-06-02 10:30:01 +02:00
TokensTest.cpp [Syntax] Add mapping from spelled to expanded tokens for TokenBuffer 2020-04-07 15:07:16 +02:00
TreeTest.cpp Move TestClangConfig into libClangTesting and use it in AST Matchers tests 2020-06-29 12:50:15 +02:00