[clang] [WebKit checkers] Treat an implicit value initialization as trivial (PR #126203)
David Kilzer via cfe-commits
cfe-commits at lists.llvm.org
Fri Feb 7 08:51:00 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 }; }
----------------
ddkilzer wrote:
Not sure how much this matters for the test, but doesn't this leave `y` uninitialized?
https://github.com/llvm/llvm-project/pull/126203
More information about the cfe-commits
mailing list