@@ -118,12 +118,6 @@ TEST_F(DefineOutlineTest, TriggersOnFunctionDecl) {
118
118
template <> void fo^o<int>() {}
119
119
)cpp" );
120
120
121
- // Not available on member function templates with unnamed template
122
- // parameters.
123
- EXPECT_UNAVAILABLE (R"cpp(
124
- struct Foo { template <typename> void ba^r() {} };
125
- )cpp" );
126
-
127
121
// Not available on methods of unnamed classes.
128
122
EXPECT_UNAVAILABLE (R"cpp(
129
123
struct Foo {
@@ -410,14 +404,14 @@ inline typename O1<T, U...>::template O2<V, A>::E O1<T, U...>::template O2<V, A>
410
404
{
411
405
R"cpp(
412
406
struct Foo {
413
- template <typename T, bool B = true>
407
+ template <typename T, typename, bool B = true>
414
408
T ^bar() { return {}; }
415
409
};)cpp" ,
416
410
R"cpp(
417
411
struct Foo {
418
- template <typename T, bool B = true>
412
+ template <typename T, typename, bool B = true>
419
413
T bar() ;
420
- };template <typename T, bool B>
414
+ };template <typename T, typename, bool B>
421
415
inline T Foo::bar() { return {}; }
422
416
)cpp" ,
423
417
" " },
@@ -426,13 +420,13 @@ inline T Foo::bar() { return {}; }
426
420
{
427
421
R"cpp(
428
422
template <typename T> struct Foo {
429
- template <typename U> T ^bar(const T& t, const U& u) { return {}; }
423
+ template <typename U, bool > T ^bar(const T& t, const U& u) { return {}; }
430
424
};)cpp" ,
431
425
R"cpp(
432
426
template <typename T> struct Foo {
433
- template <typename U> T bar(const T& t, const U& u) ;
427
+ template <typename U, bool > T bar(const T& t, const U& u) ;
434
428
};template <typename T>
435
- template <typename U>
429
+ template <typename U, bool >
436
430
inline T Foo<T>::bar(const T& t, const U& u) { return {}; }
437
431
)cpp" ,
438
432
" " },
0 commit comments