[clang] [Clang] Only ignore special methods for unused private fields in BuildFieldReferenceExpr (PR #116965)

Erich Keane via cfe-commits cfe-commits at lists.llvm.org
Mon Nov 25 07:31:49 PST 2024


================
@@ -20,6 +20,20 @@ class SpaceShipDefaultCompare {
   int operator<=>(const SpaceShipDefaultCompare &) const = default;
 };
 
+class EqDefaultCompareOutOfClass {
+  int used;
----------------
erichkeane wrote:

A comment here pointing out that we're validating that `used` doesn't get diagnosed would be helpful.

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


More information about the cfe-commits mailing list