summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/GenerateExportHeader/libshared/libshared.h
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/RunCMake/GenerateExportHeader/libshared/libshared.h')
-rw-r--r--Tests/RunCMake/GenerateExportHeader/libshared/libshared.h67
1 files changed, 33 insertions, 34 deletions
diff --git a/Tests/RunCMake/GenerateExportHeader/libshared/libshared.h b/Tests/RunCMake/GenerateExportHeader/libshared/libshared.h
index 62879c2..6574bd5 100644
--- a/Tests/RunCMake/GenerateExportHeader/libshared/libshared.h
+++ b/Tests/RunCMake/GenerateExportHeader/libshared/libshared.h
@@ -1,83 +1,82 @@
-
#ifndef LIBSHARED_H
#define LIBSHARED_H
#include "libshared_export.h"
-class LIBSHARED_EXPORT Libshared
+namespace libshared {
+
+class Class
{
public:
- int libshared() const;
+ int method() const;
- int libshared_exported() const;
+ int LIBSHARED_EXPORT method_exported() const;
- int LIBSHARED_DEPRECATED libshared_deprecated() const;
+ int LIBSHARED_DEPRECATED method_deprecated() const;
- int libshared_not_exported() const;
+ int LIBSHARED_DEPRECATED_EXPORT method_deprecated_exported() const;
- int LIBSHARED_NO_EXPORT libshared_excluded() const;
+ int LIBSHARED_NO_EXPORT method_excluded() const;
- static int const LIBSHARED_EXPORT data_exported;
+ static int const data;
- static int const data_not_exported;
+ static int const LIBSHARED_EXPORT data_exported;
static int const LIBSHARED_NO_EXPORT data_excluded;
};
-class LibsharedNotExported
+class LIBSHARED_EXPORT ExportedClass
{
public:
- int libshared() const;
-
- int LIBSHARED_EXPORT libshared_exported() const;
-
- int LIBSHARED_DEPRECATED_EXPORT libshared_deprecated() const;
-
- int libshared_not_exported() const;
+ int method() const;
- int LIBSHARED_NO_EXPORT libshared_excluded() const;
+ int LIBSHARED_DEPRECATED method_deprecated() const;
- static int const LIBSHARED_EXPORT data_exported;
+ int LIBSHARED_NO_EXPORT method_excluded() const;
- static int const data_not_exported;
+ static int const data;
static int const LIBSHARED_NO_EXPORT data_excluded;
};
-class LIBSHARED_NO_EXPORT LibsharedExcluded
+class LIBSHARED_NO_EXPORT ExcludedClass
{
public:
- int libshared() const;
+ int method() const;
- int LIBSHARED_EXPORT libshared_exported() const;
+ int LIBSHARED_EXPORT method_exported() const;
- int LIBSHARED_DEPRECATED_EXPORT libshared_deprecated() const;
+ int LIBSHARED_DEPRECATED method_deprecated() const;
- int libshared_not_exported() const;
+ int LIBSHARED_DEPRECATED_EXPORT method_deprecated_exported() const;
- int LIBSHARED_NO_EXPORT libshared_excluded() const;
+ int LIBSHARED_NO_EXPORT method_excluded() const;
- static int const LIBSHARED_EXPORT data_exported;
+ static int const data;
- static int const data_not_exported;
+ static int const LIBSHARED_EXPORT data_exported;
static int const LIBSHARED_NO_EXPORT data_excluded;
};
-LIBSHARED_EXPORT int libshared_exported();
+int function();
-LIBSHARED_DEPRECATED_EXPORT int libshared_deprecated();
+int LIBSHARED_EXPORT function_exported();
-int libshared_not_exported();
+int LIBSHARED_DEPRECATED function_deprecated();
-int LIBSHARED_NO_EXPORT libshared_excluded();
+int LIBSHARED_DEPRECATED_EXPORT function_deprecated_exported();
-extern int const LIBSHARED_EXPORT data_exported;
+int LIBSHARED_NO_EXPORT function_excluded();
-extern int const data_not_exported;
+extern int const data;
+
+extern int const LIBSHARED_EXPORT data_exported;
extern int const LIBSHARED_NO_EXPORT data_excluded;
+} // namespace libshared
+
LIBSHARED_EXPORT void use_int(int);
#endif