Replace WPI_DEPRECATED() macro with [[deprecated]] attribute (#5373)

Continue to use WPI_DEPRECATED macro for constructors until clang-format is fixed.
This commit is contained in:
Tyler Veness
2023-06-08 00:01:06 -07:00
committed by GitHub
parent 753cb49a5e
commit 59905ea721
17 changed files with 69 additions and 70 deletions

View File

@@ -4,6 +4,8 @@
#include "frc2/command/button/Button.h"
#include <wpi/deprecated.h>
using namespace frc2;
Button::Button(std::function<bool()> isPressed) : Trigger(isPressed) {}