File tree Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -213,6 +213,21 @@ std::string formatKind(clang::TemplateSpecializationKind kind) {
213
213
#undef HANDLE_KIND
214
214
}
215
215
216
+ std::string formatKind (clang::FunctionDecl::TemplatedKind kind) {
217
+ #define HANDLE_KIND (kind_ ) \
218
+ case clang::FunctionDecl::TemplatedKind::TK_##kind_: \
219
+ return #kind_;
220
+ switch (kind) {
221
+ HANDLE_KIND (NonTemplate)
222
+ HANDLE_KIND (FunctionTemplate)
223
+ HANDLE_KIND (MemberSpecialization)
224
+ HANDLE_KIND (FunctionTemplateSpecialization)
225
+ HANDLE_KIND (DependentFunctionTemplateSpecialization)
226
+ HANDLE_KIND (DependentNonTemplate)
227
+ }
228
+ #undef HANDLE_KIND
229
+ }
230
+
216
231
std::string formatTypeInternals (const clang::QualType &qualType,
217
232
const clang::ASTContext &astContext) {
218
233
if (qualType.isNull ()) {
Original file line number Diff line number Diff line change 3
3
4
4
#include < string>
5
5
6
+ #include " clang/AST/Decl.h"
6
7
#include " clang/AST/NestedNameSpecifier.h"
7
8
#include " clang/AST/TemplateName.h"
8
9
#include " clang/Basic/FileEntry.h"
@@ -42,6 +43,8 @@ std::string formatKind(clang::TemplateName::NameKind);
42
43
43
44
std::string formatKind (clang::TemplateSpecializationKind);
44
45
46
+ std::string formatKind (clang::FunctionDecl::TemplatedKind);
47
+
45
48
std::string formatTypeInternals (const clang::QualType &,
46
49
const clang::ASTContext &);
47
50
You can’t perform that action at this time.
0 commit comments