mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-30 02:31:44 +00:00
SCRIPT: wpiformat
This commit is contained in:
committed by
Peter Johnson
parent
c48b722dac
commit
1e7604f81c
@@ -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 WPIUTIL_WPI_BASE64_H_
|
||||
#define WPIUTIL_WPI_BASE64_H_
|
||||
#ifndef WPIUTIL_WPI_UTIL_BASE64_HPP_
|
||||
#define WPIUTIL_WPI_UTIL_BASE64_HPP_
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
@@ -46,4 +46,4 @@ std::string_view Base64Encode(std::span<const uint8_t> plain,
|
||||
|
||||
} // namespace wpi
|
||||
|
||||
#endif // WPIUTIL_WPI_BASE64_H_
|
||||
#endif // WPIUTIL_WPI_UTIL_BASE64_HPP_
|
||||
|
||||
@@ -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 WPIUTIL_WPI_CALLBACKMANAGER_H_
|
||||
#define WPIUTIL_WPI_CALLBACKMANAGER_H_
|
||||
#ifndef WPIUTIL_WPI_UTIL_CALLBACKMANAGER_HPP_
|
||||
#define WPIUTIL_WPI_UTIL_CALLBACKMANAGER_HPP_
|
||||
|
||||
#include <atomic>
|
||||
#include <climits>
|
||||
@@ -392,4 +392,4 @@ class CallbackManager {
|
||||
|
||||
} // namespace wpi
|
||||
|
||||
#endif // WPIUTIL_WPI_CALLBACKMANAGER_H_
|
||||
#endif // WPIUTIL_WPI_UTIL_CALLBACKMANAGER_HPP_
|
||||
|
||||
@@ -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 WPIUTIL_WPI_DEMANGLE_H_
|
||||
#define WPIUTIL_WPI_DEMANGLE_H_
|
||||
#ifndef WPIUTIL_WPI_UTIL_DEMANGLE_HPP_
|
||||
#define WPIUTIL_WPI_UTIL_DEMANGLE_HPP_
|
||||
|
||||
#include <string>
|
||||
#include <string_view>
|
||||
@@ -30,4 +30,4 @@ std::string GetTypeName(const T& type) {
|
||||
|
||||
} // namespace wpi
|
||||
|
||||
#endif // WPIUTIL_WPI_DEMANGLE_H_
|
||||
#endif // WPIUTIL_WPI_UTIL_DEMANGLE_HPP_
|
||||
|
||||
@@ -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 WPIUTIL_WPI_LOGGER_H_
|
||||
#define WPIUTIL_WPI_LOGGER_H_
|
||||
#ifndef WPIUTIL_WPI_UTIL_LOGGER_HPP_
|
||||
#define WPIUTIL_WPI_UTIL_LOGGER_HPP_
|
||||
|
||||
#include <functional>
|
||||
#include <utility>
|
||||
@@ -91,4 +91,4 @@ class Logger {
|
||||
|
||||
} // namespace wpi
|
||||
|
||||
#endif // WPIUTIL_WPI_LOGGER_H_
|
||||
#endif // WPIUTIL_WPI_UTIL_LOGGER_HPP_
|
||||
|
||||
@@ -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 WPIUTIL_WPI_RAWFRAME_H_
|
||||
#define WPIUTIL_WPI_RAWFRAME_H_
|
||||
#ifndef WPIUTIL_WPI_UTIL_RAWFRAME_H_
|
||||
#define WPIUTIL_WPI_UTIL_RAWFRAME_H_
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
@@ -163,4 +163,4 @@ void SetFrameData(JNIEnv* env, jclass rawFrameCls, jobject jframe,
|
||||
} // namespace wpi
|
||||
#endif
|
||||
|
||||
#endif // WPIUTIL_WPI_RAWFRAME_H_
|
||||
#endif // WPIUTIL_WPI_UTIL_RAWFRAME_H_
|
||||
|
||||
@@ -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 WPIUTIL_WPI_SAFETHREAD_H_
|
||||
#define WPIUTIL_WPI_SAFETHREAD_H_
|
||||
#ifndef WPIUTIL_WPI_UTIL_SAFETHREAD_HPP_
|
||||
#define WPIUTIL_WPI_UTIL_SAFETHREAD_HPP_
|
||||
|
||||
#include <atomic>
|
||||
#include <memory>
|
||||
@@ -142,4 +142,4 @@ class SafeThreadOwner : public detail::SafeThreadOwnerBase {
|
||||
|
||||
} // namespace wpi
|
||||
|
||||
#endif // WPIUTIL_WPI_SAFETHREAD_H_
|
||||
#endif // WPIUTIL_WPI_UTIL_SAFETHREAD_HPP_
|
||||
|
||||
@@ -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 WPIUTIL_WPI_STACKTRACE_H_
|
||||
#define WPIUTIL_WPI_STACKTRACE_H_
|
||||
#ifndef WPIUTIL_WPI_UTIL_STACKTRACE_HPP_
|
||||
#define WPIUTIL_WPI_UTIL_STACKTRACE_HPP_
|
||||
|
||||
#include <string>
|
||||
|
||||
@@ -32,4 +32,4 @@ void SetGetStackTraceImpl(std::string (*func)(int offset));
|
||||
|
||||
} // namespace wpi
|
||||
|
||||
#endif // WPIUTIL_WPI_STACKTRACE_H_
|
||||
#endif // WPIUTIL_WPI_UTIL_STACKTRACE_HPP_
|
||||
|
||||
@@ -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 WPIUTIL_WPI_UIDVECTOR_H_
|
||||
#define WPIUTIL_WPI_UIDVECTOR_H_
|
||||
#ifndef WPIUTIL_WPI_UTIL_UIDVECTOR_HPP_
|
||||
#define WPIUTIL_WPI_UTIL_UIDVECTOR_HPP_
|
||||
|
||||
#include <iterator>
|
||||
#include <utility>
|
||||
@@ -156,4 +156,4 @@ class UidVector {
|
||||
|
||||
} // namespace wpi
|
||||
|
||||
#endif // WPIUTIL_WPI_UIDVECTOR_H_
|
||||
#endif // WPIUTIL_WPI_UTIL_UIDVECTOR_HPP_
|
||||
|
||||
@@ -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 WPIUTIL_WPI_DEPRECATED_H_
|
||||
#define WPIUTIL_WPI_DEPRECATED_H_
|
||||
#ifndef WPIUTIL_WPI_UTIL_DEPRECATED_HPP_
|
||||
#define WPIUTIL_WPI_UTIL_DEPRECATED_HPP_
|
||||
|
||||
#ifndef WPI_IGNORE_DEPRECATED
|
||||
#ifdef __GNUC__
|
||||
@@ -28,4 +28,4 @@
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#endif // WPIUTIL_WPI_DEPRECATED_H_
|
||||
#endif // WPIUTIL_WPI_UTIL_DEPRECATED_HPP_
|
||||
|
||||
@@ -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 WPIUTIL_WPI_FMT_RAW_OSTREAM_H_
|
||||
#define WPIUTIL_WPI_FMT_RAW_OSTREAM_H_
|
||||
#ifndef WPIUTIL_WPI_UTIL_FMT_RAW_OSTREAM_HPP_
|
||||
#define WPIUTIL_WPI_UTIL_FMT_RAW_OSTREAM_HPP_
|
||||
|
||||
#include <fmt/format.h>
|
||||
|
||||
@@ -28,4 +28,4 @@ void print(wpi::raw_ostream& os, const S& format_str, Args&&... args) {
|
||||
|
||||
} // namespace wpi
|
||||
|
||||
#endif // WPIUTIL_WPI_FMT_RAW_OSTREAM_H_
|
||||
#endif // WPIUTIL_WPI_UTIL_FMT_RAW_OSTREAM_HPP_
|
||||
|
||||
@@ -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 WPIUTIL_WPI_FUTURE_H_
|
||||
#define WPIUTIL_WPI_FUTURE_H_
|
||||
#ifndef WPIUTIL_WPI_UTIL_FUTURE_HPP_
|
||||
#define WPIUTIL_WPI_UTIL_FUTURE_HPP_
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
@@ -940,4 +940,4 @@ future<void> detail::FutureThen<void, void>::Create(
|
||||
|
||||
} // namespace wpi
|
||||
|
||||
#endif // WPIUTIL_WPI_FUTURE_H_
|
||||
#endif // WPIUTIL_WPI_UTIL_FUTURE_HPP_
|
||||
|
||||
@@ -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 WPIUTIL_WPI_JNI_UTIL_H_
|
||||
#define WPIUTIL_WPI_JNI_UTIL_H_
|
||||
#ifndef WPIUTIL_WPI_UTIL_JNI_UTIL_HPP_
|
||||
#define WPIUTIL_WPI_UTIL_JNI_UTIL_HPP_
|
||||
|
||||
#include <jni.h>
|
||||
|
||||
@@ -977,4 +977,4 @@ struct JExceptionInit {
|
||||
|
||||
} // namespace wpi::java
|
||||
|
||||
#endif // WPIUTIL_WPI_JNI_UTIL_H_
|
||||
#endif // WPIUTIL_WPI_UTIL_JNI_UTIL_HPP_
|
||||
|
||||
@@ -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 WPIUTIL_WPI_NODISCARD_H_
|
||||
#define WPIUTIL_WPI_NODISCARD_H_
|
||||
#ifndef WPIUTIL_WPI_UTIL_NODISCARD_H_
|
||||
#define WPIUTIL_WPI_UTIL_NODISCARD_H_
|
||||
|
||||
// This should only be used on APIs that can be compiled as C or C++. If the API
|
||||
// is C++ only, use [[nodiscard]] instead.
|
||||
@@ -18,4 +18,4 @@
|
||||
|
||||
#endif
|
||||
|
||||
#endif // WPIUTIL_WPI_NODISCARD_H_
|
||||
#endif // WPIUTIL_WPI_UTIL_NODISCARD_H_
|
||||
|
||||
@@ -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 WPIUTIL_WPI_PRIORITY_QUEUE_H_
|
||||
#define WPIUTIL_WPI_PRIORITY_QUEUE_H_
|
||||
#ifndef WPIUTIL_WPI_UTIL_PRIORITY_QUEUE_HPP_
|
||||
#define WPIUTIL_WPI_UTIL_PRIORITY_QUEUE_HPP_
|
||||
|
||||
#include <algorithm>
|
||||
#include <concepts>
|
||||
@@ -113,4 +113,4 @@ class priority_queue {
|
||||
|
||||
} // namespace wpi
|
||||
|
||||
#endif // WPIUTIL_WPI_PRIORITY_QUEUE_H_
|
||||
#endif // WPIUTIL_WPI_UTIL_PRIORITY_QUEUE_HPP_
|
||||
|
||||
@@ -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 WPIUTIL_WPI_RAW_ISTREAM_H_
|
||||
#define WPIUTIL_WPI_RAW_ISTREAM_H_
|
||||
#ifndef WPIUTIL_WPI_UTIL_RAW_ISTREAM_HPP_
|
||||
#define WPIUTIL_WPI_UTIL_RAW_ISTREAM_HPP_
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
@@ -173,4 +173,4 @@ class raw_fd_istream : public raw_istream {
|
||||
|
||||
} // namespace wpi
|
||||
|
||||
#endif // WPIUTIL_WPI_RAW_ISTREAM_H_
|
||||
#endif // WPIUTIL_WPI_UTIL_RAW_ISTREAM_HPP_
|
||||
|
||||
@@ -17,8 +17,8 @@
|
||||
-- Eugene Hopkinson <slowriot at voxelstorm dot com>
|
||||
*/
|
||||
|
||||
#ifndef WPIUTIL_WPI_SHA1_H_
|
||||
#define WPIUTIL_WPI_SHA1_H_
|
||||
#ifndef WPIUTIL_WPI_UTIL_SHA1_HPP_
|
||||
#define WPIUTIL_WPI_UTIL_SHA1_HPP_
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
@@ -49,4 +49,4 @@ class SHA1 {
|
||||
|
||||
} // namespace wpi
|
||||
|
||||
#endif // WPIUTIL_WPI_SHA1_H_
|
||||
#endif // WPIUTIL_WPI_UTIL_SHA1_HPP_
|
||||
|
||||
@@ -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 WPIUTIL_WPI_TIMESTAMP_H_
|
||||
#define WPIUTIL_WPI_TIMESTAMP_H_
|
||||
#ifndef WPIUTIL_WPI_UTIL_TIMESTAMP_H_
|
||||
#define WPIUTIL_WPI_UTIL_TIMESTAMP_H_
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
@@ -86,4 +86,4 @@ uint64_t GetSystemTime();
|
||||
} // namespace wpi
|
||||
#endif
|
||||
|
||||
#endif // WPIUTIL_WPI_TIMESTAMP_H_
|
||||
#endif // WPIUTIL_WPI_UTIL_TIMESTAMP_H_
|
||||
|
||||
Reference in New Issue
Block a user