Upgrade wpiformat and use clang-format's include sorting (#8350)

This PR also uses the newly added -default-branch flag to generate the list of changed files with respect to the correct branch (2027).
This commit is contained in:
Tyler Veness
2025-11-11 18:05:12 -08:00
committed by GitHub
parent a0f4727179
commit 1705b2d61c
321 changed files with 677 additions and 628 deletions

View File

@@ -2,12 +2,13 @@
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
#include "LocalStorage.hpp"
#include <string>
#include <vector>
#include <gtest/gtest.h>
#include "LocalStorage.hpp"
#include "MockListenerStorage.hpp"
#include "MockLogger.hpp"
#include "PubSubOptionsMatcher.hpp"

View File

@@ -2,13 +2,14 @@
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
#include "wpi/nt/NetworkTable.hpp"
#include <string>
#include <vector>
#include <gtest/gtest.h>
#include "TestPrinters.hpp"
#include "wpi/nt/NetworkTable.hpp"
#include "wpi/nt/NetworkTableInstance.hpp"
class NetworkTableTest : public ::testing::Test {};

View File

@@ -2,13 +2,14 @@
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
#include "wpi/util/struct/Struct.hpp"
#include <gtest/gtest.h>
#include "wpi/nt/NetworkTableInstance.hpp"
#include "wpi/nt/StructArrayTopic.hpp"
#include "wpi/nt/StructTopic.hpp"
#include "wpi/util/SpanMatcher.hpp"
#include "wpi/util/struct/Struct.hpp"
namespace {
struct Inner {

View File

@@ -2,6 +2,8 @@
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
#include "net/WireDecoder.hpp"
#include <string>
#include <gtest/gtest.h>
@@ -13,7 +15,6 @@
#include "PubSubOptions.hpp"
#include "gmock/gmock.h"
#include "net/MessageHandler.hpp"
#include "net/WireDecoder.hpp"
#include "wpi/nt/NetworkTableValue.hpp"
#include "wpi/util/SmallString.hpp"
#include "wpi/util/raw_ostream.hpp"

View File

@@ -2,6 +2,8 @@
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
#include "net/WireEncoder.hpp"
#include <span>
#include <string>
#include <string_view>
@@ -14,7 +16,6 @@
#include "PubSubOptions.hpp"
#include "gmock/gmock-matchers.h"
#include "net/Message.hpp"
#include "net/WireEncoder.hpp"
#include "wpi/nt/NetworkTableValue.hpp"
#include "wpi/util/SpanMatcher.hpp"
#include "wpi/util/json.hpp"

View File

@@ -2,6 +2,8 @@
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
#include "server/ServerImpl.hpp"
#include <stdint.h>
#include <concepts>
@@ -23,7 +25,6 @@
#include "gmock/gmock.h"
#include "net/Message.hpp"
#include "net/WireEncoder.hpp"
#include "server/ServerImpl.hpp"
#include "wpi/nt/ntcore_c.h"
#include "wpi/nt/ntcore_cpp.hpp"
#include "wpi/util/SpanMatcher.hpp"