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

@@ -10,17 +10,12 @@
#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN
#endif
#include <windows.h> // NOLINT(build/include_order)
#include <windows.h>
#include <memoryapi.h>
#include <sysinfoapi.h>
#else // _WIN32
#include <sys/mman.h>
#include <unistd.h>
#endif // _WIN32
#ifdef _MSC_VER

View File

@@ -8,7 +8,7 @@
#include <cstdio>
#include <memory>
#pragma comment(lib, "version.lib") // for VerQueryValueW
#include "Windows.h"
#include <windows.h>
extern "C" int32_t WPI_IsRuntimeValid(uint32_t* foundMajor,
uint32_t* foundMinor,
uint32_t* expectedMajor,

View File

@@ -2,9 +2,9 @@
// 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 "string"
#include "wpi/util/string.h"
#include <string>
#include <string_view>
#include "wpi/util/MemAlloc.hpp"

View File

@@ -5,8 +5,7 @@
#pragma once
#ifdef __cplusplus
#include <climits> // NOLINT
#include <climits>
#include <initializer_list>
#include <span>
#endif

View File

@@ -4,9 +4,8 @@
#include "wpi/util/Demangle.hpp"
#include <cxxabi.h>
#include <cstdio>
#include <cxxabi.h>
#include <string>
#include "wpi/util/SmallString.hpp"

View File

@@ -4,8 +4,7 @@
#include "wpi/util/Demangle.hpp"
#include <windows.h> // NOLINT(build/include_order)
#include <windows.h>
#include <dbghelp.h>
#include <string>