Merge wpiformat configs (#8365)

After replacing the remaining include guards with `#pragma once`, I was
able to merge all the wpiformat configs into one file in the repo root.
This should make the config easier to reason about and maintain in the
future.
This commit is contained in:
Tyler Veness
2025-11-11 22:00:42 -08:00
committed by GitHub
parent 23906ee2f7
commit 7a04d6a6a2
117 changed files with 182 additions and 873 deletions

View File

@@ -2,8 +2,7 @@
// 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.
#ifndef CSCORE_USBCAMERABUFFER_HPP_
#define CSCORE_USBCAMERABUFFER_HPP_
#pragma once
#include <sys/mman.h>
@@ -51,5 +50,3 @@ class UsbCameraBuffer {
};
} // namespace wpi::cs
#endif // CSCORE_USBCAMERABUFFER_HPP_

View File

@@ -2,8 +2,7 @@
// 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.
#ifndef CSCORE_USBCAMERAIMPL_HPP_
#define CSCORE_USBCAMERAIMPL_HPP_
#pragma once
#include <linux/videodev2.h>
@@ -178,5 +177,3 @@ class UsbCameraImpl : public SourceImpl {
};
} // namespace wpi::cs
#endif // CSCORE_USBCAMERAIMPL_HPP_

View File

@@ -2,8 +2,7 @@
// 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.
#ifndef CSCORE_USBCAMERAPROPERTY_HPP_
#define CSCORE_USBCAMERAPROPERTY_HPP_
#pragma once
#include <linux/videodev2.h>
@@ -74,5 +73,3 @@ class UsbCameraProperty : public PropertyImpl {
};
} // namespace wpi::cs
#endif // CSCORE_USBCAMERAPROPERTY_HPP_

View File

@@ -2,8 +2,7 @@
// 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.
#ifndef CSCORE_USBUTIL_HPP_
#define CSCORE_USBUTIL_HPP_
#pragma once
#include <string>
@@ -20,5 +19,3 @@ int CheckedIoctl(int fd, unsigned long req, void* data, // NOLINT(runtime/int)
CheckedIoctl(fd, req, data, #req, __FILE__, __LINE__, true)
} // namespace wpi::cs
#endif // CSCORE_USBUTIL_HPP_