Skip to content

Commit 1b796d5

Browse files
committed
Address comment in testfile
1 parent eda529e commit 1b796d5

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

clang-tools-extra/test/clang-tidy/checkers/misc/unconventional-assign-operator.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -164,15 +164,15 @@ struct TemplateTypeAlias {
164164
// CHECK-MESSAGES: :[[@LINE-1]]:3: warning: operator=() should return 'TemplateTypeAlias&' [misc-unconventional-assign-operator]
165165
};
166166

167-
namespace issue143237 {
167+
namespace gh143237 {
168168
template<typename T>
169-
struct B {
170-
explicit B(int) {
169+
struct TemplateAssignment {
170+
explicit TemplateAssignment(int) {
171171
}
172172

173-
B& operator=(int n) {
173+
TemplateAssignment& operator=(int n) {
174174
// No warning
175-
return *this = B(n);
175+
return *this = TemplateAssignment(n);
176176
}
177177
};
178178
}

0 commit comments

Comments
 (0)