[clang] [WebKit checkers] Treat an implicit value initialization as trivial (PR #126203)
Ryosuke Niwa via cfe-commits
cfe-commits at lists.llvm.org
Fri Feb 7 10:04:23 PST 2025
================
@@ -368,6 +368,11 @@ class RefCounted {
}
RefPtr<RefCounted> trivial66() { return children[0]; }
Ref<RefCounted> trivial67() { return *children[0]; }
+ struct point {
+ double x;
+ double y;
+ };
+ void trivial68() { point pt = { 1.0 }; }
----------------
rniwa wrote:
It implicitly initializes y. That's what this bug is about. I wasn't recognizing that type of implicit initialization.
https://github.com/llvm/llvm-project/pull/126203
More information about the cfe-commits
mailing list