File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -79,14 +79,13 @@ void DecomposeByAssignWarnCases() {
79
79
}
80
80
81
81
{
82
- auto P = getPair<int , int >(); // match
82
+ auto P = getPair<int , int >();
83
83
// CHECK-MESSAGES-ALL: :[[@LINE-1]]:5: warning: use a structured binding to decompose a pair [modernize-use-structured-binding]
84
- // CHECK-FIXES-ALL: auto [x, y] = getPair<int, int>(); // match
84
+ // CHECK-FIXES-ALL: auto [x, y] = getPair<int, int>();
85
85
int x = P.first ;
86
86
int y = P.second ; // REMOVE
87
87
// CHECK-FIXES-ALL: // REMOVE
88
88
89
- // maybe match with `hasParent` but NOT with `has(declStmt())`
90
89
auto another_p = getPair<int , int >();
91
90
// CHECK-MESSAGES-ALL: :[[@LINE-1]]:5: warning: use a structured binding to decompose a pair [modernize-use-structured-binding]
92
91
// CHECK-FIXES-ALL: auto [another_x, another_y] = getPair<int, int>();
You can’t perform that action at this time.
0 commit comments