Skip to content

Commit 653233f

Browse files
committed
[NFC] Remove unnecessary comments in testcase
1 parent 82dfe89 commit 653233f

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

clang-tools-extra/test/clang-tidy/checkers/modernize/use-structured-binding.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,14 +79,13 @@ void DecomposeByAssignWarnCases() {
7979
}
8080

8181
{
82-
auto P = getPair<int, int>(); // match
82+
auto P = getPair<int, int>();
8383
// 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>();
8585
int x = P.first;
8686
int y = P.second; // REMOVE
8787
// CHECK-FIXES-ALL: // REMOVE
8888

89-
// maybe match with `hasParent` but NOT with `has(declStmt())`
9089
auto another_p = getPair<int, int>();
9190
// CHECK-MESSAGES-ALL: :[[@LINE-1]]:5: warning: use a structured binding to decompose a pair [modernize-use-structured-binding]
9291
// CHECK-FIXES-ALL: auto [another_x, another_y] = getPair<int, int>();

0 commit comments

Comments
 (0)