[clang-tools-extra] [NFC] Complete proper copying and resource cleanup in classes. (PR #118655)

Aaron Ballman via cfe-commits cfe-commits at lists.llvm.org
Thu Dec 5 05:13:48 PST 2024


================
@@ -31,6 +31,8 @@ class NoLintDirectiveHandler {
 public:
   NoLintDirectiveHandler();
   ~NoLintDirectiveHandler();
+  NoLintDirectiveHandler(const NoLintDirectiveHandler &) = default;
+  NoLintDirectiveHandler &operator=(const NoLintDirectiveHandler &) = default;
----------------
AaronBallman wrote:

I don't think these are strictly needed, but I think it would be fine to explicitly `= delete` them.

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


More information about the cfe-commits mailing list