[clang] [clang-tools-extra] [clang] fix location information of CXXConstructorExpr AST node (PR #196092)
Mariya Podchishchaeva via cfe-commits
cfe-commits at lists.llvm.org
Mon May 11 05:18:38 PDT 2026
================
@@ -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
More information about the cfe-commits
mailing list