We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 08fd8db commit 49bfcaeCopy full SHA for 49bfcae
clang-tools-extra/test/clang-tidy/checkers/modernize/use-structured-binding.cpp
@@ -9,6 +9,7 @@ struct TestClass {
9
int a;
10
int b;
11
TestClass() : a(0), b(0) {}
12
+ TestClass& operator++();
13
TestClass(int x, int y) : a(x), b(y) {}
14
};
15
@@ -123,6 +124,12 @@ void forRangeNotWarnCases() {
123
124
}
125
126
std::pair<TestClass, TestClass> ClassPairs[10];
127
+ for (auto P : ClassPairs) {
128
+ TestClass c1 = P.first;
129
+ ++ c1 ;
130
+ TestClass c2 = P.second;
131
+ }
132
+
133
int c;
134
for (auto P : ClassPairs) {
135
TestClass c1 = P.first;
0 commit comments