mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-26 01:51:41 +00:00
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:
@@ -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;
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user