[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 11:34:52 PST 2024


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

Please explain a touch better with 'no warning'?  Something like, "Test to ensure that the defaulted operator results in this being seen as 'used' despite there not being code to do so."? 

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


More information about the cfe-commits mailing list