12
12
#define MRDOX_API_METADATA_SPECIFIERS_HPP
13
13
14
14
#include < mrdox/Platform.hpp>
15
+ #include < mrdox/Support/Dom.hpp>
15
16
#include < string_view>
16
17
17
18
namespace clang {
@@ -36,25 +37,6 @@ enum class AccessKind
36
37
None
37
38
};
38
39
39
- /* * Storage class kinds
40
-
41
- [dcl.stc] p1: At most one storage-class-specifier shall appear
42
- in a given decl-specifier-seq, except that `thread_local`
43
- may appear with `static` or `extern`.
44
- */
45
- enum class StorageClassKind
46
- {
47
- None = 0 ,
48
- Extern,
49
- Static,
50
- // auto storage-class-specifier (removed in C++11)
51
- // only valid for variables
52
- Auto,
53
- // register storage-class-specifier (removed in C++17)
54
- // only valid for variables
55
- Register
56
- };
57
-
58
40
/* * `constexpr`/`consteval` specifier kinds
59
41
60
42
[dcl.spec.general] p2: At most one of the `constexpr`, `consteval`,
@@ -175,29 +157,31 @@ enum class ReferenceKind
175
157
RValue
176
158
};
177
159
178
- MRDOX_DECL
179
- std::string_view
180
- toString (AccessKind kind);
181
-
182
- MRDOX_DECL
183
- std::string_view
184
- toString (StorageClassKind kind);
185
-
186
- MRDOX_DECL
187
- std::string_view
188
- toString (ConstexprKind kind);
189
-
190
- MRDOX_DECL
191
- std::string_view
192
- toString (ExplicitKind kind);
160
+ /* * Storage class kinds
193
161
194
- MRDOX_DECL
195
- std::string_view
196
- toString (NoexceptKind kind);
162
+ [dcl.stc] p1: At most one storage-class-specifier shall appear
163
+ in a given decl-specifier-seq, except that `thread_local`
164
+ may appear with `static` or `extern`.
165
+ */
166
+ enum class StorageClassKind
167
+ {
168
+ None = 0 ,
169
+ Extern,
170
+ Static,
171
+ // auto storage-class-specifier (removed in C++11)
172
+ // only valid for variables
173
+ Auto,
174
+ // register storage-class-specifier (removed in C++17)
175
+ // only valid for variables
176
+ Register
177
+ };
197
178
198
- MRDOX_DECL
199
- std::string_view
200
- toString (ReferenceKind kind);
179
+ MRDOX_DECL dom::String toString (AccessKind kind) noexcept ;
180
+ MRDOX_DECL dom::String toString (ConstexprKind kind) noexcept ;
181
+ MRDOX_DECL dom::String toString (ExplicitKind kind) noexcept ;
182
+ MRDOX_DECL dom::String toString (NoexceptKind kind) noexcept ;
183
+ MRDOX_DECL dom::String toString (ReferenceKind kind) noexcept ;
184
+ MRDOX_DECL dom::String toString (StorageClassKind kind) noexcept ;
201
185
202
186
} // mrdox
203
187
} // clang
0 commit comments