clang-tidy: google-explicit-constructor

This commit is contained in:
Peter Johnson
2020-12-28 11:18:07 -08:00
parent c97c6dc065
commit cbe59fa3bf
15 changed files with 26 additions and 24 deletions

View File

@@ -322,7 +322,7 @@ class SimValue {
*
* @return internal handle
*/
operator HAL_SimValueHandle() const { return m_handle; }
operator HAL_SimValueHandle() const { return m_handle; } // NOLINT
/**
* Gets the simulated value.
@@ -544,7 +544,7 @@ class SimDevice {
*
* @return internal handle
*/
operator HAL_SimDeviceHandle() const { return m_handle; }
operator HAL_SimDeviceHandle() const { return m_handle; } // NOLINT
/**
* Creates a value on the simulated device.

View File

@@ -96,7 +96,7 @@ class Handle {
return *this;
}
operator CType() const { return m_handle; }
operator CType() const { return m_handle; } // NOLINT
private:
CType m_handle = CInvalid;

View File

@@ -28,7 +28,7 @@ class SimDataValueBase : protected SimCallbackRegistryBase {
return m_value;
}
LLVM_ATTRIBUTE_ALWAYS_INLINE operator T() const { return Get(); }
LLVM_ATTRIBUTE_ALWAYS_INLINE operator T() const { return Get(); } // NOLINT
void Reset(T value) {
std::scoped_lock lock(m_mutex);