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

@@ -13,8 +13,6 @@
#include <string_view>
#include <vector>
#include <wpi/deprecated.h>
#include "networktables/NetworkTableType.h"
#include "networktables/NetworkTableValue.h"
#include "ntcore_c.h"
@@ -101,7 +99,7 @@ class NetworkTableEntry final {
* @return the flags (bitmask)
* @deprecated Use IsPersistent() or topic properties instead
*/
WPI_DEPRECATED("Use IsPersistent() or topic properties instead")
[[deprecated("Use IsPersistent() or topic properties instead")]]
unsigned int GetFlags() const;
/**
@@ -468,7 +466,7 @@ class NetworkTableEntry final {
* @param flags the flags to set (bitmask)
* @deprecated Use SetPersistent() or topic properties instead
*/
WPI_DEPRECATED("Use SetPersistent() or topic properties instead")
[[deprecated("Use SetPersistent() or topic properties instead")]]
void SetFlags(unsigned int flags);
/**
@@ -477,7 +475,7 @@ class NetworkTableEntry final {
* @param flags the flags to clear (bitmask)
* @deprecated Use SetPersistent() or topic properties instead
*/
WPI_DEPRECATED("Use SetPersistent() or topic properties instead")
[[deprecated("Use SetPersistent() or topic properties instead")]]
void ClearFlags(unsigned int flags);
/**
@@ -506,7 +504,7 @@ class NetworkTableEntry final {
* Deletes the entry.
* @deprecated Use Unpublish() instead.
*/
WPI_DEPRECATED("Use Unpublish() instead")
[[deprecated("Use Unpublish() instead")]]
void Delete();
/**