diff --git a/lldb/include/lldb/API/SBDefines.h b/lldb/include/lldb/API/SBDefines.h --- a/lldb/include/lldb/API/SBDefines.h +++ b/lldb/include/lldb/API/SBDefines.h @@ -34,7 +34,9 @@ // supports the attribute. #if defined(SWIG) || _cplusplus < 201402L #undef LLDB_DEPRECATED +#undef LLDB_UNSUPPORTED #define LLDB_DEPRECATED(MSG, FIX) +#define LLDB_UNSUPPORTED(MSG) #endif // Forward Declarations diff --git a/lldb/include/lldb/API/SBValue.h b/lldb/include/lldb/API/SBValue.h --- a/lldb/include/lldb/API/SBValue.h +++ b/lldb/include/lldb/API/SBValue.h @@ -124,7 +124,7 @@ lldb::SBValue CreateChildAtOffset(const char *name, uint32_t offset, lldb::SBType type); - LLDB_DEPRECATED("Use the expression evaluator to perform type casting", "") + LLDB_UNSUPPORTED("Use the expression evaluator to perform type casting") lldb::SBValue Cast(lldb::SBType type); lldb::SBValue CreateValueFromExpression(const char *name, @@ -295,7 +295,7 @@ lldb::SBValue Dereference(); - LLDB_DEPRECATED("Use GetType().IsPointerType() instead", "") + LLDB_UNSUPPORTED("Use GetType().IsPointerType() instead") bool TypeIsPointerType(); lldb::SBType GetType(); diff --git a/lldb/include/lldb/lldb-defines.h b/lldb/include/lldb/lldb-defines.h --- a/lldb/include/lldb/lldb-defines.h +++ b/lldb/include/lldb/lldb-defines.h @@ -131,4 +131,12 @@ #define LLDB_DEPRECATED(MSG, FIX) [[deprecated(MSG)]] #endif +#if defined(__clang__) +#define LLDB_UNSUPPORTED(MSG) \ + __attribute__((deprecated("This method is no longer supported: " MSG, ""))) +#else +#define LLDB_UNSUPPORTED(MSG) \ + [[deprecated("This method is no longer supported: " MSG)]] +#endif + #endif // LLDB_LLDB_DEFINES_H