[clang] Fix false positive of [[clang::require_explicit_initialization]] on copy/move constructors (PR #126553)
via cfe-commits
cfe-commits at lists.llvm.org
Mon Feb 10 10:01:00 PST 2025
================
@@ -1582,7 +1582,21 @@ void aggregate() {
F("___"),
F("____")
};
- (void)ctors;
+
+ struct Copy {
+ Embed e;
+ EmbedDerived ed;
+ F f;
+ Copy(const Copy &c) : e(c.e), ed(c.ed), f(c.f) {} // no-error
----------------
higher-performance wrote:
Ah typo
https://github.com/llvm/llvm-project/pull/126553
More information about the cfe-commits
mailing list