================
@@ -265,3 +265,19 @@ Gaz hn3() {
// CHECK-MESSAGES: :[[@LINE-1]]:10: warning: avoid repeating the return type
// CHECK-FIXES: return {x};
}
+
+
+struct foo {};
+
+struct bar {
+ operator const foo&() const;
+};
+
+foo x() {
+ return bar();
----------------
Fznamznon wrote:
Is my understanding correct that we want to remove a bogus warning with this
fix?
clang-tidy is totally not my area and it is kind of hard to derive that the fix
results in that. I wonder if we can add a namespace indicating GH issue this
patch is fixing and a comment that warnings are not expected here? i.e. wrap
everything in namespace gh185044 ?
https://github.com/llvm/llvm-project/pull/196092
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits