Update formatting to clang-format 16 (#5370)

This commit is contained in:
Tyler Veness
2023-05-31 22:10:53 -07:00
committed by GitHub
parent a94a998002
commit 5fac18ff4a
48 changed files with 654 additions and 434 deletions

View File

@@ -117,7 +117,8 @@ class Subsystem {
*
* @param action the action to run
*/
[[nodiscard]] CommandPtr RunOnce(std::function<void()> action);
[[nodiscard]]
CommandPtr RunOnce(std::function<void()> action);
/**
* Constructs a command that runs an action every iteration until interrupted.
@@ -125,7 +126,8 @@ class Subsystem {
*
* @param action the action to run
*/
[[nodiscard]] CommandPtr Run(std::function<void()> action);
[[nodiscard]]
CommandPtr Run(std::function<void()> action);
/**
* Constructs a command that runs an action once and another action when the
@@ -134,8 +136,8 @@ class Subsystem {
* @param start the action to run on start
* @param end the action to run on interrupt
*/
[[nodiscard]] CommandPtr StartEnd(std::function<void()> start,
std::function<void()> end);
[[nodiscard]]
CommandPtr StartEnd(std::function<void()> start, std::function<void()> end);
/**
* Constructs a command that runs an action every iteration until interrupted,
@@ -144,7 +146,7 @@ class Subsystem {
* @param run the action to run every iteration
* @param end the action to run on interrupt
*/
[[nodiscard]] CommandPtr RunEnd(std::function<void()> run,
std::function<void()> end);
[[nodiscard]]
CommandPtr RunEnd(std::function<void()> run, std::function<void()> end);
};
} // namespace frc2