Skip to content

Commit

Permalink
Use TestClangConfig in AST Matchers tests and run them in more config…
Browse files Browse the repository at this point in the history
…urations

Summary:
I am changing tests for AST Matchers to run in multiple language standards
versions, and under multiple triples that have different behavior with regards
to templates. This change is similar to https://reviews.llvm.org/D82179.

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.

Reviewers: ymandel

Reviewed By: ymandel

Subscribers: cfe-commits

Tags: #clang

Differential Revision: https://reviews.llvm.org/D83868
  • Loading branch information
gribozavr committed Jul 16, 2020
1 parent 3c6a518 commit 4f244c4
Show file tree
Hide file tree
Showing 3 changed files with 1,084 additions and 348 deletions.
2 changes: 2 additions & 0 deletions clang/include/clang/Testing/TestClangConfig.h
Expand Up @@ -51,6 +51,8 @@ struct TestClangConfig {
return Language == Lang_CXX17 || Language == Lang_CXX20;
}

bool isCXX20OrLater() const { return Language == Lang_CXX20; }

bool supportsCXXDynamicExceptionSpecification() const {
return Language == Lang_CXX03 || Language == Lang_CXX11 ||
Language == Lang_CXX14;
Expand Down

0 comments on commit 4f244c4

Please sign in to comment.