Skip to content

Commit

Permalink
[clangd] Make unit test compatible with gtest 1.10.0
Browse files Browse the repository at this point in the history
  • Loading branch information
d0k committed May 14, 2021
1 parent 3fef2d2 commit fde5b24
Showing 1 changed file with 24 additions and 24 deletions.
48 changes: 24 additions & 24 deletions clang-tools-extra/clangd/unittests/PrintASTTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,58 +53,58 @@ TEST_P(ASTUtils, PrintTemplateArgs) {
EXPECT_THAT(V.TemplateArgsAtPoints, ElementsAreArray(Pair.Expected));
}

INSTANTIATE_TEST_CASE_P(ASTUtilsTests, ASTUtils,
::testing::ValuesIn(std::vector<Case>({
{
R"cpp(
INSTANTIATE_TEST_SUITE_P(ASTUtilsTests, ASTUtils,
::testing::ValuesIn(std::vector<Case>({
{
R"cpp(
template <class X> class Bar {};
template <> class ^Bar<double> {};)cpp",
{"<double>"}},
{
R"cpp(
{"<double>"}},
{
R"cpp(
template <class X> class Bar {};
template <class T, class U,
template<typename> class Z, int Q>
struct Foo {};
template struct ^Foo<int, bool, Bar, 8>;
template <typename T>
struct ^Foo<T *, T, Bar, 3> {};)cpp",
{"<int, bool, Bar, 8>", "<T *, T, Bar, 3>"}},
{
R"cpp(
{"<int, bool, Bar, 8>", "<T *, T, Bar, 3>"}},
{
R"cpp(
template <int ...> void Foz() {};
template <> void ^Foz<3, 5, 8>() {};)cpp",
{"<3, 5, 8>"}},
{
R"cpp(
{"<3, 5, 8>"}},
{
R"cpp(
template <class X> class Bar {};
template <template <class> class ...>
class Aux {};
template <> class ^Aux<Bar, Bar> {};
template <template <class> class T>
class ^Aux<T, T> {};)cpp",
{"<Bar, Bar>", "<T, T>"}},
{
R"cpp(
{"<Bar, Bar>", "<T, T>"}},
{
R"cpp(
template <typename T> T var = 1234;
template <> int ^var<int> = 1;)cpp",
{"<int>"}},
{
R"cpp(
{"<int>"}},
{
R"cpp(
template <typename T> struct Foo;
struct Bar { friend class Foo<int>; };
template <> struct ^Foo<int> {};)cpp",
{"<int>"}},
{
R"cpp(
{"<int>"}},
{
R"cpp(
template<class T>
T S = T(10);
template <class T>
int ^S<T*> = 0;
template <>
int ^S<double> = 0;)cpp",
{"<T *>", "<double>"}},
})), );
{"<T *>", "<double>"}},
})));
} // namespace
} // namespace clangd
} // namespace clang

0 comments on commit fde5b24

Please sign in to comment.