[json] Add forward definition header (#5676)

This commit is contained in:
PJ Reiniger
2023-09-22 16:01:27 -04:00
committed by GitHub
parent eab44534c3
commit dd5612fbee
32 changed files with 47 additions and 96 deletions

View File

@@ -8,11 +8,9 @@
#include <string>
#include <string_view>
#include "ntcore_cpp.h"
#include <wpi/json_fwd.h>
namespace wpi {
class json;
} // namespace wpi
#include "ntcore_cpp.h"
namespace nt {
class PubSubOptionsImpl;

View File

@@ -11,9 +11,10 @@
#include <string>
#include <string_view>
#include <wpi/json_fwd.h>
namespace wpi {
class Logger;
class json;
} // namespace wpi
namespace nt {

View File

@@ -9,8 +9,9 @@
#include <string>
#include <string_view>
#include <wpi/json_fwd.h>
namespace wpi {
class json;
class raw_ostream;
} // namespace wpi

View File

@@ -11,14 +11,12 @@
#include <utility>
#include <vector>
#include <wpi/json_fwd.h>
#include "networktables/NetworkTableType.h"
#include "ntcore_c.h"
#include "ntcore_cpp.h"
namespace wpi {
class json;
} // namespace wpi
namespace nt {
class GenericEntry;

View File

@@ -10,13 +10,11 @@
#include <string_view>
#include <vector>
#include <wpi/json_fwd.h>
#include "networktables/Topic.h"
#include "ntcore_cpp.h"
namespace wpi {
class json;
} // namespace wpi
namespace nt {
template <typename T>

View File

@@ -17,6 +17,8 @@
#include <variant>
#include <vector>
#include <wpi/json_fwd.h>
#include "networktables/NetworkTableValue.h"
#include "ntcore_c.h"
#include "ntcore_cpp_types.h"
@@ -24,7 +26,6 @@
namespace wpi {
template <typename T>
class SmallVectorImpl;
class json;
} // namespace wpi
namespace wpi::log {