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,10 +2,10 @@
// 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 <gtest/gtest.h>
#include "wpi/halsim/ds_socket/DSCommPacket.hpp"
#include <gtest/gtest.h>
class DSCommPacketTest : public ::testing::Test {
public:
DSCommPacketTest() = default;

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 "wpi/hal/Main.h"
#include <cstdio>
#include <memory>
#include <string_view>
@@ -26,7 +28,6 @@
#include "wpi/glass/other/Plot.hpp"
#include "wpi/gui/wpigui.hpp"
#include "wpi/hal/Extensions.h"
#include "wpi/hal/Main.h"
#include "wpi/halsim/gui/HALSimGui.hpp"
#include "wpi/halsim/gui/HALSimGuiExt.hpp"
#include "wpi/halsim/gui/SimDeviceGui.hpp"

View File

@@ -2,11 +2,12 @@
// 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/hal/Main.h"
#include <thread>
#include "wpi/hal/DriverStation.h"
#include "wpi/hal/HALBase.h"
#include "wpi/hal/Main.h"
#include "wpi/util/print.hpp"
extern "C" int HALSIM_InitExtension(void);

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 "wpi/hal/Main.h"
#include <cstdio>
#include <thread>
#include "wpi/hal/DriverStation.h"
#include "wpi/hal/HALBase.h"
#include "wpi/hal/Main.h"
#include "wpi/util/print.hpp"
extern "C" int HALSIM_InitExtension(void);

View File

@@ -4,12 +4,12 @@
#include "wpi/halsim/ws_server/HALSimHttpConnection.hpp"
#include <uv.h>
#include <cstdio>
#include <string>
#include <string_view>
#include <uv.h>
#include "wpi/net/MimeTypes.hpp"
#include "wpi/net/UrlParser.hpp"
#include "wpi/net/raw_uv_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 "wpi/hal/Main.h"
#include <memory>
#include <string>
#include <thread>
@@ -11,7 +13,6 @@
#include "WebServerClientTest.hpp"
#include "wpi/hal/DriverStation.h"
#include "wpi/hal/HALBase.h"
#include "wpi/hal/Main.h"
#include "wpi/hal/simulation/DIOData.h"
#include "wpi/halsim/ws_server/HALSimWSServer.hpp"
#include "wpi/net/uv/Loop.hpp"