Fix clang-tidy warnings in the OpenCL build
[alexxy/gromacs.git] / src / gromacs / gpu_utils / oclraii.h
index 227ba844e536cd541ff12cfaf993538aa4c409f4..23c77ef14ee16aba53104083ba3c5f6e5dd31f95 100644 (file)
@@ -114,9 +114,9 @@ class ClHandle
         //! Deleted copy constructor.
         ClHandle(const ClHandle &)            = delete;
         //! Default move assignment operator.
-        ClHandle &operator=(ClHandle &&)      = default;
+        ClHandle &operator=(ClHandle &&) noexcept = default;
         //! Default copy constructor.
-        ClHandle(ClHandle &&)                 = default;
+        ClHandle(ClHandle &&)  noexcept               = default;
         /*! \brief Convenience conversion operator so the wrapper type
          * can simply convert to the wrapped type. */
         operator cl_type() const { return handle_; }
@@ -133,6 +133,6 @@ using ClProgram      = ClHandle<cl_program>;
 using ClKernel       = ClHandle<cl_kernel>;
 /*! @} */
 
-} // namespace
+} // namespace gmx
 
 #endif