From 4fa6821e0645ff61a9380cd090abff472205c630 Mon Sep 17 00:00:00 2001 From: Lexi Winter Date: Sun, 29 Jun 2025 17:16:22 +0100 Subject: add clang-tidy support --- nihil.posix/posix.tempfile.ccm | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'nihil.posix/posix.tempfile.ccm') diff --git a/nihil.posix/posix.tempfile.ccm b/nihil.posix/posix.tempfile.ccm index 20378b5..82f3be4 100644 --- a/nihil.posix/posix.tempfile.ccm +++ b/nihil.posix/posix.tempfile.ccm @@ -56,13 +56,15 @@ export struct temporary_file final { // Not copyable. temporary_file(temporary_file const &) = delete; - auto operator=(this temporary_file &, temporary_file const &) - -> temporary_file & = delete; // Movable. temporary_file(temporary_file &&other) noexcept; + + // Not assignable. + auto operator=(this temporary_file &, temporary_file const &) + -> temporary_file & = delete; auto operator=(this temporary_file &, temporary_file &&) noexcept - -> temporary_file &; + -> temporary_file & = delete; private: // The file descriptor for the file. -- cgit v1.2.3