diff options
author | Brad King <brad.king@kitware.com> | 2017-10-13 17:15:51 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2017-10-13 17:32:02 (GMT) |
commit | 367e90c1ecd92adb0071b4ec1ddf684213805afc (patch) | |
tree | 831dbd5c22934af630cdd13b89beedfbfdf199c1 /test/input | |
parent | ae62b1a29c8233c3dd40fc3e293ddcdbe0bdcccc (diff) | |
download | CastXML-367e90c1ecd92adb0071b4ec1ddf684213805afc.zip CastXML-367e90c1ecd92adb0071b4ec1ddf684213805afc.tar.gz CastXML-367e90c1ecd92adb0071b4ec1ddf684213805afc.tar.bz2 |
Output: Add deprecated attribute
Fixes: #92
Diffstat (limited to 'test/input')
-rw-r--r-- | test/input/Class-deprecated.cxx | 3 | ||||
-rw-r--r-- | test/input/Constructor-deprecated.cxx | 4 | ||||
-rw-r--r-- | test/input/Converter-deprecated.cxx | 4 | ||||
-rw-r--r-- | test/input/Destructor-deprecated.cxx | 4 | ||||
-rw-r--r-- | test/input/Enumeration-deprecated.cxx | 4 | ||||
-rw-r--r-- | test/input/Field-deprecated.cxx | 4 | ||||
-rw-r--r-- | test/input/Function-Argument-deprecated.cxx | 1 | ||||
-rw-r--r-- | test/input/Function-calling-convention-ms-deprecated.cxx | 4 | ||||
-rw-r--r-- | test/input/Function-deprecated.cxx | 1 | ||||
-rw-r--r-- | test/input/Method-deprecated.cxx | 4 | ||||
-rw-r--r-- | test/input/OperatorFunction-deprecated.cxx | 4 | ||||
-rw-r--r-- | test/input/OperatorMethod-deprecated.cxx | 4 | ||||
-rw-r--r-- | test/input/Typedef-deprecated.cxx | 1 | ||||
-rw-r--r-- | test/input/Variable-deprecated.cxx | 1 |
14 files changed, 43 insertions, 0 deletions
diff --git a/test/input/Class-deprecated.cxx b/test/input/Class-deprecated.cxx new file mode 100644 index 0000000..d914b8d --- /dev/null +++ b/test/input/Class-deprecated.cxx @@ -0,0 +1,3 @@ +class __attribute__((deprecated)) start +{ +}; diff --git a/test/input/Constructor-deprecated.cxx b/test/input/Constructor-deprecated.cxx new file mode 100644 index 0000000..70cbe0f --- /dev/null +++ b/test/input/Constructor-deprecated.cxx @@ -0,0 +1,4 @@ +class start +{ + __attribute__((deprecated)) start(); +}; diff --git a/test/input/Converter-deprecated.cxx b/test/input/Converter-deprecated.cxx new file mode 100644 index 0000000..e580e92 --- /dev/null +++ b/test/input/Converter-deprecated.cxx @@ -0,0 +1,4 @@ +class start +{ + __attribute__((deprecated)) operator int(); +}; diff --git a/test/input/Destructor-deprecated.cxx b/test/input/Destructor-deprecated.cxx new file mode 100644 index 0000000..620268a --- /dev/null +++ b/test/input/Destructor-deprecated.cxx @@ -0,0 +1,4 @@ +class start +{ + __attribute__((deprecated)) ~start(); +}; diff --git a/test/input/Enumeration-deprecated.cxx b/test/input/Enumeration-deprecated.cxx new file mode 100644 index 0000000..6a3d9c4 --- /dev/null +++ b/test/input/Enumeration-deprecated.cxx @@ -0,0 +1,4 @@ +enum __attribute__((deprecated)) start +{ + ev0 __attribute__((deprecated)) +}; diff --git a/test/input/Field-deprecated.cxx b/test/input/Field-deprecated.cxx new file mode 100644 index 0000000..7c12e8f --- /dev/null +++ b/test/input/Field-deprecated.cxx @@ -0,0 +1,4 @@ +class start +{ + __attribute__((deprecated)) int field; +}; diff --git a/test/input/Function-Argument-deprecated.cxx b/test/input/Function-Argument-deprecated.cxx new file mode 100644 index 0000000..994cc9a --- /dev/null +++ b/test/input/Function-Argument-deprecated.cxx @@ -0,0 +1 @@ +void start(__attribute__((deprecated)) int); diff --git a/test/input/Function-calling-convention-ms-deprecated.cxx b/test/input/Function-calling-convention-ms-deprecated.cxx new file mode 100644 index 0000000..3877478 --- /dev/null +++ b/test/input/Function-calling-convention-ms-deprecated.cxx @@ -0,0 +1,4 @@ +__attribute__((deprecated)) void __cdecl start(void(__cdecl*)()); +__attribute__((deprecated)) void __stdcall start(void(__stdcall*)()); +__attribute__((deprecated)) void __fastcall start(void(__fastcall*)()); +__attribute__((deprecated)) void __thiscall start(void(__thiscall*)()); diff --git a/test/input/Function-deprecated.cxx b/test/input/Function-deprecated.cxx new file mode 100644 index 0000000..c36a86e --- /dev/null +++ b/test/input/Function-deprecated.cxx @@ -0,0 +1 @@ +__attribute__((deprecated)) void start(int); diff --git a/test/input/Method-deprecated.cxx b/test/input/Method-deprecated.cxx new file mode 100644 index 0000000..356a45f --- /dev/null +++ b/test/input/Method-deprecated.cxx @@ -0,0 +1,4 @@ +class start +{ + __attribute__((deprecated)) int method(int); +}; diff --git a/test/input/OperatorFunction-deprecated.cxx b/test/input/OperatorFunction-deprecated.cxx new file mode 100644 index 0000000..3f203db --- /dev/null +++ b/test/input/OperatorFunction-deprecated.cxx @@ -0,0 +1,4 @@ +class A; +namespace start { +__attribute__((deprecated)) A& operator<<(A&, int); +} diff --git a/test/input/OperatorMethod-deprecated.cxx b/test/input/OperatorMethod-deprecated.cxx new file mode 100644 index 0000000..8ec5b68 --- /dev/null +++ b/test/input/OperatorMethod-deprecated.cxx @@ -0,0 +1,4 @@ +class start +{ + __attribute__((deprecated)) start& operator<<(int); +}; diff --git a/test/input/Typedef-deprecated.cxx b/test/input/Typedef-deprecated.cxx new file mode 100644 index 0000000..d20a211 --- /dev/null +++ b/test/input/Typedef-deprecated.cxx @@ -0,0 +1 @@ +typedef int(start) __attribute__((deprecated)); diff --git a/test/input/Variable-deprecated.cxx b/test/input/Variable-deprecated.cxx new file mode 100644 index 0000000..a837e37 --- /dev/null +++ b/test/input/Variable-deprecated.cxx @@ -0,0 +1 @@ +__attribute__((deprecated)) int start; |