[clang] [clang][Sema] fix -Wunused-private-field false-positive when use is templated (PR #237374)
Nick Desaulniers via cfe-commits
cfe-commits at lists.llvm.org
Mon Nov 2 15:10:18 PST 2026
================
@@ -22,6 +22,8 @@
namespace clang {
+bool IsUnusedPrivateField(const FieldDecl *FD);
----------------
nickdesaulniers wrote:
sorry, I think it's weird looking to have this be a function floating around like this. I think it makes more sense to have this be a _method_ on a `FieldDecl`. I'm going to move it _there_.
https://github.com/llvm/llvm-project/pull/237374
More information about the cfe-commits
mailing list