Skip to content

Commit 35aee1d

Browse files
authored
[hal] Add ntcore to other libs in styleguide (NFC) (#7766)
1 parent 297f0d1 commit 35aee1d

File tree

3 files changed

+9
-7
lines changed

3 files changed

+9
-7
lines changed

hal/.styleguide

+2
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ includeOtherLibs {
3737
^gtest/
3838
^i2clib/
3939
^llvm/
40+
^networktables/
41+
^ntcore
4042
^opencv2/
4143
^spilib/
4244
^support/

hal/src/main/native/systemcore/FRCDriverStation.cpp

+5-6
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,6 @@
22
// Open Source Software; you can modify and/or share it under the terms of
33
// the WPILib BSD license file in the root directory of this project.
44

5-
#include <networktables/BooleanTopic.h>
6-
#include <networktables/NetworkTableInstance.h>
7-
#include <networktables/ProtobufTopic.h>
8-
#include <networktables/StringArrayTopic.h>
9-
#include <networktables/StringTopic.h>
10-
115
#include <atomic>
126
#include <chrono>
137
#include <cstdio>
@@ -19,6 +13,11 @@
1913
#include <utility>
2014

2115
#include <fmt/format.h>
16+
#include <networktables/BooleanTopic.h>
17+
#include <networktables/NetworkTableInstance.h>
18+
#include <networktables/ProtobufTopic.h>
19+
#include <networktables/StringArrayTopic.h>
20+
#include <networktables/StringTopic.h>
2221
#include <wpi/EventVector.h>
2322
#include <wpi/SafeThread.h>
2423
#include <wpi/SmallVector.h>

hal/src/main/native/systemcore/SmartIo.h

+2-1
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,11 @@
66

77
#include <string>
88

9+
#include <networktables/IntegerTopic.h>
10+
911
#include "PortsInternal.h"
1012
#include "hal/handles/DigitalHandleResource.h"
1113
#include "hal/handles/HandlesInternal.h"
12-
#include "networktables/IntegerTopic.h"
1314

1415
namespace hal {
1516

0 commit comments

Comments
 (0)