[clang] [clang][Sema] Refine unused-member-function diagnostic message for constructors (PR #84515)
Aaron Ballman via cfe-commits
cfe-commits at lists.llvm.org
Thu Jul 25 06:01:43 PDT 2024
================
@@ -76,10 +76,33 @@ struct S {
struct SVS : public VS {
void vm() { }
};
+
+ struct CS {
----------------
AaronBallman wrote:
When switching the diagnostic approach, be sure to add test coverage for unused copy/move constructors, copy/move assignment, and destructors (you can get an unused destructor if you only use `new` to allocate the class rather than stack allocate it).
https://github.com/llvm/llvm-project/pull/84515
More information about the cfe-commits
mailing list