mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-24 01:31:46 +00:00
* Add .clang-tidy configuration. * A separate .clang-tidy is used for hal includes to suppress modernize-use-using (as these are C headers). * Add NOLINT where necessary for a clean run. * Add clang-tidy job to lint-format workflow. This workflow is now only run on PRs. To reduce runtime, clang-tidy is only run on files changed in the PR. Two wpilibc changes; both are unlikely to break user code: * BuiltInAccelerometer: Make SetRange() final * Counter: Make SetMaxPeriod() final After these cleanups, the only file that does not run cleanly is cscore_raw_cv.h due to it not being standalone.
23 lines
506 B
C++
23 lines
506 B
C++
// Copyright (c) FIRST and other WPILib contributors.
|
|
// 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_SOCKETERROR_H_
|
|
#define WPIUTIL_WPI_SOCKETERROR_H_
|
|
|
|
#include <string>
|
|
|
|
namespace wpi {
|
|
|
|
int SocketErrno();
|
|
|
|
std::string SocketStrerror(int code);
|
|
|
|
inline std::string SocketStrerror() {
|
|
return SocketStrerror(SocketErrno());
|
|
}
|
|
|
|
} // namespace wpi
|
|
|
|
#endif // WPIUTIL_WPI_SOCKETERROR_H_
|