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 @@ -183,6 +183,21 @@ std::string formatTemplateNameKind(const clang::TemplateName::NameKind kind) {
183
183
#undef HANDLE_KIND
184
184
}
185
185
186
+ std::string
187
+ formatTemplateSpecializationKind (clang::TemplateSpecializationKind kind) {
188
+ #define HANDLE_KIND (kind_ ) \
189
+ case clang::TemplateSpecializationKind::TSK_##kind_: \
190
+ return #kind_;
191
+ switch (kind) {
192
+ HANDLE_KIND (Undeclared)
193
+ HANDLE_KIND (ImplicitInstantiation)
194
+ HANDLE_KIND (ExplicitSpecialization)
195
+ HANDLE_KIND (ExplicitInstantiationDeclaration)
196
+ HANDLE_KIND (ExplicitInstantiationDefinition)
197
+ }
198
+ #undef HANDLE_KIND
199
+ }
200
+
186
201
std::string formatTypeInternals (const clang::QualType &qualType,
187
202
const clang::ASTContext &astContext) {
188
203
if (qualType.isNull ()) {
Original file line number Diff line number Diff line change 6
6
#include " clang/AST/TemplateName.h"
7
7
#include " clang/Basic/FileEntry.h"
8
8
#include " clang/Basic/SourceManager.h"
9
+ #include " clang/Basic/Specifiers.h"
9
10
#include " clang/Lex/PPCallbacks.h"
10
11
#include " llvm/ADT/StringRef.h"
11
12
@@ -36,6 +37,8 @@ std::string formatDecl(const clang::Decl *);
36
37
37
38
std::string formatTemplateNameKind (clang::TemplateName::NameKind);
38
39
40
+ std::string formatTemplateSpecializationKind (clang::TemplateSpecializationKind);
41
+
39
42
std::string formatTypeInternals (const clang::QualType &,
40
43
const clang::ASTContext &);
41
44
You can’t perform that action at this time.
0 commit comments