mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-28 02:11:43 +00:00
clang-tidy: google-explicit-constructor
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user