Files
CMake/Tests/RunCMake/GenerateExportHeader/libattributes/libattributes.cpp
T
Sergiu Deitsch 07dbb31e69 GenerateExportHeader: Support deprecation messages
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
2026-10-31 13:54:22 +01:00

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;
}