From: Mike Spertus Date: Sun, 12 Jun 2016 22:21:56 +0000 (+0000) Subject: Visual Studio native visualizer for ParsedTemplateArgument X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=25969c597051f9b6c05829b1b317ba2ffbcfa553;p=clang Visual Studio native visualizer for ParsedTemplateArgument Does a good job with type and non-type template arguments and lays the groundwork for template template arguments to visualize well once there is a TemplateName visualizer. Also fixed what looks like an incorrect comment in the header for ParsedTemplate.h. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@272521 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/Sema/ParsedTemplate.h b/include/clang/Sema/ParsedTemplate.h index 93bc7a2f0a..03de9ff6ae 100644 --- a/include/clang/Sema/ParsedTemplate.h +++ b/include/clang/Sema/ParsedTemplate.h @@ -121,8 +121,8 @@ namespace clang { KindType Kind; /// \brief The actual template argument representation, which may be - /// an \c ActionBase::TypeTy* (for a type), an Expr* (for an - /// expression), or an ActionBase::TemplateTy (for a template). + /// an \c Sema::TypeTy* (for a type), an Expr* (for an + /// expression), or an Sema::TemplateTy (for a template). void *Arg; /// \brief The nested-name-specifier that can accompany a template template diff --git a/utils/ClangVisualizers/clang.natvis b/utils/ClangVisualizers/clang.natvis index ff0dbe1ddb..e294874915 100644 --- a/utils/ClangVisualizers/clang.natvis +++ b/utils/ClangVisualizers/clang.natvis @@ -309,6 +309,17 @@ For later versions of Visual Studio, no setup is required--> TemplateArgumentLists + + Type template argument: {*(clang::QualType *)Arg} + Non-type template argument: {*(clang::Expr *)Arg} + Template template argument: {*(clang::TemplateName *)Arg + + Kind,en + (clang::QualType *)Arg + (clang::Expr *)Arg + (clang::TemplateName *)Arg + + void