mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-07-02 02:51:42 +00:00
Update formatting to clang-format 16 (#5370)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user