mirror of
https://github.com/Kitware/CMake.git
synced 2026-11-06 05:16:58 +00:00
Add message variants of the deprecation macros. With CXX_ATTRIBUTES, prefer the standard [[deprecated]] as of C++14 and place it before the export marker, since a C++11 attribute cannot follow __declspec. Fixes: #20527
92 lines
1.3 KiB
C++
92 lines
1.3 KiB
C++
#include "libattributes.h"
|
|
|
|
int libattributes::Class::method() const
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
int libattributes::Class::method_exported() const
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
int libattributes::Class::method_deprecated_exported() const
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
int libattributes::Class::method_excluded() const
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
int const libattributes::Class::data = 1;
|
|
|
|
int const libattributes::Class::data_exported = 1;
|
|
|
|
int const libattributes::Class::data_excluded = 1;
|
|
|
|
int libattributes::ExportedClass::method() const
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
int libattributes::ExportedClass::method_excluded() const
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
// OrangeC cannot declare the deprecated class.
|
|
#ifndef __ORANGEC__
|
|
int libattributes::DeprecatedClass::method() const
|
|
{
|
|
return 0;
|
|
}
|
|
#endif
|
|
|
|
int libattributes::function()
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
int libattributes::function_exported()
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
int libattributes::function_deprecated_exported()
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
int libattributes::function_excluded()
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
int libattributes::function_deprecated_msg()
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
int libattributes::function_deprecated_exported_msg()
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
int libattributes::function_deprecated_excluded_msg()
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
int const libattributes::data = 1;
|
|
|
|
int const libattributes::data_exported = 1;
|
|
|
|
int const libattributes::data_excluded = 1;
|
|
|
|
int libattributes_function_c(void)
|
|
{
|
|
return 0;
|
|
}
|