mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-07-01 02:41:48 +00:00
SCRIPT: wpiformat
This commit is contained in:
committed by
Peter Johnson
parent
c48b722dac
commit
1e7604f81c
@@ -16,10 +16,9 @@
|
||||
#include <algorithm>
|
||||
#include <cerrno>
|
||||
|
||||
#include "wpi/util/SafeThread.hpp"
|
||||
|
||||
#include "Log.hpp"
|
||||
#include "Notifier.hpp"
|
||||
#include "wpi/util/SafeThread.hpp"
|
||||
|
||||
using namespace cs;
|
||||
|
||||
|
||||
@@ -2,9 +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/util/Synchronization.h"
|
||||
|
||||
#include "wpi/cs/cscore_runloop.hpp"
|
||||
#include "wpi/util/Synchronization.h"
|
||||
|
||||
static wpi::Event& GetInstance() {
|
||||
static wpi::Event event;
|
||||
|
||||
@@ -2,8 +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.
|
||||
|
||||
#ifndef CSCORE_USBCAMERABUFFER_H_
|
||||
#define CSCORE_USBCAMERABUFFER_H_
|
||||
#ifndef CSCORE_USBCAMERABUFFER_HPP_
|
||||
#define CSCORE_USBCAMERABUFFER_HPP_
|
||||
|
||||
#include <sys/mman.h>
|
||||
|
||||
@@ -52,4 +52,4 @@ class UsbCameraBuffer {
|
||||
|
||||
} // namespace cs
|
||||
|
||||
#endif // CSCORE_USBCAMERABUFFER_H_
|
||||
#endif // CSCORE_USBCAMERABUFFER_HPP_
|
||||
|
||||
@@ -26,12 +26,6 @@
|
||||
#include <vector>
|
||||
|
||||
#include <fmt/format.h>
|
||||
#include "wpi/util/MemAlloc.hpp"
|
||||
#include "wpi/util/SmallString.hpp"
|
||||
#include "wpi/util/StringExtras.hpp"
|
||||
#include "wpi/util/fs.hpp"
|
||||
#include "wpi/util/raw_ostream.hpp"
|
||||
#include "wpi/util/timestamp.h"
|
||||
|
||||
#include "Instance.hpp"
|
||||
#include "JpegUtil.hpp"
|
||||
@@ -40,6 +34,12 @@
|
||||
#include "Telemetry.hpp"
|
||||
#include "UsbUtil.hpp"
|
||||
#include "wpi/cs/cscore_cpp.hpp"
|
||||
#include "wpi/util/MemAlloc.hpp"
|
||||
#include "wpi/util/SmallString.hpp"
|
||||
#include "wpi/util/StringExtras.hpp"
|
||||
#include "wpi/util/fs.hpp"
|
||||
#include "wpi/util/raw_ostream.hpp"
|
||||
#include "wpi/util/timestamp.h"
|
||||
|
||||
using namespace cs;
|
||||
|
||||
|
||||
@@ -2,8 +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.
|
||||
|
||||
#ifndef CSCORE_USBCAMERAIMPL_H_
|
||||
#define CSCORE_USBCAMERAIMPL_H_
|
||||
#ifndef CSCORE_USBCAMERAIMPL_HPP_
|
||||
#define CSCORE_USBCAMERAIMPL_HPP_
|
||||
|
||||
#include <linux/videodev2.h>
|
||||
|
||||
@@ -15,16 +15,15 @@
|
||||
#include <utility>
|
||||
#include <vector>
|
||||
|
||||
#include "SourceImpl.hpp"
|
||||
#include "UsbCameraBuffer.hpp"
|
||||
#include "UsbCameraProperty.hpp"
|
||||
#include "wpi/util/SmallVector.hpp"
|
||||
#include "wpi/util/condition_variable.hpp"
|
||||
#include "wpi/util/mutex.hpp"
|
||||
#include "wpi/util/raw_istream.hpp"
|
||||
#include "wpi/util/raw_ostream.hpp"
|
||||
|
||||
#include "SourceImpl.hpp"
|
||||
#include "UsbCameraBuffer.hpp"
|
||||
#include "UsbCameraProperty.hpp"
|
||||
|
||||
namespace cs {
|
||||
|
||||
class Notifier;
|
||||
@@ -179,4 +178,4 @@ class UsbCameraImpl : public SourceImpl {
|
||||
|
||||
} // namespace cs
|
||||
|
||||
#endif // CSCORE_USBCAMERAIMPL_H_
|
||||
#endif // CSCORE_USBCAMERAIMPL_HPP_
|
||||
|
||||
@@ -6,12 +6,12 @@
|
||||
|
||||
#include <memory>
|
||||
|
||||
#include "wpi/util/StringExtras.hpp"
|
||||
#include "wpi/net/EventLoopRunner.hpp"
|
||||
#include "wpi/net/uv/FsEvent.hpp"
|
||||
#include "wpi/net/uv/Timer.hpp"
|
||||
#include <wpi/net/EventLoopRunner.hpp>
|
||||
#include <wpi/net/uv/FsEvent.hpp>
|
||||
#include <wpi/net/uv/Timer.hpp>
|
||||
|
||||
#include "Notifier.hpp"
|
||||
#include "wpi/util/StringExtras.hpp"
|
||||
|
||||
using namespace cs;
|
||||
|
||||
|
||||
@@ -9,10 +9,10 @@
|
||||
#include <utility>
|
||||
|
||||
#include <fmt/format.h>
|
||||
#include "wpi/util/SmallString.hpp"
|
||||
#include "wpi/util/StringExtras.hpp"
|
||||
|
||||
#include "UsbUtil.hpp"
|
||||
#include "wpi/util/SmallString.hpp"
|
||||
#include "wpi/util/StringExtras.hpp"
|
||||
|
||||
using namespace cs;
|
||||
|
||||
|
||||
@@ -2,17 +2,16 @@
|
||||
// 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_H_
|
||||
#define CSCORE_USBCAMERAPROPERTY_H_
|
||||
#ifndef CSCORE_USBCAMERAPROPERTY_HPP_
|
||||
#define CSCORE_USBCAMERAPROPERTY_HPP_
|
||||
|
||||
#include <linux/videodev2.h>
|
||||
|
||||
#include <memory>
|
||||
#include <string_view>
|
||||
|
||||
#include "wpi/util/mutex.hpp"
|
||||
|
||||
#include "PropertyImpl.hpp"
|
||||
#include "wpi/util/mutex.hpp"
|
||||
|
||||
namespace cs {
|
||||
|
||||
@@ -76,4 +75,4 @@ class UsbCameraProperty : public PropertyImpl {
|
||||
|
||||
} // namespace cs
|
||||
|
||||
#endif // CSCORE_USBCAMERAPROPERTY_H_
|
||||
#endif // CSCORE_USBCAMERAPROPERTY_HPP_
|
||||
|
||||
@@ -11,14 +11,14 @@
|
||||
#include <string>
|
||||
|
||||
#include <fmt/format.h>
|
||||
|
||||
#include "Instance.hpp"
|
||||
#include "wpi/util/SmallString.hpp"
|
||||
#include "wpi/util/StringExtras.hpp"
|
||||
#include "wpi/util/fs.hpp"
|
||||
#include "wpi/util/raw_istream.hpp"
|
||||
#include "wpi/util/raw_ostream.hpp"
|
||||
|
||||
#include "Instance.hpp"
|
||||
|
||||
namespace cs {
|
||||
|
||||
static std::string GetUsbNameFromFile(int vendor, int product) {
|
||||
|
||||
@@ -2,8 +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.
|
||||
|
||||
#ifndef CSCORE_USBUTIL_H_
|
||||
#define CSCORE_USBUTIL_H_
|
||||
#ifndef CSCORE_USBUTIL_HPP_
|
||||
#define CSCORE_USBUTIL_HPP_
|
||||
|
||||
#include <string>
|
||||
|
||||
@@ -21,4 +21,4 @@ int CheckedIoctl(int fd, unsigned long req, void* data, // NOLINT(runtime/int)
|
||||
|
||||
} // namespace cs
|
||||
|
||||
#endif // CSCORE_USBUTIL_H_
|
||||
#endif // CSCORE_USBUTIL_HPP_
|
||||
|
||||
Reference in New Issue
Block a user