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 eda529e commit 1b796d5Copy full SHA for 1b796d5
clang-tools-extra/test/clang-tidy/checkers/misc/unconventional-assign-operator.cpp
@@ -164,15 +164,15 @@ struct TemplateTypeAlias {
164
// CHECK-MESSAGES: :[[@LINE-1]]:3: warning: operator=() should return 'TemplateTypeAlias&' [misc-unconventional-assign-operator]
165
};
166
167
-namespace issue143237 {
+namespace gh143237 {
168
template<typename T>
169
-struct B {
170
- explicit B(int) {
+struct TemplateAssignment {
+ explicit TemplateAssignment(int) {
171
}
172
173
- B& operator=(int n) {
+ TemplateAssignment& operator=(int n) {
174
// No warning
175
- return *this = B(n);
+ return *this = TemplateAssignment(n);
176
177
178
0 commit comments