]> granicus.if.org Git - clang/commit
[ASTImporter] Add ms compatibility to tests which use the TestBase
authorGabor Marton <martongabesz@gmail.com>
Mon, 25 Jun 2018 13:04:37 +0000 (13:04 +0000)
committerGabor Marton <martongabesz@gmail.com>
Mon, 25 Jun 2018 13:04:37 +0000 (13:04 +0000)
commit9bbcb03216cb2f853c4603bf367284992c47a1aa
tree5eca925bc52db47afe557af970148e5973e360bd
parent69593b34c37d3bb5ecc02790118e543522a92b00
[ASTImporter] Add ms compatibility to tests which use the TestBase

Summary:
In order to avoid build failures on MS, we use -fms-compatibility too in
the tests which use the TestBase.  Moved the family of `testImport`
functions under a test fixture class, so we can use parameterized tests.
Refactored `testImport` and `testImportSequence`, because `for` loops over
the different compiler options is no longer needed, that is handeld by
the test framework via parameters from now on.

Reviewers: a.sidorin, r.stahl, xazax.hun

Subscribers: rnkovacs, dkrupp, cfe-commits

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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@335464 91177308-0d34-0410-b5e6-96231b3b80d8
unittests/AST/ASTImporterTest.cpp
unittests/AST/Language.cpp
unittests/AST/Language.h