@@ -37,67 +37,53 @@ struct vector {
37
37
struct [[gsl::Pointer()]] View {};
38
38
std::vector<View> views;
39
39
// CHECK: ClassTemplateSpecializationDecl {{.*}} struct vector definition implicit_instantiation
40
- // CHECK: TemplateArgument type 'View'
41
- // CHECK-NOT: LifetimeCaptureByAttr
42
40
43
41
// CHECK: CXXMethodDecl {{.*}} push_back 'void (const View &)'
44
- // CHECK: ParmVarDecl {{.*}} 'const View &'
45
- // CHECK: LifetimeCaptureByAttr {{.*}} Implicit
46
- // CHECK-NOT: LifetimeCaptureByAttr
42
+ // CHECK-NEXT: ParmVarDecl {{.*}} 'const View &'
43
+ // CHECK-NEXT: LifetimeCaptureByAttr {{.*}} Implicit
47
44
48
45
// CHECK: CXXMethodDecl {{.*}} push_back 'void (View &&)'
49
- // CHECK: ParmVarDecl {{.*}} 'View &&'
50
- // CHECK: LifetimeCaptureByAttr {{.*}} Implicit
46
+ // CHECK-NEXT : ParmVarDecl {{.*}} 'View &&'
47
+ // CHECK-NEXT : LifetimeCaptureByAttr {{.*}} Implicit
51
48
52
49
// CHECK: CXXMethodDecl {{.*}} insert 'void (iterator, View &&)'
53
- // CHECK: ParmVarDecl {{.*}} 'iterator'
54
- // CHECK: LifetimeCaptureByAttr {{.*}} Implicit
55
- // CHECK: ParmVarDecl {{.*}} 'View &&'
56
- // CHECK: LifetimeCaptureByAttr {{.*}} Implicit
57
- // CHECK-NOT: LifetimeCaptureByAttr
50
+ // CHECK-NEXT: ParmVarDecl {{.*}} 'iterator'
51
+ // CHECK-NEXT: ParmVarDecl {{.*}} 'View &&'
52
+ // CHECK-NEXT: LifetimeCaptureByAttr {{.*}} Implicit
58
53
59
54
template <class T > struct [[gsl::Pointer()]] ViewTemplate {};
60
55
std::vector<ViewTemplate<int >> templated_views;
61
- // CHECK: ClassTemplateSpecializationDecl {{.*}} struct vector definition implicit_instantiation
62
- // CHECK: TemplateArgument type 'ViewTemplate<int>'
63
- // CHECK-NOT: LifetimeCaptureByAttr
56
+ // CHECK: ClassTemplateSpecializationDecl {{.*}} struct vector definition implicit_instantiation
64
57
65
58
// CHECK: CXXMethodDecl {{.*}} push_back 'void (const ViewTemplate<int> &)'
66
- // CHECK: ParmVarDecl {{.*}} 'const ViewTemplate<int> &'
67
- // CHECK: LifetimeCaptureByAttr {{.*}} Implicit
59
+ // CHECK-NEXT : ParmVarDecl {{.*}} 'const ViewTemplate<int> &'
60
+ // CHECK-NEXT : LifetimeCaptureByAttr {{.*}} Implicit
68
61
// CHECK-NOT: LifetimeCaptureByAttr
69
62
70
63
// CHECK: CXXMethodDecl {{.*}} push_back 'void (ViewTemplate<int> &&)'
71
- // CHECK: ParmVarDecl {{.*}} 'ViewTemplate<int> &&'
72
- // CHECK: LifetimeCaptureByAttr {{.*}} Implicit
64
+ // CHECK-NEXT : ParmVarDecl {{.*}} 'ViewTemplate<int> &&'
65
+ // CHECK-NEXT : LifetimeCaptureByAttr {{.*}} Implicit
73
66
74
67
// CHECK: CXXMethodDecl {{.*}} insert 'void (iterator, ViewTemplate<int> &&)'
75
- // CHECK: ParmVarDecl {{.*}} 'iterator'
76
- // CHECK: LifetimeCaptureByAttr {{.*}} Implicit
77
- // CHECK: ParmVarDecl {{.*}} 'ViewTemplate<int> &&'
78
- // CHECK: LifetimeCaptureByAttr {{.*}} Implicit
79
- // CHECK-NOT: LifetimeCaptureByAttr
68
+ // CHECK-NEXT: ParmVarDecl {{.*}} 'iterator'
69
+ // CHECK-NEXT: ParmVarDecl {{.*}} 'ViewTemplate<int> &&'
70
+ // CHECK-NEXT: LifetimeCaptureByAttr {{.*}} Implicit
80
71
81
72
std::vector<int *> pointers;
82
73
// CHECK: ClassTemplateSpecializationDecl {{.*}} struct vector definition implicit_instantiation
83
- // CHECK: TemplateArgument type 'int *'
84
- // CHECK-NOT: LifetimeCaptureByAttr
85
74
86
75
// CHECK: CXXMethodDecl {{.*}} push_back 'void (int *const &)'
87
- // CHECK: ParmVarDecl {{.*}} 'int *const &'
88
- // CHECK: LifetimeCaptureByAttr {{.*}} Implicit
89
- // CHECK-NOT: LifetimeCaptureByAttr
76
+ // CHECK-NEXT: ParmVarDecl {{.*}} 'int *const &'
77
+ // CHECK-NEXT: LifetimeCaptureByAttr {{.*}} Implicit
90
78
91
79
// CHECK: CXXMethodDecl {{.*}} push_back 'void (int *&&)'
92
- // CHECK: ParmVarDecl {{.*}} 'int *&&'
93
- // CHECK: LifetimeCaptureByAttr {{.*}} Implicit
80
+ // CHECK-NEXT : ParmVarDecl {{.*}} 'int *&&'
81
+ // CHECK-NEXT : LifetimeCaptureByAttr {{.*}} Implicit
94
82
95
83
// CHECK: CXXMethodDecl {{.*}} insert 'void (iterator, int *&&)'
96
- // CHECK: ParmVarDecl {{.*}} 'iterator'
97
- // CHECK: LifetimeCaptureByAttr {{.*}} Implicit
98
- // CHECK: ParmVarDecl {{.*}} 'int *&&'
99
- // CHECK: LifetimeCaptureByAttr {{.*}} Implicit
100
- // CHECK-NOT: LifetimeCaptureByAttr
84
+ // CHECK-NEXT: ParmVarDecl {{.*}} 'iterator'
85
+ // CHECK-NEXT: ParmVarDecl {{.*}} 'int *&&'
86
+ // CHECK-NEXT: LifetimeCaptureByAttr {{.*}} Implicit
101
87
102
88
std::vector<int > ints;
103
89
// CHECK: ClassTemplateSpecializationDecl {{.*}} struct vector definition implicit_instantiation
@@ -110,6 +96,6 @@ std::vector<int> ints;
110
96
// CHECK-NOT: LifetimeCaptureByAttr
111
97
112
98
// CHECK: CXXMethodDecl {{.*}} insert 'void (iterator, int &&)'
113
- // CHECK: ParmVarDecl {{.*}} 'iterator'
114
- // CHECK: LifetimeCaptureByAttr {{.*}} Implicit
99
+ // CHECK-NEXT : ParmVarDecl {{.*}} 'iterator'
100
+ // CHECK-NEXT : ParmVarDecl {{.*}} 'int &&'
115
101
// CHECK-NOT: LifetimeCaptureByAttr
0 commit comments