Files
CMake/Tests/RunCMake/GenerateExportHeader/libshared/libshared.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

133 lines
1.9 KiB
C++

#include "libshared.h"
int libshared::Class::method() const
{
return 0;
}
int libshared::Class::method_exported() const
{
return 0;
}
int libshared::Class::method_deprecated() const
{
return 0;
}
int libshared::Class::method_deprecated_exported() const
{
return 0;
}
int libshared::Class::method_excluded() const
{
return 0;
}
int const libshared::Class::data = 1;
int const libshared::Class::data_exported = 1;
int const libshared::Class::data_excluded = 1;
int libshared::ExportedClass::method() const
{
return 0;
}
int libshared::ExportedClass::method_deprecated() const
{
return 0;
}
int libshared::ExportedClass::method_excluded() const
{
return 0;
}
int const libshared::ExportedClass::data = 1;
int const libshared::ExportedClass::data_excluded = 1;
int libshared::ExcludedClass::method() const
{
return 0;
}
int libshared::ExcludedClass::method_exported() const
{
return 0;
}
int libshared::ExcludedClass::method_deprecated() const
{
return 0;
}
int libshared::ExcludedClass::method_deprecated_exported() const
{
return 0;
}
int libshared::ExcludedClass::method_excluded() const
{
return 0;
}
int const libshared::ExcludedClass::data = 1;
int const libshared::ExcludedClass::data_exported = 1;
int const libshared::ExcludedClass::data_excluded = 1;
int libshared::function()
{
return 0;
}
int libshared::function_exported()
{
return 0;
}
int libshared::function_deprecated()
{
return 0;
}
int libshared::function_deprecated_exported()
{
return 0;
}
int libshared::function_deprecated_msg()
{
return 0;
}
int libshared::function_deprecated_exported_msg()
{
return 0;
}
int libshared::function_deprecated_excluded_msg()
{
return 0;
}
int libshared::function_excluded()
{
return 0;
}
int const libshared::data = 1;
int const libshared::data_exported = 1;
int const libshared::data_excluded = 1;
void use_int(int)
{
}