mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-07-06 03:31:43 +00:00
[wpiutil] Split C++ header files
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
#pragma once
|
||||
|
||||
#include "wpi/nt/ntcore_c.h"
|
||||
#include "wpi/util/Synchronization.h"
|
||||
#include "wpi/util/Synchronization.hpp"
|
||||
|
||||
namespace wpi::nt {
|
||||
|
||||
@@ -33,7 +33,7 @@ class Handle {
|
||||
enum { kIndexMax = 0xfffff };
|
||||
|
||||
constexpr explicit Handle(NT_Handle handle) : m_handle(handle) {}
|
||||
constexpr operator NT_Handle() const { return m_handle; }
|
||||
constexpr operator NT_Handle() const { return m_handle; } // NOLINT
|
||||
|
||||
constexpr NT_Handle handle() const { return m_handle; }
|
||||
|
||||
|
||||
@@ -13,16 +13,13 @@
|
||||
|
||||
#include <fmt/format.h>
|
||||
|
||||
#include "Handle.hpp"
|
||||
#include "Log.hpp"
|
||||
#include "Message.hpp"
|
||||
#include "NetworkInterface.hpp"
|
||||
#include "WireConnection.hpp"
|
||||
#include "WireEncoder.hpp"
|
||||
#include "wpi/nt/NetworkTableValue.hpp"
|
||||
#include "wpi/util/Logger.hpp"
|
||||
#include "wpi/util/raw_ostream.hpp"
|
||||
#include "wpi/util/timestamp.h"
|
||||
#include "wpi/util/timestamp.hpp"
|
||||
|
||||
using namespace wpi::nt;
|
||||
using namespace wpi::nt::net;
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
#include "wpi/util/Logger.hpp"
|
||||
#include "wpi/util/SpanExtras.hpp"
|
||||
#include "wpi/util/raw_ostream.hpp"
|
||||
#include "wpi/util/timestamp.h"
|
||||
#include "wpi/util/timestamp.hpp"
|
||||
|
||||
using namespace wpi::nt;
|
||||
using namespace wpi::nt::net;
|
||||
|
||||
@@ -10,16 +10,14 @@
|
||||
#include <cstdlib>
|
||||
#include <cstring>
|
||||
#include <string_view>
|
||||
#include <utility>
|
||||
#include <vector>
|
||||
|
||||
#include "Value_internal.hpp"
|
||||
#include "wpi/nt/ntcore.h"
|
||||
#include "wpi/nt/ntcore_cpp.hpp"
|
||||
#include "wpi/util/MemAlloc.hpp"
|
||||
#include "wpi/util/SmallVector.hpp"
|
||||
#include "wpi/util/json.hpp"
|
||||
#include "wpi/util/timestamp.h"
|
||||
#include "wpi/util/string.hpp"
|
||||
|
||||
using namespace wpi::nt;
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
#include "net/WireDecoder.hpp"
|
||||
#include "server/ServerStorage.hpp"
|
||||
#include "server/ServerTopic.hpp"
|
||||
#include "wpi/util/timestamp.h"
|
||||
#include "wpi/util/timestamp.hpp"
|
||||
|
||||
using namespace wpi::nt::server;
|
||||
|
||||
|
||||
@@ -8,7 +8,6 @@
|
||||
|
||||
#include <cassert>
|
||||
#include <functional>
|
||||
#include <memory>
|
||||
#include <optional>
|
||||
#include <span>
|
||||
#include <string>
|
||||
|
||||
Reference in New Issue
Block a user