mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-07-03 03:01:44 +00:00
Fix or suppress clang-tidy warnings (#8254)
This commit is contained in:
@@ -177,6 +177,7 @@ static_assert(ValidType<uint8_t[]>);
|
||||
static_assert(ValidType<std::vector<uint8_t>>);
|
||||
|
||||
template <ValidType T, NT_Type type>
|
||||
// NOLINTNEXTLINE(google-readability-casting)
|
||||
constexpr bool IsNTType = TypeInfo<std::remove_cvref_t<T>>::kType == type;
|
||||
|
||||
static_assert(IsNTType<bool, NT_BOOLEAN>);
|
||||
|
||||
@@ -4,6 +4,8 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
#include <functional>
|
||||
#include <string_view>
|
||||
|
||||
|
||||
@@ -7,9 +7,7 @@
|
||||
#include <stdint.h>
|
||||
|
||||
#include <atomic>
|
||||
#include <concepts>
|
||||
#include <span>
|
||||
#include <string_view>
|
||||
#include <utility>
|
||||
#include <vector>
|
||||
|
||||
@@ -207,7 +205,7 @@ class ProtobufPublisher : public Publisher {
|
||||
ProtobufPublisher(ProtobufPublisher&& rhs)
|
||||
: Publisher{std::move(rhs)},
|
||||
m_msg{std::move(rhs.m_msg)},
|
||||
m_schemaPublished{rhs.m_schemaPublished} {}
|
||||
m_schemaPublished{rhs.m_schemaPublished.load()} {}
|
||||
|
||||
ProtobufPublisher& operator=(ProtobufPublisher&& rhs) {
|
||||
Publisher::operator=(std::move(rhs));
|
||||
|
||||
Reference in New Issue
Block a user