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

@@ -7,7 +7,6 @@
#include <memory>
#include <hal/Types.h>
#include <wpi/deprecated.h>
#include <wpi/sendable/Sendable.h>
#include <wpi/sendable/SendableHelper.h>
@@ -66,9 +65,9 @@ class Compressor : public wpi::Sendable,
* @deprecated To avoid confusion in thinking this (re)enables the compressor
* use IsEnabled().
*/
WPI_DEPRECATED(
[[deprecated(
"To avoid confusion in thinking this (re)enables the compressor use "
"IsEnabled()")
"IsEnabled()")]]
bool Enabled() const;
/**