diff --git a/src/core/doc/deprecated-example.h b/src/core/doc/deprecated-example.h index bc14f4b00..61e288081 100644 --- a/src/core/doc/deprecated-example.h +++ b/src/core/doc/deprecated-example.h @@ -30,7 +30,8 @@ * \deprecated This method will go away in future versions of ns-3. * See instead TheNewWay() */ -NS_DEPRECATED(void SomethingUseful (void) ); +NS_DEPRECATED +void SomethingUseful (void); /* * Do something more useful. */ diff --git a/src/core/model/deprecated.h b/src/core/model/deprecated.h index cd9c0ebdb..9a54807a9 100644 --- a/src/core/model/deprecated.h +++ b/src/core/model/deprecated.h @@ -45,17 +45,19 @@ /* Test for GCC >= 4.1 */ #define GCC_VERSION (__GNUC__ * 10000 + __GNUC_MINOR__ * 100) #if (GCC_VERSION >= 40100) -#define NS_DEPRECATED(x) x __attribute__ ((deprecated)) +#define NS_DEPRECATED __attribute__ ((deprecated)) #endif #undef GCC_VERSION #elif defined(__clang__) || defined(__llvm__) -#define NS_DEPRECATED(x) x __attribute__ ((deprecated)) +#define NS_DEPRECATED __attribute__ ((deprecated)) + #elif defined(_MSC_VER) -#define NS_DEPRECATED __declspec(deprecated) x +#define NS_DEPRECATED __declspec(deprecated) + #else -#define NS_DEPRECATED(x) x +#define NS_DEPRECATED #endif #endif /* NS3_DEPRECATED_H */ diff --git a/src/core/model/type-id.h b/src/core/model/type-id.h index 1ef16d622..b107ac30b 100644 --- a/src/core/model/type-id.h +++ b/src/core/model/type-id.h @@ -399,10 +399,10 @@ public: * \returns this TypeId instance. * \deprecated */ - NS_DEPRECATED ( + NS_DEPRECATED TypeId AddTraceSource (std::string name, std::string help, - Ptr accessor) ); + Ptr accessor); /** * Record a new TraceSource. diff --git a/src/network/utils/data-rate.h b/src/network/utils/data-rate.h index 8e7290cc8..5cca1c691 100644 --- a/src/network/utils/data-rate.h +++ b/src/network/utils/data-rate.h @@ -188,7 +188,8 @@ public: * \deprecated This method will go away in future versions of ns-3. * See instead CalculateBytesTxTime() */ - NS_DEPRECATED (double CalculateTxTime (uint32_t bytes) const ); + NS_DEPRECATED + double CalculateTxTime (uint32_t bytes) const; /** * Get the underlying bitrate diff --git a/src/network/utils/ipv6-address.h b/src/network/utils/ipv6-address.h index ff675ca2f..e1e0d2b9d 100644 --- a/src/network/utils/ipv6-address.h +++ b/src/network/utils/ipv6-address.h @@ -229,7 +229,8 @@ public: * * \return true if "all hosts multicast", false otherwise */ - NS_DEPRECATED (bool IsAllHostsMulticast () const ); + NS_DEPRECATED + bool IsAllHostsMulticast () const; /** * \brief If the IPv6 address is a link-local address (fe80::/64). diff --git a/src/uan/model/uan-phy-dual.h b/src/uan/model/uan-phy-dual.h index 79af39996..03db45987 100644 --- a/src/uan/model/uan-phy-dual.h +++ b/src/uan/model/uan-phy-dual.h @@ -114,7 +114,7 @@ public: virtual void SetReceiveErrorCallback (RxErrCallback cb); virtual void SetRxGainDb (double gain); virtual void SetTxPowerDb (double txpwr); - NS_DEPRECATED (virtual void SetRxThresholdDb (double thresh) ); + NS_DEPRECATED virtual void SetRxThresholdDb (double thresh); virtual void SetCcaThresholdDb (double thresh); virtual double GetRxGainDb (void); virtual double GetTxPowerDb (void); diff --git a/src/wifi/helper/wifi-helper.h b/src/wifi/helper/wifi-helper.h index 5db5ab030..8a55fcb03 100644 --- a/src/wifi/helper/wifi-helper.h +++ b/src/wifi/helper/wifi-helper.h @@ -253,7 +253,8 @@ public: * \deprecated This method will go away in future versions of ns-3. * The constructor of the class is now performing the same job, which makes this function useless. */ - NS_DEPRECATED (static WifiHelper Default (void) ); + NS_DEPRECATED + static WifiHelper Default (void); /** * \param type the type of ns3::WifiRemoteStationManager to create.