[clang] Don't eagerly load all declarations in a class when defining a special member function. (PR #210178)

Corentin Jabot via cfe-commits cfe-commits at lists.llvm.org
Mon Oct 12 03:00:42 PDT 2026


================
@@ -3,7 +3,14 @@ struct S {
 
   S();
   S(const S&);
+  S &operator=(const S&);
+
+  void doNotDeserialize();
 
   operator const char*();
   operator char*();
 };
+
+struct Trivial {
+  void doNotDeserialize();
+};
----------------
cor3ntin wrote:

Missing new line

https://github.com/llvm/llvm-project/pull/210178


More information about the cfe-commits mailing list