diff options
Diffstat (limited to 'include/clang/AST/TemplateName.h')
-rw-r--r-- | include/clang/AST/TemplateName.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/clang/AST/TemplateName.h b/include/clang/AST/TemplateName.h index 2e3b6df..ddfac71 100644 --- a/include/clang/AST/TemplateName.h +++ b/include/clang/AST/TemplateName.h @@ -101,6 +101,14 @@ class TemplateName { } public: + // \brief Kind of name that is actually stored. + enum NameKind { + Template, + OverloadedTemplate, + QualifiedTemplate, + DependentTemplate + }; + TemplateName() : Storage() { } explicit TemplateName(TemplateDecl *Template) : Storage(Template) { } explicit TemplateName(OverloadedTemplateStorage *Storage) @@ -110,6 +118,9 @@ public: /// \brief Determine whether this template name is NULL. bool isNull() const { return Storage.isNull(); } + + // \brief Get the kind of name that is actually stored. + NameKind getKind() const; /// \brief Retrieve the the underlying template declaration that /// this template name refers to, if known. |