mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-07-01 02:41:48 +00:00
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:
@@ -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
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -5,8 +5,7 @@
|
||||
#pragma once
|
||||
|
||||
#ifdef __cplusplus
|
||||
#include <climits> // NOLINT
|
||||
|
||||
#include <climits>
|
||||
#include <initializer_list>
|
||||
#include <span>
|
||||
#endif
|
||||
|
||||
@@ -4,9 +4,8 @@
|
||||
|
||||
#include "wpi/util/Demangle.hpp"
|
||||
|
||||
#include <cxxabi.h>
|
||||
|
||||
#include <cstdio>
|
||||
#include <cxxabi.h>
|
||||
#include <string>
|
||||
|
||||
#include "wpi/util/SmallString.hpp"
|
||||
|
||||
@@ -4,8 +4,7 @@
|
||||
|
||||
#include "wpi/util/Demangle.hpp"
|
||||
|
||||
#include <windows.h> // NOLINT(build/include_order)
|
||||
|
||||
#include <windows.h>
|
||||
#include <dbghelp.h>
|
||||
|
||||
#include <string>
|
||||
|
||||
Reference in New Issue
Block a user