Aaron Ballman | 83f197b | 2014-01-24 19:46:45 +0000 | [diff] [blame] | 1 | <?xml version="1.0" encoding="utf-8"?>
|
| 2 | <!--
|
Mike Spertus | 288daa5 | 2016-03-08 16:14:23 +0000 | [diff] [blame] | 3 | Visual Studio Native Debugging Visualizers for LLVM
|
Aaron Ballman | 83f197b | 2014-01-24 19:46:45 +0000 | [diff] [blame] | 4 |
|
Mike Spertus | 6601a44 | 2016-03-28 18:03:37 +0000 | [diff] [blame] | 5 | For Visual Studio 2013 only, put this file into
|
| 6 | "%USERPROFILE%\Documents\Visual Studio 2013\Visualizers" or create a symbolic link so it updates automatically.
|
| 7 |
|
| 8 | For later versions of Visual Studio, no setup is required-->
|
Aaron Ballman | 83f197b | 2014-01-24 19:46:45 +0000 | [diff] [blame] | 9 | <AutoVisualizer xmlns="http://schemas.microsoft.com/vstudio/debugger/natvis/2010">
|
Mike Spertus | 01b14bf | 2016-03-16 14:27:50 +0000 | [diff] [blame] | 10 |
|
Aaron Ballman | 9d21454 | 2015-09-29 17:32:36 +0000 | [diff] [blame] | 11 | <Type Name="clang::Type">
|
Mike Spertus | 01b14bf | 2016-03-16 14:27:50 +0000 | [diff] [blame] | 12 | <!-- To visualize clang::Types, we need to look at TypeBits.TC to determine the actual
|
| 13 | type subclass and manually dispatch accordingly (Visual Studio can't identify the real type
|
| 14 | because clang::Type has no virtual members hence no RTTI).
|
| 15 |
|
| 16 | Views:
|
| 17 | "cmn": Visualization that is common to all clang::Type subclasses
|
| 18 | "poly": Visualization that is specific to the actual clang::Type subclass. The subtype-specific
|
| 19 | <DisplayString> is typically as C++-like as possible (like in dump()) with <Expand>
|
| 20 | containing all the gory details.
|
| 21 | "cpp": Only occasionally used when we need to distinguish between an ordinary view and a C++-like view.
|
| 22 | -->
|
Mike Spertus | 897711f | 2016-06-11 20:15:19 +0000 | [diff] [blame] | 23 | <DisplayString IncludeView="cmn" Condition="TypeBits.TC==clang::LocInfoType::LocInfo">LocInfoType</DisplayString>
|
Mike Spertus | 01b14bf | 2016-03-16 14:27:50 +0000 | [diff] [blame] | 24 | <DisplayString IncludeView="cmn">{(clang::Type::TypeClass)TypeBits.TC, en}Type</DisplayString>
|
| 25 | <!-- Dispatch to visualizers for the actual Type subclass -->
|
| 26 | <DisplayString Condition="TypeBits.TC==clang::Type::TypeClass::Builtin" IncludeView="poly">{*(clang::BuiltinType *)this}</DisplayString>
|
| 27 | <DisplayString Condition="TypeBits.TC==clang::Type::TypeClass::Pointer" IncludeView="poly">{*(clang::PointerType *)this}</DisplayString>
|
| 28 | <DisplayString Condition="TypeBits.TC==clang::Type::TypeClass::LValueReference" IncludeView="poly">{*(clang::LValueReferenceType *)this}</DisplayString>
|
| 29 | <DisplayString Condition="TypeBits.TC==clang::Type::TypeClass::RValueReference" IncludeView="poly">{*(clang::RValueReferenceType *)this}</DisplayString>
|
| 30 | <DisplayString Condition="TypeBits.TC==clang::Type::TypeClass::Attributed" IncludeView="poly">{*(clang::AttributedType *)this}</DisplayString>
|
| 31 | <DisplayString Condition="TypeBits.TC==clang::Type::TypeClass::TemplateTypeParm" IncludeView="poly">{*(clang::TemplateTypeParmType *)this}</DisplayString>
|
| 32 | <DisplayString Condition="TypeBits.TC==clang::Type::TypeClass::SubstTemplateTypeParm" IncludeView="poly">{*(clang::SubstTemplateTypeParmType *)this}</DisplayString>
|
| 33 | <DisplayString Condition="TypeBits.TC==clang::Type::TypeClass::Record" IncludeView="poly">{*(clang::RecordType *)this}</DisplayString>
|
Mike Spertus | 32e9a32 | 2016-03-22 02:29:22 +0000 | [diff] [blame] | 34 | <DisplayString Condition="TypeBits.TC==clang::Type::TypeClass::Record" IncludeView="cpp">{*(clang::RecordType *)this,view(cpp)}</DisplayString>
|
Mike Spertus | 7f2de8e | 2016-03-20 00:20:43 +0000 | [diff] [blame] | 35 | <DisplayString Condition="TypeBits.TC==clang::Type::TypeClass::FunctionProto" IncludeView="poly">{*(clang::FunctionProtoType *)this}</DisplayString>
|
Mike Spertus | a9ab71c | 2016-03-29 09:24:45 +0000 | [diff] [blame] | 36 | <DisplayString Condition="TypeBits.TC==clang::Type::TypeClass::TemplateSpecialization" IncludeView="poly">{*(clang::TemplateSpecializationType *)this}</DisplayString>
|
Mike Spertus | 4f95b9c | 2019-01-05 17:01:34 +0000 | [diff] [blame] | 37 | <DisplayString Condition="TypeBits.TC==clang::Type::TypeClass::DeducedTemplateSpecialization" IncludeView="poly">{*(clang::DeducedTemplateSpecializationType *)this}</DisplayString>
|
Mike Spertus | a9ab71c | 2016-03-29 09:24:45 +0000 | [diff] [blame] | 38 | <DisplayString Condition="TypeBits.TC==clang::Type::TypeClass::InjectedClassName" IncludeView="poly">{*(clang::InjectedClassNameType *)this}</DisplayString>
|
Mike Spertus | ce334cf | 2016-06-12 22:54:46 +0000 | [diff] [blame] | 39 | <DisplayString Condition="TypeBits.TC==clang::Type::TypeClass::PackExpansion" IncludeView="poly">{*(clang::PackExpansionType *)this}</DisplayString>
|
Mike Spertus | 897711f | 2016-06-11 20:15:19 +0000 | [diff] [blame] | 40 | <DisplayString Condition="TypeBits.TC==clang::LocInfoType::LocInfo" IncludeView="poly">{*(clang::LocInfoType *)this}</DisplayString>
|
Mike Spertus | 01b14bf | 2016-03-16 14:27:50 +0000 | [diff] [blame] | 41 | <DisplayString IncludeView="cpp">{*this,view(poly)}</DisplayString>
|
Mike Spertus | 1950c8d | 2018-12-31 23:01:34 +0000 | [diff] [blame] | 42 | <DisplayString IncludeView="poly">No visualizer yet for {(clang::Type::TypeClass)TypeBits.TC,en}Type</DisplayString> <!-- Not yet implemented Type subclass -->
|
Mike Spertus | 4fc8c44 | 2019-01-06 04:58:48 +0000 | [diff] [blame^] | 43 | <DisplayString IncludeView="Dependent" Condition="TypeBits.Dependent">Dependent{" ",sb}</DisplayString>
|
Mike Spertus | 4f95b9c | 2019-01-05 17:01:34 +0000 | [diff] [blame] | 44 | <DisplayString IncludeView="Dependent"></DisplayString>
|
Mike Spertus | 4fc8c44 | 2019-01-06 04:58:48 +0000 | [diff] [blame^] | 45 | <DisplayString IncludeView="InstantiationDependent" Condition="TypeBits.InstantiationDependent">InstantiationDependent{" ",sb}</DisplayString>
|
Mike Spertus | 4f95b9c | 2019-01-05 17:01:34 +0000 | [diff] [blame] | 46 | <DisplayString IncludeView="InstantiationDependent"></DisplayString>
|
Mike Spertus | 4fc8c44 | 2019-01-06 04:58:48 +0000 | [diff] [blame^] | 47 | <DisplayString IncludeView="VariablyModified" Condition="TypeBits.VariablyModified">VariablyModified{" ",sb}</DisplayString>
|
Mike Spertus | 4f95b9c | 2019-01-05 17:01:34 +0000 | [diff] [blame] | 48 | <DisplayString IncludeView="VariablyModified"></DisplayString>
|
Mike Spertus | 4fc8c44 | 2019-01-06 04:58:48 +0000 | [diff] [blame^] | 49 | <DisplayString IncludeView="ContainsUnexpandedParameterPack" Condition="TypeBits.ContainsUnexpandedParameterPack">ContainsUnexpandedParameterPack{" ",sb}</DisplayString>
|
Mike Spertus | 4f95b9c | 2019-01-05 17:01:34 +0000 | [diff] [blame] | 50 | <DisplayString IncludeView="ContainsUnexpandedParameterPack"></DisplayString>
|
| 51 | <DisplayString IncludeView="Cache" Condition="TypeBits.CacheValid && TypeBits.CachedLocalOrUnnamed">CachedLinkage: {(clang::Linkage)TypeBits.CachedLinkage,en} CachedLocalOrUnnamed</DisplayString>
|
Mike Spertus | 4fc8c44 | 2019-01-06 04:58:48 +0000 | [diff] [blame^] | 52 | <DisplayString IncludeView="Cache" Condition="TypeBits.CacheValid && !TypeBits.CachedLocalOrUnnamed">CachedLinkage: {(clang::Linkage)TypeBits.CachedLinkage,en}{" ",sb}</DisplayString>
|
Mike Spertus | 4f95b9c | 2019-01-05 17:01:34 +0000 | [diff] [blame] | 53 | <DisplayString IncludeView="Cache"></DisplayString>
|
| 54 | <DisplayString IncludeView="FromAST" Condition="TypeBits.FromAST">FromAST</DisplayString>
|
| 55 | <DisplayString IncludeView="FromAST"></DisplayString>
|
| 56 | <DisplayString IncludeView="flags" Condition="!TypeBits.Dependent && !TypeBits.InstantiationDependent && !TypeBits.VariablyModified && !TypeBits.ContainsUnexpandedParameterPack && !TypeBits.CacheValid && !TypeBits.FromAST">
|
| 57 | No TypeBits set beyond TypeClass
|
| 58 | </DisplayString>
|
| 59 | <DisplayString IncludeView="flags">
|
Mike Spertus | b25ced7 | 2019-01-05 23:15:30 +0000 | [diff] [blame] | 60 | {*this, view(Dependent)}{*this, view(InstantiationDependent)}{*this, view(VariablyModified)}
|
| 61 | {*this, view(ContainsUnexpandedParameterPack)}{*this, view(Cache)}{*this, view(FromAST)}</DisplayString>
|
Mike Spertus | 01b14bf | 2016-03-16 14:27:50 +0000 | [diff] [blame] | 62 | <DisplayString>{*this,view(cmn)} {{{*this,view(poly)}}}</DisplayString>
|
Mike Spertus | 288daa5 | 2016-03-08 16:14:23 +0000 | [diff] [blame] | 63 | <Expand>
|
Mike Spertus | 01b14bf | 2016-03-16 14:27:50 +0000 | [diff] [blame] | 64 | <Item Name="TypeClass" IncludeView="cmn">(clang::Type::TypeClass)TypeBits.TC</Item>
|
Mike Spertus | 4f95b9c | 2019-01-05 17:01:34 +0000 | [diff] [blame] | 65 | <Item Name="Flags" IncludeView="cmn">*this,view(flags)</Item>
|
Mike Spertus | 01b14bf | 2016-03-16 14:27:50 +0000 | [diff] [blame] | 66 | <Item Name="Canonical" IncludeView="cmn">CanonicalType</Item>
|
| 67 | <ExpandedItem ExcludeView="cmn" Condition="TypeBits.TC==clang::Type::TypeClass::Builtin">*(clang::BuiltinType *)this</ExpandedItem>
|
| 68 | <ExpandedItem ExcludeView="cmn" Condition="TypeBits.TC==clang::Type::TypeClass::Pointer">*(clang::PointerType *)this</ExpandedItem>
|
| 69 | <ExpandedItem ExcludeView="cmn" Condition="TypeBits.TC==clang::Type::TypeClass::LValueReference">*(clang::LValueReferenceType *)this</ExpandedItem>
|
| 70 | <ExpandedItem ExcludeView="cmn" Condition="TypeBits.TC==clang::Type::TypeClass::RValueReference">*(clang::RValueReferenceType *)this</ExpandedItem>
|
| 71 | <ExpandedItem ExcludeView="cmn" Condition="TypeBits.TC==clang::Type::TypeClass::Attributed">*(clang::AttributedType *)this</ExpandedItem>
|
| 72 | <ExpandedItem ExcludeView="cmn" Condition="TypeBits.TC==clang::Type::TypeClass::TemplateTypeParm">(clang::TemplateTypeParmType *)this</ExpandedItem>
|
| 73 | <ExpandedItem ExcludeView="cmn" Condition="TypeBits.TC==clang::Type::TypeClass::SubstTemplateTypeParm">(clang::SubstTemplateTypeParmType *)this</ExpandedItem>
|
| 74 | <ExpandedItem ExcludeView="cmn" Condition="TypeBits.TC==clang::Type::TypeClass::Record">(clang::RecordType *)this</ExpandedItem>
|
Mike Spertus | 7f2de8e | 2016-03-20 00:20:43 +0000 | [diff] [blame] | 75 | <ExpandedItem ExcludeView="cmn" Condition="TypeBits.TC==clang::Type::TypeClass::FunctionProto">(clang::FunctionProtoType *)this</ExpandedItem>
|
Mike Spertus | a9ab71c | 2016-03-29 09:24:45 +0000 | [diff] [blame] | 76 | <ExpandedItem ExcludeView="cmn" Condition="TypeBits.TC==clang::Type::TypeClass::TemplateSpecialization">(clang::TemplateSpecializationType *)this</ExpandedItem>
|
Mike Spertus | 4f95b9c | 2019-01-05 17:01:34 +0000 | [diff] [blame] | 77 | <ExpandedItem ExcludeView="cmn" Condition="TypeBits.TC==clang::Type::TypeClass::DeducedTemplateSpecialization">(clang::DeducedTemplateSpecializationType *)this</ExpandedItem>
|
Mike Spertus | a9ab71c | 2016-03-29 09:24:45 +0000 | [diff] [blame] | 78 | <ExpandedItem ExcludeView="cmn" Condition="TypeBits.TC==clang::Type::TypeClass::InjectedClassName">(clang::InjectedClassNameType *)this</ExpandedItem>
|
Mike Spertus | ce334cf | 2016-06-12 22:54:46 +0000 | [diff] [blame] | 79 | <ExpandedItem ExcludeView="cmn" Condition="TypeBits.TC==clang::Type::TypeClass::PackExpansion">(clang::PackExpansionType *)this</ExpandedItem>
|
Mike Spertus | 897711f | 2016-06-11 20:15:19 +0000 | [diff] [blame] | 80 | <ExpandedItem ExcludeView="cmn" Condition="TypeBits.TC==clang::LocInfoType::LocInfo">(clang::LocInfoType *)this</ExpandedItem>
|
Mike Spertus | 288daa5 | 2016-03-08 16:14:23 +0000 | [diff] [blame] | 81 | </Expand>
|
| 82 | </Type>
|
Mike Spertus | 01b14bf | 2016-03-16 14:27:50 +0000 | [diff] [blame] | 83 | <Type Name="clang::PointerType">
|
| 84 | <DisplayString>{PointeeType, view(poly)} *</DisplayString>
|
| 85 | <Expand>
|
Mike Spertus | 01b14bf | 2016-03-16 14:27:50 +0000 | [diff] [blame] | 86 | <Item Name="PointeeType">PointeeType</Item>
|
Mike Spertus | 8874ef7 | 2016-04-04 19:36:48 +0000 | [diff] [blame] | 87 | <ExpandedItem>*(clang::Type *)this, view(cmn)</ExpandedItem>
|
Mike Spertus | 01b14bf | 2016-03-16 14:27:50 +0000 | [diff] [blame] | 88 | </Expand>
|
| 89 | </Type>
|
| 90 | <!-- We visualize all inner types for clang reference types. So a rvalue reference to an lvalue reference
|
| 91 | to an int would visual as int & && This is a little different than GetPointeeType(),
|
| 92 | but more clearly displays the data structure and seems natural -->
|
| 93 | <Type Name="clang::LValueReferenceType">
|
| 94 | <DisplayString>{((clang::ReferenceType *)this)->PointeeType,view(cpp)} &</DisplayString>
|
| 95 | <Expand>
|
| 96 | <ExpandedItem>*(clang::Type *)this, view(cmn)</ExpandedItem>
|
| 97 | <Item Name="PointeeType">PointeeType</Item>
|
| 98 | </Expand>
|
| 99 | </Type>
|
| 100 | <Type Name="clang::RValueReferenceType">
|
| 101 | <DisplayString>{((clang::ReferenceType *)this)->PointeeType,view(cpp)} &&</DisplayString>
|
| 102 | <Expand>
|
| 103 | <ExpandedItem>*(clang::Type *)this, view(cmn)</ExpandedItem>
|
| 104 | <Item Name="PointeeType">PointeeType</Item>
|
| 105 | </Expand>
|
| 106 | </Type>
|
| 107 | <Type Name="clang::AttributedType">
|
| 108 | <DisplayString>{ModifiedType} Attribute={(clang::AttributedType::Kind)AttributedTypeBits.AttrKind}</DisplayString>
|
| 109 | </Type>
|
Mike Spertus | a814d3d | 2016-03-18 16:38:34 +0000 | [diff] [blame] | 110 |
|
| 111 | <!-- Unfortunately, Visual Studio has trouble seeing the PointerBitMask member PointerIntUnion, so I hardwire it to 2 bits-->
|
| 112 | <Type Name="clang::DeclContext">
|
| 113 | <DisplayString>{(clang::Decl::Kind)DeclKind,en}Decl</DisplayString>
|
| 114 | <Expand>
|
| 115 | <Item Name="DeclKind">(clang::Decl::Kind)DeclKind,en</Item>
|
Mike Spertus | 32e9a32 | 2016-03-22 02:29:22 +0000 | [diff] [blame] | 116 | <Synthetic Name="Members">
|
| 117 | <DisplayString></DisplayString>
|
| 118 | <Expand>
|
| 119 | <LinkedListItems>
|
| 120 | <HeadPointer>FirstDecl</HeadPointer>
|
| 121 | <NextPointer>(clang::Decl *)(NextInContextAndBits.Value & ~3)</NextPointer>
|
| 122 | <ValueNode>*this</ValueNode>
|
| 123 | </LinkedListItems>
|
| 124 | </Expand>
|
| 125 | </Synthetic>
|
Mike Spertus | a814d3d | 2016-03-18 16:38:34 +0000 | [diff] [blame] | 126 | </Expand>
|
| 127 | </Type>
|
| 128 | <Type Name="clang::FieldDecl">
|
Mike Spertus | 85a8abe | 2016-03-23 17:29:42 +0000 | [diff] [blame] | 129 | <DisplayString>Field {{{*(clang::DeclaratorDecl *)this,view(cpp)nd}}}</DisplayString>
|
Mike Spertus | a814d3d | 2016-03-18 16:38:34 +0000 | [diff] [blame] | 130 | </Type>
|
| 131 | <Type Name="clang::CXXMethodDecl">
|
Mike Spertus | 32e9a32 | 2016-03-22 02:29:22 +0000 | [diff] [blame] | 132 | <DisplayString IncludeView="cpp">{*(clang::FunctionDecl *)this,nd}</DisplayString>
|
| 133 | <DisplayString>Method {{{*this,view(cpp)}}}</DisplayString>
|
Mike Spertus | a814d3d | 2016-03-18 16:38:34 +0000 | [diff] [blame] | 134 | </Type>
|
| 135 | <Type Name="clang::CXXConstructorDecl">
|
Mike Spertus | 32e9a32 | 2016-03-22 02:29:22 +0000 | [diff] [blame] | 136 | <DisplayString>Constructor {{{Name,view(cpp)}({*(clang::FunctionDecl *)this,view(parm0)nd})}}</DisplayString>
|
Mike Spertus | a814d3d | 2016-03-18 16:38:34 +0000 | [diff] [blame] | 137 | </Type>
|
| 138 | <Type Name="clang::CXXDestructorDecl">
|
Mike Spertus | 32e9a32 | 2016-03-22 02:29:22 +0000 | [diff] [blame] | 139 | <DisplayString>Destructor {{~{Name,view(cpp)}()}}</DisplayString>
|
Mike Spertus | a814d3d | 2016-03-18 16:38:34 +0000 | [diff] [blame] | 140 | </Type>
|
Mike Spertus | 1796c2e | 2016-03-29 10:57:24 +0000 | [diff] [blame] | 141 | <Type Name="clang::TemplateTypeParmDecl">
|
Mike Spertus | 819fb78 | 2016-05-24 01:47:41 +0000 | [diff] [blame] | 142 | <DisplayString IncludeView="TorC" Condition="Typename">typename</DisplayString>
|
| 143 | <DisplayString IncludeView="TorC" Condition="!Typename">class</DisplayString>
|
Mike Spertus | b25ced7 | 2019-01-05 23:15:30 +0000 | [diff] [blame] | 144 | <DisplayString IncludeView="MaybeEllipses" Condition="TypeForDecl == nullptr">(not yet known if parameter pack) </DisplayString>
|
| 145 | <DisplayString IncludeView="MaybeEllipses" Condition="((TemplateTypeParmType *)(((clang::ExtQualsTypeCommonBase *)(((uintptr_t)TypeForDecl->CanonicalType.Value.Value) & ~(uintptr_t)((1 << 4) - 1)))->BaseType))->CanTTPTInfo.ParameterPack">...</DisplayString>
|
| 146 | <DisplayString IncludeView="MaybeEllipses" Condition="!((TemplateTypeParmType *)(((clang::ExtQualsTypeCommonBase *)(((uintptr_t)TypeForDecl->CanonicalType.Value.Value) & ~(uintptr_t)((1 << 4) - 1)))->BaseType))->CanTTPTInfo.ParameterPack"></DisplayString>
|
Mike Spertus | 819fb78 | 2016-05-24 01:47:41 +0000 | [diff] [blame] | 147 | <DisplayString>{*this,view(TorC)} {*this,view(MaybeEllipses)}{Name,view(cpp)}</DisplayString>
|
Mike Spertus | 1796c2e | 2016-03-29 10:57:24 +0000 | [diff] [blame] | 148 | </Type>
|
Mike Spertus | 61c3f39 | 2016-03-31 06:09:56 +0000 | [diff] [blame] | 149 | <Type Name="clang::TemplateDecl">
|
Mike Spertus | 4f95b9c | 2019-01-05 17:01:34 +0000 | [diff] [blame] | 150 | <DisplayString>template{TemplateParams,view(deref)} {*TemplatedDecl};</DisplayString>
|
| 151 | </Type>
|
| 152 | <Type Name="clang::TemplateName">
|
| 153 | <DisplayString>{Storage,view(deref)}</DisplayString>
|
| 154 | <Expand>
|
| 155 | <ExpandedItem>Storage</ExpandedItem>
|
| 156 | </Expand>
|
Mike Spertus | 61c3f39 | 2016-03-31 06:09:56 +0000 | [diff] [blame] | 157 | </Type>
|
Mike Spertus | 01b14bf | 2016-03-16 14:27:50 +0000 | [diff] [blame] | 158 | <Type Name="clang::NamedDecl" >
|
| 159 | <DisplayString IncludeView="cpp">{Name,view(cpp)}</DisplayString>
|
| 160 | <DisplayString>{Name}</DisplayString>
|
| 161 | </Type>
|
| 162 | <Type Name="clang::TagDecl">
|
Mike Spertus | 32e9a32 | 2016-03-22 02:29:22 +0000 | [diff] [blame] | 163 | <DisplayString IncludeView="implicit" Condition="Implicit">implicit{" ",sb}</DisplayString>
|
| 164 | <DisplayString IncludeView="implicit"></DisplayString>
|
Mike Spertus | 4fc8c44 | 2019-01-06 04:58:48 +0000 | [diff] [blame^] | 165 | <DisplayString IncludeView="modifiers">{*this,view(implicit)nd}</DisplayString>
|
Mike Spertus | 32e9a32 | 2016-03-22 02:29:22 +0000 | [diff] [blame] | 166 | <DisplayString IncludeView="cpp">{*this,view(modifiers)}{Name,view(cpp)}</DisplayString>
|
Mike Spertus | 4fc8c44 | 2019-01-06 04:58:48 +0000 | [diff] [blame^] | 167 | <DisplayString Condition="TagDeclBits.TagDeclKind==clang::TagTypeKind::TTK_Struct">{*this,view(modifiers)nd}struct {Name,view(cpp)}</DisplayString>
|
| 168 | <DisplayString Condition="TagDeclBits.TagDeclKind==clang::TagTypeKind::TTK_Interface">{*this,view(modifiers)nd}interface {Name,view(cpp)}</DisplayString>
|
| 169 | <DisplayString Condition="TagDeclBits.TagDeclKind==clang::TagTypeKind::TTK_Union">{*this,view(modifiers)nd}union {Name,view(cpp)}</DisplayString>
|
| 170 | <DisplayString Condition="TagDeclBits.TagDeclKind==clang::TagTypeKind::TTK_Class">{*this,view(modifiers)nd}class {Name,view(cpp)}</DisplayString>
|
| 171 | <DisplayString Condition="TagDeclBits.TagDeclKind==clang::TagTypeKind::TTK_Enum">{*this,view(modifiers)nd}enum {Name,view(cpp)}</DisplayString>
|
Mike Spertus | a814d3d | 2016-03-18 16:38:34 +0000 | [diff] [blame] | 172 | <Expand>
|
| 173 | <ExpandedItem>(clang::DeclContext *)this</ExpandedItem>
|
| 174 | </Expand>
|
Mike Spertus | 01b14bf | 2016-03-16 14:27:50 +0000 | [diff] [blame] | 175 | </Type>
|
Mike Spertus | 288daa5 | 2016-03-08 16:14:23 +0000 | [diff] [blame] | 176 | <Type Name="clang::TagType">
|
Mike Spertus | 32e9a32 | 2016-03-22 02:29:22 +0000 | [diff] [blame] | 177 | <DisplayString IncludeView="cpp">{*decl,view(cpp)}</DisplayString>
|
Mike Spertus | 288daa5 | 2016-03-08 16:14:23 +0000 | [diff] [blame] | 178 | <DisplayString>{*decl}</DisplayString>
|
| 179 | <Expand>
|
Mike Spertus | 01b14bf | 2016-03-16 14:27:50 +0000 | [diff] [blame] | 180 | <ExpandedItem>*(clang::Type *)this, view(cmn)</ExpandedItem>
|
Mike Spertus | 288daa5 | 2016-03-08 16:14:23 +0000 | [diff] [blame] | 181 | <Item Name="decl">decl</Item>
|
| 182 | </Expand>
|
| 183 | </Type>
|
| 184 | <Type Name="clang::RecordType">
|
Mike Spertus | 32e9a32 | 2016-03-22 02:29:22 +0000 | [diff] [blame] | 185 | <DisplayString IncludeView="cpp">{*(clang::TagType *)this,view(cpp)}</DisplayString>
|
Mike Spertus | 01b14bf | 2016-03-16 14:27:50 +0000 | [diff] [blame] | 186 | <DisplayString>{*(clang::TagType *)this}</DisplayString>
|
Mike Spertus | 288daa5 | 2016-03-08 16:14:23 +0000 | [diff] [blame] | 187 | <Expand>
|
| 188 | <Item Name="TagType">*(clang::TagType *)this</Item>
|
| 189 | </Expand>
|
| 190 | </Type>
|
| 191 | <Type Name="clang::SubstTemplateTypeParmType">
|
Mike Spertus | 01b14bf | 2016-03-16 14:27:50 +0000 | [diff] [blame] | 192 | <DisplayString>{*Replaced,view(cpp)} <= {CanonicalType,view(cpp)}</DisplayString>
|
Mike Spertus | 288daa5 | 2016-03-08 16:14:23 +0000 | [diff] [blame] | 193 | <Expand>
|
Mike Spertus | 01b14bf | 2016-03-16 14:27:50 +0000 | [diff] [blame] | 194 | <ExpandedItem>*(clang::Type *)this, view(cmn)</ExpandedItem>
|
Mike Spertus | 288daa5 | 2016-03-08 16:14:23 +0000 | [diff] [blame] | 195 | <Item Name="Replaced">*Replaced</Item>
|
| 196 | </Expand>
|
| 197 | </Type>
|
Mike Spertus | 7f2de8e | 2016-03-20 00:20:43 +0000 | [diff] [blame] | 198 | <!-- We only show the first 5 parameter types in the display string (can't figure out how to loop in DisplayString)
|
| 199 | but the expansion has all parameters -->
|
| 200 | <Type Name="clang::FunctionProtoType">
|
Mike Spertus | 6fa3e59 | 2016-03-20 20:15:23 +0000 | [diff] [blame] | 201 | <DisplayString IncludeView="retType">{ResultType,view(cpp)}</DisplayString>
|
Aaron Ballman | 1455d4e | 2018-12-18 21:42:20 +0000 | [diff] [blame] | 202 | <DisplayString IncludeView="parm0" Condition="FunctionTypeBits.NumParams==0"></DisplayString>
|
Mike Spertus | 7f2de8e | 2016-03-20 00:20:43 +0000 | [diff] [blame] | 203 | <DisplayString IncludeView="parm0">{*(clang::QualType *)(this+1),view(cpp)}{*this,view(parm1)}</DisplayString>
|
Aaron Ballman | 1455d4e | 2018-12-18 21:42:20 +0000 | [diff] [blame] | 204 | <DisplayString IncludeView="parm1" Condition="FunctionTypeBits.NumParams==1"></DisplayString>
|
Mike Spertus | 7f2de8e | 2016-03-20 00:20:43 +0000 | [diff] [blame] | 205 | <DisplayString IncludeView="parm1">, {*((clang::QualType *)(this+1)+1),view(cpp)}{*this,view(parm2)}</DisplayString>
|
Aaron Ballman | 1455d4e | 2018-12-18 21:42:20 +0000 | [diff] [blame] | 206 | <DisplayString IncludeView="parm2" Condition="FunctionTypeBits.NumParams==2"></DisplayString>
|
Mike Spertus | 7f2de8e | 2016-03-20 00:20:43 +0000 | [diff] [blame] | 207 | <DisplayString IncludeView="parm2">, {*((clang::QualType *)(this+1)+2),view(cpp)}{*this,view(parm3)}</DisplayString>
|
Aaron Ballman | 1455d4e | 2018-12-18 21:42:20 +0000 | [diff] [blame] | 208 | <DisplayString IncludeView="parm3" Condition="FunctionTypeBits.NumParams==3"></DisplayString>
|
Mike Spertus | 7f2de8e | 2016-03-20 00:20:43 +0000 | [diff] [blame] | 209 | <DisplayString IncludeView="parm3">, {*((clang::QualType *)(this+1)+3),view(cpp)}{*this,view(parm4)}</DisplayString>
|
Aaron Ballman | 1455d4e | 2018-12-18 21:42:20 +0000 | [diff] [blame] | 210 | <DisplayString IncludeView="parm4" Condition="FunctionTypeBits.NumParams==4"></DisplayString>
|
Mike Spertus | 7f2de8e | 2016-03-20 00:20:43 +0000 | [diff] [blame] | 211 | <DisplayString IncludeView="parm4">, {*((clang::QualType *)(this+1)+4),view(cpp)}{*this,view(parm5)}</DisplayString>
|
Aaron Ballman | 1455d4e | 2018-12-18 21:42:20 +0000 | [diff] [blame] | 212 | <DisplayString IncludeView="parm5" Condition="FunctionTypeBits.NumParams==5"></DisplayString>
|
Mike Spertus | 7f2de8e | 2016-03-20 00:20:43 +0000 | [diff] [blame] | 213 | <DisplayString IncludeView="parm5">, /* expand for more params */</DisplayString>
|
Mike Spertus | 6fa3e59 | 2016-03-20 20:15:23 +0000 | [diff] [blame] | 214 | <DisplayString>{*this,view(retType)}({*this,view(parm0)})</DisplayString>
|
Mike Spertus | 7f2de8e | 2016-03-20 00:20:43 +0000 | [diff] [blame] | 215 | <Expand>
|
| 216 | <Item Name="ReturnType">ResultType</Item>
|
| 217 | <Synthetic Name="Parameter Types">
|
| 218 | <DisplayString>{*this,view(parm0)}</DisplayString>
|
| 219 | <Expand>
|
| 220 | <ArrayItems>
|
Aaron Ballman | 1455d4e | 2018-12-18 21:42:20 +0000 | [diff] [blame] | 221 | <Size>FunctionTypeBits.NumParams</Size>
|
Mike Spertus | 7f2de8e | 2016-03-20 00:20:43 +0000 | [diff] [blame] | 222 | <ValuePointer>(clang::QualType *)(this+1)</ValuePointer>
|
| 223 | </ArrayItems>
|
| 224 | </Expand>
|
| 225 | </Synthetic>
|
| 226 | <ExpandedItem>*(clang::Type *)this, view(cmn)</ExpandedItem>
|
| 227 | </Expand>
|
| 228 | </Type>
|
Mike Spertus | 288daa5 | 2016-03-08 16:14:23 +0000 | [diff] [blame] | 229 | <Type Name="clang::TemplateTypeParmType">
|
Mike Spertus | 4fc8c44 | 2019-01-06 04:58:48 +0000 | [diff] [blame^] | 230 | <DisplayString IncludeView="cpp" Condition="CanonicalType.Value.Value != this">{*TTPDecl}</DisplayString>
|
Mike Spertus | b25ced7 | 2019-01-05 23:15:30 +0000 | [diff] [blame] | 231 | <DisplayString Condition="CanonicalType.Value.Value != this">Non-canonical: {*TTPDecl}</DisplayString>
|
| 232 | <DisplayString>Canonical: {CanTTPTInfo}</DisplayString>
|
| 233 | <Expand>
|
| 234 | </Expand>
|
Aaron Ballman | 9d21454 | 2015-09-29 17:32:36 +0000 | [diff] [blame] | 235 | </Type>
|
Mike Spertus | a9ab71c | 2016-03-29 09:24:45 +0000 | [diff] [blame] | 236 | <Type Name="clang::InjectedClassNameType">
|
| 237 | <DisplayString>{*Decl,view(cpp)}</DisplayString>
|
| 238 | <Expand>
|
| 239 | <Item Name="Decl">Decl</Item>
|
| 240 | <Item Name="InjectedType">InjectedType</Item>
|
| 241 | <ExpandedItem>*(clang::Type *)this, view(cmn)</ExpandedItem>
|
| 242 | </Expand>
|
| 243 | </Type>
|
Mike Spertus | ce334cf | 2016-06-12 22:54:46 +0000 | [diff] [blame] | 244 | <Type Name="clang::PackExpansionType">
|
| 245 | <DisplayString>{Pattern}</DisplayString>
|
| 246 | <Expand>
|
| 247 | <Item Name="Pattern">Pattern</Item>
|
| 248 | <Item Name="NumExpansions">NumExpansions</Item>
|
| 249 | <ExpandedItem>*(clang::Type *)this, view(cmn)</ExpandedItem>
|
| 250 | </Expand>
|
| 251 | </Type>
|
Aaron Ballman | 9d21454 | 2015-09-29 17:32:36 +0000 | [diff] [blame] | 252 | <Type Name="clang::QualType">
|
Mike Spertus | 8758c9d | 2016-03-24 00:38:54 +0000 | [diff] [blame] | 253 | <!-- When VS2013 support is deprecated, change 4 to clang::TypeAlignmentInBits (not properly recognized by VS2013) -->
|
| 254 | <DisplayString IncludeView="poly">{*((clang::ExtQualsTypeCommonBase *)(((uintptr_t)Value.Value) & ~(uintptr_t)((1 << 4) - 1)))->BaseType,view(poly)}{*this,view(fastQuals)}</DisplayString>
|
| 255 | <DisplayString IncludeView="cpp">{*((clang::ExtQualsTypeCommonBase *)(((uintptr_t)Value.Value) & ~(uintptr_t)((1 << 4) - 1)))->BaseType,view(cpp)}{*this,view(fastQuals)}</DisplayString>
|
| 256 | <!-- For the Fast Qualifiers, it is simpler (and probably more efficient) just to list all 8 cases than create
|
| 257 | views for each qualifier. TODO: Non-fast qualifiers -->
|
| 258 | <DisplayString IncludeView="fastQuals" Condition="(Value.Value & 15)==0"></DisplayString>
|
| 259 | <DisplayString IncludeView="fastQuals" Condition="(Value.Value & 15)==1">{" ",sb}const</DisplayString>
|
| 260 | <DisplayString IncludeView="fastQuals" Condition="(Value.Value & 15)==2">{" ",sb}restrict</DisplayString>
|
| 261 | <DisplayString IncludeView="fastQuals" Condition="(Value.Value & 15)==3">{" ",sb}const restrict</DisplayString>
|
| 262 | <DisplayString IncludeView="fastQuals" Condition="(Value.Value & 15)==4">{" ",sb}volatile</DisplayString>
|
| 263 | <DisplayString IncludeView="fastQuals" Condition="(Value.Value & 15)==5">{" ",sb}const volatile</DisplayString>
|
| 264 | <DisplayString IncludeView="fastQuals" Condition="(Value.Value & 15)==6">{" ",sb}volatile restrict</DisplayString>
|
| 265 | <DisplayString IncludeView="fastQuals" Condition="(Value.Value & 15)==7">{" ",sb}const volatile restrict</DisplayString>
|
| 266 | <DisplayString IncludeView="fastQuals">Cannot visualize non-fast qualifiers</DisplayString>
|
Mike Spertus | b25ced7 | 2019-01-05 23:15:30 +0000 | [diff] [blame] | 267 | <DisplayString Condition="(uintptr_t)Value.Value == 0">Null</DisplayString>
|
Mike Spertus | 8758c9d | 2016-03-24 00:38:54 +0000 | [diff] [blame] | 268 | <DisplayString>{*((clang::ExtQualsTypeCommonBase *)(((uintptr_t)Value.Value) & ~(uintptr_t)((1 << 4) - 1)))->BaseType}{*this,view(fastQuals)}</DisplayString>
|
Mike Spertus | 288daa5 | 2016-03-08 16:14:23 +0000 | [diff] [blame] | 269 | <Expand>
|
Mike Spertus | 8758c9d | 2016-03-24 00:38:54 +0000 | [diff] [blame] | 270 | <Item Name="Fast Quals">*this,view(fastQuals)</Item>
|
Mike Spertus | 4fc8c44 | 2019-01-06 04:58:48 +0000 | [diff] [blame^] | 271 | <ExpandedItem>*((clang::ExtQualsTypeCommonBase *)(((uintptr_t)Value.Value) & ~(uintptr_t)((1 << 4) - 1)))->BaseType</ExpandedItem>
|
Mike Spertus | 288daa5 | 2016-03-08 16:14:23 +0000 | [diff] [blame] | 272 | </Expand>
|
| 273 | </Type>
|
Mike Spertus | 897711f | 2016-06-11 20:15:19 +0000 | [diff] [blame] | 274 | <Type Name="clang::LocInfoType">
|
| 275 | <DisplayString>{*DeclInfo}</DisplayString>
|
| 276 | <Expand>
|
| 277 | <Item Name="DeclInfo">DeclInfo</Item>
|
| 278 | <ExpandedItem>*(clang::Type *)this, view(cmn)</ExpandedItem>
|
| 279 | </Expand>
|
| 280 | </Type>
|
| 281 | <Type Name="clang::TypeSourceInfo">
|
| 282 | <DisplayString>{Ty}</DisplayString>
|
| 283 | </Type>
|
Mike Spertus | 288daa5 | 2016-03-08 16:14:23 +0000 | [diff] [blame] | 284 | <Type Name="clang::TemplateArgumentLoc">
|
| 285 | <DisplayString>{Argument}</DisplayString>
|
| 286 | <Expand>
|
| 287 | <ExpandedItem>Argument</ExpandedItem>
|
| 288 | </Expand>
|
| 289 | </Type>
|
| 290 | <Type Name="clang::TemplateArgument">
|
Mike Spertus | 603bbfc | 2016-06-06 17:08:32 +0000 | [diff] [blame] | 291 | <DisplayString IncludeView="cpp" Condition="Integer.Kind == clang::TemplateArgument::ArgKind::Type">{*(clang::QualType *)&TypeOrValue.V,view(cpp)}</DisplayString>
|
| 292 | <DisplayString Condition="Integer.Kind == clang::TemplateArgument::ArgKind::Type">{(clang::TemplateArgument::ArgKind)TypeOrValue.Kind,en} template argument: {*(clang::QualType *)&TypeOrValue.V}</DisplayString>
|
| 293 | <DisplayString IncludeView="arg0" Condition="Args.NumArgs==0"></DisplayString>
|
| 294 | <DisplayString IncludeView="arg0">{Args.Args[0]}{*this,view(arg1)}</DisplayString>
|
| 295 | <DisplayString IncludeView="arg1" Condition="Args.NumArgs==1"></DisplayString>
|
| 296 | <DisplayString IncludeView="arg1">, {Args.Args[1]}{*this,view(arg2)}</DisplayString>
|
| 297 | <DisplayString IncludeView="arg2" Condition="Args.NumArgs==2"></DisplayString>
|
| 298 | <DisplayString IncludeView="arg2">, {Args.Args[2]}, ...</DisplayString>
|
| 299 | <DisplayString IncludeView="arg0cpp" Condition="Args.NumArgs==0"></DisplayString>
|
| 300 | <DisplayString IncludeView="arg0cpp">{Args.Args[0],view(cpp)}{*this,view(arg1cpp)}</DisplayString>
|
| 301 | <DisplayString IncludeView="arg1cpp" Condition="Args.NumArgs==1"></DisplayString>
|
| 302 | <DisplayString IncludeView="arg1cpp">, {Args.Args[1],view(cpp)}{*this,view(arg2cpp)}</DisplayString>
|
| 303 | <DisplayString IncludeView="arg2cpp" Condition="Args.NumArgs==2"></DisplayString>
|
| 304 | <DisplayString IncludeView="arg2cpp">, {Args.Args[2],view(cpp)}, ...</DisplayString>
|
| 305 | <DisplayString IncludeView="cpp" Condition="Integer.Kind == clang::TemplateArgument::ArgKind::Pack">{*this,view(arg0cpp)}</DisplayString>
|
| 306 | <DisplayString Condition="Integer.Kind == clang::TemplateArgument::ArgKind::Pack">{*this,view(arg0)}</DisplayString>
|
Mike Spertus | 64aa76d | 2016-05-23 22:27:44 +0000 | [diff] [blame] | 307 | <DisplayString>{(clang::TemplateArgument::ArgKind)TypeOrValue.Kind,en}</DisplayString>
|
Mike Spertus | 288daa5 | 2016-03-08 16:14:23 +0000 | [diff] [blame] | 308 | <Expand>
|
| 309 | <Item Name="QualType" Condition="Integer.Kind == clang::TemplateArgument::ArgKind::Type">*(clang::QualType *)&TypeOrValue.V</Item>
|
Mike Spertus | 64aa76d | 2016-05-23 22:27:44 +0000 | [diff] [blame] | 310 | <ArrayItems Condition="Integer.Kind == clang::TemplateArgument::ArgKind::Pack">
|
| 311 | <Size>Args.NumArgs</Size>
|
| 312 | <ValuePointer>Args.Args</ValuePointer>
|
| 313 | </ArrayItems>
|
Mike Spertus | 288daa5 | 2016-03-08 16:14:23 +0000 | [diff] [blame] | 314 | <!-- TODO: Other kinds-->
|
| 315 | </Expand>
|
| 316 | </Type>
|
Mike Spertus | 603bbfc | 2016-06-06 17:08:32 +0000 | [diff] [blame] | 317 | <Type Name="clang::TemplateArgumentList">
|
| 318 | <DisplayString IncludeView="arg0" Condition="NumArguments==0"></DisplayString>
|
| 319 | <DisplayString IncludeView="arg0">{Arguments[0],view(cpp)}{*this,view(arg1)}</DisplayString>
|
| 320 | <DisplayString IncludeView="arg1" Condition="NumArguments==1"></DisplayString>
|
| 321 | <DisplayString IncludeView="arg1">, {Arguments[1],view(cpp)}{*this,view(arg2)}</DisplayString>
|
| 322 | <DisplayString IncludeView="arg2" Condition="NumArguments==2"></DisplayString>
|
Mike Spertus | 1f56e99 | 2016-06-06 21:41:20 +0000 | [diff] [blame] | 323 | <DisplayString IncludeView="arg2">, {Arguments[1],view(cpp)}, ...</DisplayString>
|
Mike Spertus | 603bbfc | 2016-06-06 17:08:32 +0000 | [diff] [blame] | 324 | <DisplayString><{*this,view(arg0)}></DisplayString>
|
| 325 | <Expand>
|
| 326 | <Item Name="NumArguments">NumArguments</Item>
|
| 327 | <ArrayItems>
|
| 328 | <Size>NumArguments</Size>
|
| 329 | <ValuePointer>Arguments</ValuePointer>
|
| 330 | </ArrayItems>
|
| 331 | </Expand>
|
| 332 | </Type>
|
Mike Spertus | 1f56e99 | 2016-06-06 21:41:20 +0000 | [diff] [blame] | 333 | <Type Name="llvm::ArrayRef<clang::TemplateArgument>">
|
| 334 | <DisplayString IncludeView="arg0" Condition="Length==0"></DisplayString>
|
| 335 | <DisplayString IncludeView="arg0">{Data[0],view(cpp)}{*this,view(arg1)}</DisplayString>
|
| 336 | <DisplayString IncludeView="arg1" Condition="Length==1"></DisplayString>
|
| 337 | <DisplayString IncludeView="arg1">, {Data[1],view(cpp)}{*this,view(arg2)}</DisplayString>
|
| 338 | <DisplayString IncludeView="arg2" Condition="Length==2"></DisplayString>
|
| 339 | <DisplayString IncludeView="arg2">, {Data[2],view(cpp)}, ...</DisplayString>
|
| 340 | <DisplayString><{*this,view(arg0)}></DisplayString>
|
| 341 | </Type>
|
| 342 | <Type Name="clang::MultiLevelTemplateArgumentList">
|
| 343 | <DisplayString IncludeView="level0" Condition="(llvm::ArrayRef<clang::TemplateArgument> *)TemplateArgumentLists.EndX - (llvm::ArrayRef<clang::TemplateArgument> *)TemplateArgumentLists.BeginX==0"></DisplayString>
|
| 344 | <DisplayString IncludeView="level0">{((llvm::ArrayRef<clang::TemplateArgument> *)TemplateArgumentLists.BeginX)[0],view(cpp)}{*this,view(level1)}</DisplayString>
|
| 345 | <DisplayString IncludeView="level1" Condition="(llvm::ArrayRef<clang::TemplateArgument> *)TemplateArgumentLists.EndX - (llvm::ArrayRef<clang::TemplateArgument> *)TemplateArgumentLists.BeginX==1"></DisplayString>
|
| 346 | <DisplayString IncludeView="level1">::{((llvm::ArrayRef<clang::TemplateArgument> *)TemplateArgumentLists.BeginX)[1],view(cpp)}{*this,view(level2)}</DisplayString>
|
| 347 | <DisplayString IncludeView="level2" Condition="(llvm::ArrayRef<clang::TemplateArgument> *)TemplateArgumentLists.EndX - (llvm::ArrayRef<clang::TemplateArgument> *)TemplateArgumentLists.BeginX==2"></DisplayString>
|
| 348 | <DisplayString IncludeView="level2">::{((llvm::ArrayRef<clang::TemplateArgument> *)TemplateArgumentLists.BeginX)[2],view(cpp)}, ...</DisplayString>
|
| 349 | <DisplayString>{*this,view(level0)}</DisplayString>
|
| 350 | <Expand>
|
| 351 | <Item Name="TemplateList">TemplateArgumentLists</Item>
|
| 352 | </Expand>
|
| 353 | </Type>
|
Mike Spertus | 47f4890 | 2016-06-12 22:21:56 +0000 | [diff] [blame] | 354 | <Type Name="clang::ParsedTemplateArgument">
|
| 355 | <DisplayString Condition="Kind==clang::ParsedTemplateArgument::Type">Type template argument: {*(clang::QualType *)Arg}</DisplayString>
|
| 356 | <DisplayString Condition="Kind==clang::ParsedTemplateArgument::NonType">Non-type template argument: {*(clang::Expr *)Arg}</DisplayString>
|
| 357 | <DisplayString Condition="Kind==clang::ParsedTemplateArgument::Template">Template template argument: {*(clang::TemplateName *)Arg</DisplayString>
|
| 358 | <Expand>
|
| 359 | <Item Name="Kind">Kind,en</Item>
|
| 360 | <Item Name="Arg" Condition="Kind==clang::ParsedTemplateArgument::Type">(clang::QualType *)Arg</Item>
|
| 361 | <Item Name="Arg" Condition="Kind==clang::ParsedTemplateArgument::NonType">(clang::Expr *)Arg</Item>
|
| 362 | <Item Name="Arg" Condition="Kind==clang::ParsedTemplateArgument::Template">(clang::TemplateName *)Arg</Item>
|
| 363 | </Expand>
|
| 364 | </Type>
|
Mike Spertus | 1d051ee | 2016-03-20 00:32:30 +0000 | [diff] [blame] | 365 | <!-- Builtin types that have C++ keywords are manually displayed as that keyword. Otherwise, just use the enum name -->
|
Mike Spertus | 288daa5 | 2016-03-08 16:14:23 +0000 | [diff] [blame] | 366 | <Type Name="clang::BuiltinType">
|
Mike Spertus | 1d051ee | 2016-03-20 00:32:30 +0000 | [diff] [blame] | 367 | <DisplayString Condition="BuiltinTypeBits.Kind==clang::BuiltinType::Void">void</DisplayString>
|
| 368 | <DisplayString Condition="BuiltinTypeBits.Kind==clang::BuiltinType::Bool">bool</DisplayString>
|
| 369 | <DisplayString Condition="BuiltinTypeBits.Kind==clang::BuiltinType::Char_U">char</DisplayString>
|
| 370 | <DisplayString Condition="BuiltinTypeBits.Kind==clang::BuiltinType::UChar">unsigned char</DisplayString>
|
| 371 | <DisplayString Condition="BuiltinTypeBits.Kind==clang::BuiltinType::WChar_U">wchar_t</DisplayString>
|
| 372 | <DisplayString Condition="BuiltinTypeBits.Kind==clang::BuiltinType::Char16">char16_t</DisplayString>
|
| 373 | <DisplayString Condition="BuiltinTypeBits.Kind==clang::BuiltinType::Char32">char32_t</DisplayString>
|
| 374 | <DisplayString Condition="BuiltinTypeBits.Kind==clang::BuiltinType::UShort">unsigned short</DisplayString>
|
| 375 | <DisplayString Condition="BuiltinTypeBits.Kind==clang::BuiltinType::UInt">unsigned int</DisplayString>
|
| 376 | <DisplayString Condition="BuiltinTypeBits.Kind==clang::BuiltinType::ULong">unsigned long</DisplayString>
|
| 377 | <DisplayString Condition="BuiltinTypeBits.Kind==clang::BuiltinType::ULongLong">unsigned long long</DisplayString>
|
| 378 | <DisplayString Condition="BuiltinTypeBits.Kind==clang::BuiltinType::UInt128">__uint128_t</DisplayString>
|
| 379 | <DisplayString Condition="BuiltinTypeBits.Kind==clang::BuiltinType::Char_S">char</DisplayString>
|
| 380 | <DisplayString Condition="BuiltinTypeBits.Kind==clang::BuiltinType::SChar">signed char</DisplayString>
|
| 381 | <DisplayString Condition="BuiltinTypeBits.Kind==clang::BuiltinType::WChar_S">wchar_t</DisplayString>
|
| 382 | <DisplayString Condition="BuiltinTypeBits.Kind==clang::BuiltinType::Short">short</DisplayString>
|
| 383 | <DisplayString Condition="BuiltinTypeBits.Kind==clang::BuiltinType::Int">int</DisplayString>
|
| 384 | <DisplayString Condition="BuiltinTypeBits.Kind==clang::BuiltinType::Long">long</DisplayString>
|
| 385 | <DisplayString Condition="BuiltinTypeBits.Kind==clang::BuiltinType::LongLong">long long</DisplayString>
|
| 386 | <DisplayString Condition="BuiltinTypeBits.Kind==clang::BuiltinType::Int128">__int128_t</DisplayString>
|
| 387 | <DisplayString Condition="BuiltinTypeBits.Kind==clang::BuiltinType::Half">__fp16</DisplayString>
|
| 388 | <DisplayString Condition="BuiltinTypeBits.Kind==clang::BuiltinType::Float">float</DisplayString>
|
| 389 | <DisplayString Condition="BuiltinTypeBits.Kind==clang::BuiltinType::Double">double</DisplayString>
|
| 390 | <DisplayString Condition="BuiltinTypeBits.Kind==clang::BuiltinType::LongDouble">long double</DisplayString>
|
| 391 | <DisplayString Condition="BuiltinTypeBits.Kind==clang::BuiltinType::NullPtr">nullptr_t</DisplayString>
|
Mike Spertus | 288daa5 | 2016-03-08 16:14:23 +0000 | [diff] [blame] | 392 | <DisplayString>{(clang::BuiltinType::Kind)BuiltinTypeBits.Kind, en}</DisplayString>
|
| 393 | <Expand>
|
| 394 | <Item Name="Kind">(clang::BuiltinType::Kind)BuiltinTypeBits.Kind</Item>
|
| 395 | </Expand>
|
| 396 | </Type>
|
Mike Spertus | 01b14bf | 2016-03-16 14:27:50 +0000 | [diff] [blame] | 397 |
|
Mike Spertus | 288daa5 | 2016-03-08 16:14:23 +0000 | [diff] [blame] | 398 | <Type Name="clang::TemplateSpecializationType">
|
Mike Spertus | 63e428f | 2016-04-01 03:31:43 +0000 | [diff] [blame] | 399 | <DisplayString IncludeView="arg0" Condition="NumArgs==0"></DisplayString>
|
| 400 | <DisplayString IncludeView="arg0">{((clang::TemplateArgument *)(this+1))[0],view(cpp)}{*this,view(arg1)}</DisplayString>
|
| 401 | <DisplayString IncludeView="arg1" Condition="NumArgs==1"></DisplayString>
|
| 402 | <DisplayString IncludeView="arg1">, {((clang::TemplateArgument *)(this+1))[1],view(cpp)}{*this,view(arg2)}</DisplayString>
|
| 403 | <DisplayString IncludeView="arg2" Condition="NumArgs==2"></DisplayString>
|
| 404 | <DisplayString IncludeView="arg2">, {((clang::TemplateArgument *)(this+1))[2],view(cpp)}{*this,view(arg3)}</DisplayString>
|
| 405 | <DisplayString Condition="(Template.Storage.Val.Val.Value & 3) == 0">
|
| 406 | {*((clang::TemplateDecl *)((Template.Storage.Val.Val.Value >> 2) << 2))->TemplatedDecl,view(cpp)}<{*this,view(arg0)}>
|
| 407 | </DisplayString>
|
| 408 | <Expand>
|
| 409 | <Item Name="Template">Template.Storage</Item>
|
| 410 | <ArrayItems>
|
| 411 | <Size>NumArgs</Size>
|
| 412 | <ValuePointer>(clang::TemplateArgument *)(this+1)</ValuePointer>
|
| 413 | </ArrayItems>
|
| 414 | </Expand>
|
Aaron Ballman | 9d21454 | 2015-09-29 17:32:36 +0000 | [diff] [blame] | 415 | </Type>
|
Mike Spertus | 4f95b9c | 2019-01-05 17:01:34 +0000 | [diff] [blame] | 416 | <Type Name="clang::DeducedType">
|
| 417 | <Expand>
|
| 418 | <Item Name="isDeduced">(CanonicalType.Value.Value != this) || TypeBits.Dependent</Item>
|
| 419 | <ExpandedItem>*(clang::Type *)this,view(cmn)</ExpandedItem>
|
| 420 | </Expand>
|
| 421 | </Type>
|
| 422 | <Type Name="clang::DeducedTemplateSpecializationType">
|
Mike Spertus | 4fc8c44 | 2019-01-06 04:58:48 +0000 | [diff] [blame^] | 423 | <DisplayString Condition="(CanonicalType.Value.Value != this) || TypeBits.Dependent">{CanonicalType,view(cpp)}</DisplayString>
|
Mike Spertus | 4f95b9c | 2019-01-05 17:01:34 +0000 | [diff] [blame] | 424 | <DisplayString>{Template}</DisplayString>
|
| 425 | <Expand>
|
Mike Spertus | 4fc8c44 | 2019-01-06 04:58:48 +0000 | [diff] [blame^] | 426 | <Item Name="Template">Template</Item>
|
| 427 | <Item Name="Deduced As" Condition="(CanonicalType.Value.Value != this) || TypeBits.Dependent">CanonicalType,view(cpp)</Item>
|
Mike Spertus | 4f95b9c | 2019-01-05 17:01:34 +0000 | [diff] [blame] | 428 | <ExpandedItem>*(clang::DeducedType *)this</ExpandedItem>
|
Mike Spertus | 4fc8c44 | 2019-01-06 04:58:48 +0000 | [diff] [blame^] | 429 | <Item Name="Template">Template</Item>
|
| 430 | </Expand>
|
| 431 | </Type>
|
| 432 | <Type Name="clang::ClassTemplateSpecializationDecl">
|
| 433 | <DisplayString>{*(CXXRecordDecl *)this,nd}{*TemplateArgs}</DisplayString>
|
| 434 | <Expand>
|
| 435 | <ExpandedItem>(CXXRecordDecl *)this,nd</ExpandedItem>
|
| 436 | <Item Name="TemplateArgs">TemplateArgs</Item>
|
Mike Spertus | 4f95b9c | 2019-01-05 17:01:34 +0000 | [diff] [blame] | 437 | </Expand>
|
| 438 | </Type>
|
Aaron Ballman | 83f197b | 2014-01-24 19:46:45 +0000 | [diff] [blame] | 439 | <Type Name="clang::IdentifierInfo">
|
Mike Spertus | 01b14bf | 2016-03-16 14:27:50 +0000 | [diff] [blame] | 440 | <DisplayString Condition="Entry != 0">{((llvm::StringMapEntry<clang::IdentifierInfo *>*)Entry)+1,sb}</DisplayString>
|
Aaron Ballman | 83f197b | 2014-01-24 19:46:45 +0000 | [diff] [blame] | 441 | <Expand>
|
| 442 | <Item Condition="Entry != 0" Name="[Identifier]">((llvm::StringMapEntry<clang::IdentifierInfo *>*)Entry)+1,s</Item>
|
| 443 | <Item Name="Token Kind">(clang::tok::TokenKind)TokenID</Item>
|
| 444 | </Expand>
|
| 445 | </Type>
|
| 446 | <Type Name="clang::DeclarationName">
|
Mike Spertus | 6fa3e59 | 2016-03-20 20:15:23 +0000 | [diff] [blame] | 447 | <DisplayString Condition="Ptr == 0" IncludeView="cpp"></DisplayString>
|
Aaron Ballman | 83f197b | 2014-01-24 19:46:45 +0000 | [diff] [blame] | 448 | <DisplayString Condition="Ptr == 0">Empty</DisplayString>
|
Mike Spertus | 01b14bf | 2016-03-16 14:27:50 +0000 | [diff] [blame] | 449 | <DisplayString Condition="(Ptr & PtrMask) == StoredIdentifier" IncludeView="cpp">{*(clang::IdentifierInfo *)(Ptr & ~PtrMask)}</DisplayString>
|
Zachary Turner | dfa871b | 2014-06-26 16:26:42 +0000 | [diff] [blame] | 450 | <DisplayString Condition="(Ptr & PtrMask) == StoredIdentifier">{{Identifier ({*(clang::IdentifierInfo *)(Ptr & ~PtrMask)})}}</DisplayString>
|
| 451 | <DisplayString Condition="(Ptr & PtrMask) == StoredObjCZeroArgSelector">{{ObjC Zero Arg Selector (*{(clang::IdentifierInfo *)(Ptr & ~PtrMask)})}}</DisplayString>
|
| 452 | <DisplayString Condition="(Ptr & PtrMask) == StoredObjCOneArgSelector">{{ObjC One Arg Selector (*{(clang::IdentifierInfo *)(Ptr & ~PtrMask)})}}</DisplayString>
|
Aaron Ballman | 1455d4e | 2018-12-18 21:42:20 +0000 | [diff] [blame] | 453 | <DisplayString Condition="(Ptr & PtrMask) == StoredCXXConstructorName">C++ Constructor {{*(clang::detail::CXXSpecialNameExtra *)(Ptr & ~PtrMask)}}</DisplayString>
|
| 454 | <DisplayString Condition="(Ptr & PtrMask) == StoredCXXDestructorName">C++ Destructor {{*(clang::detail::CXXSpecialNameExtra *)(Ptr & ~PtrMask)}}</DisplayString>
|
| 455 | <DisplayString Condition="(Ptr & PtrMask) == StoredCXXConversionFunctionName">C++ Conversion function {{*(clang::detail::CXXSpecialNameExtra *)(Ptr & ~PtrMask)}}</DisplayString>
|
| 456 | <DisplayString Condition="(Ptr & PtrMask) == StoredCXXOperatorName">C++ Operator {{*(clang::detail::CXXOperatorIdName *)(Ptr & ~PtrMask)}}</DisplayString>
|
Mike Spertus | 32e9a32 | 2016-03-22 02:29:22 +0000 | [diff] [blame] | 457 | <DisplayString Condition="(Ptr & PtrMask) == StoredDeclarationNameExtra"
|
Aaron Ballman | 1455d4e | 2018-12-18 21:42:20 +0000 | [diff] [blame] | 458 | IncludeView="cpp">{*(clang::detail::DeclarationNameExtra *)(Ptr & ~PtrMask),view(cpp)}</DisplayString>
|
| 459 | <DisplayString Condition="(Ptr & PtrMask) == StoredDeclarationNameExtra">{{Extra ({*(clang::detail::DeclarationNameExtra *)(Ptr & ~PtrMask)})}}</DisplayString>
|
Aaron Ballman | 83f197b | 2014-01-24 19:46:45 +0000 | [diff] [blame] | 460 | <Expand>
|
Zachary Turner | dfa871b | 2014-06-26 16:26:42 +0000 | [diff] [blame] | 461 | <Item Condition="(Ptr & PtrMask) == StoredIdentifier" Name="[Identifier]">*(clang::IdentifierInfo *)(Ptr & ~PtrMask)</Item>
|
| 462 | <Item Condition="(Ptr & PtrMask) == StoredObjCZeroArgSelector" Name="[ObjC Zero Arg Selector]">*(clang::IdentifierInfo *)(Ptr & ~PtrMask)</Item>
|
| 463 | <Item Condition="(Ptr & PtrMask) == StoredObjCOneArgSelector" Name="[ObjC One Arg Selector]">*(clang::IdentifierInfo *)(Ptr & ~PtrMask)</Item>
|
Aaron Ballman | 1455d4e | 2018-12-18 21:42:20 +0000 | [diff] [blame] | 464 | <Item Condition="(Ptr & PtrMask) == StoredCXXConstructorName" Name="[C++ Constructor]">*(clang::detail::CXXSpecialNameExtra *)(Ptr & ~PtrMask)</Item>
|
| 465 | <Item Condition="(Ptr & PtrMask) == StoredCXXDestructorName" Name="[C++ Destructor]">*(clang::detail::CXXSpecialNameExtra *)(Ptr & ~PtrMask)</Item>
|
| 466 | <Item Condition="(Ptr & PtrMask) == StoredCXXConversionFunctionName" Name="[C++ Conversion function]">*(clang::detail::CXXSpecialNameExtra *)(Ptr & ~PtrMask)</Item>
|
| 467 | <Item Condition="(Ptr & PtrMask) == StoredCXXOperatorName" Name="[C++ Operator]">*(clang::detail::CXXOperatorIdName *)(Ptr & ~PtrMask)</Item>
|
| 468 | <Item Condition="(Ptr & PtrMask) == StoredDeclarationNameExtra" Name="[Extra]">(clang::detail::DeclarationNameExtra *)(Ptr & ~PtrMask)</Item>
|
Mike Spertus | 288daa5 | 2016-03-08 16:14:23 +0000 | [diff] [blame] | 469 | </Expand>
|
| 470 | </Type>
|
Aaron Ballman | 1455d4e | 2018-12-18 21:42:20 +0000 | [diff] [blame] | 471 | <Type Name="clang::detail::DeclarationNameExtra">
|
| 472 | <DisplayString Condition="ExtraKindOrNumArgs == CXXDeductionGuideName">C++ Deduction guide</DisplayString>
|
| 473 | <DisplayString Condition="ExtraKindOrNumArgs == CXXLiteralOperatorName">C++ Literal operator</DisplayString>
|
| 474 | <DisplayString Condition="ExtraKindOrNumArgs == CXXUsingDirective">C++ Using directive</DisplayString>
|
| 475 | <DisplayString>{(clang::detail::DeclarationNameExtra::ExtraKind)ExtraKindOrNumArgs,en}{" ",sb}{*this,view(cpp)}</DisplayString>
|
Mike Spertus | 32e9a32 | 2016-03-22 02:29:22 +0000 | [diff] [blame] | 476 | </Type>
|
Mike Spertus | 288daa5 | 2016-03-08 16:14:23 +0000 | [diff] [blame] | 477 | <Type Name="clang::Token">
|
| 478 | <DisplayString Condition="Kind != clang::tok::identifier">{(clang::tok::TokenKind)Kind,en}</DisplayString>
|
| 479 | <DisplayString Condition="Kind == clang::tok::identifier">{{Identifier ({*(clang::IdentifierInfo *)(PtrData)})}}</DisplayString>
|
| 480 | </Type>
|
| 481 | <Type Name="clang::DeclSpec">
|
| 482 | <DisplayString>[{(clang::DeclSpec::SCS)StorageClassSpec}], [{(clang::TypeSpecifierType)TypeSpecType}]</DisplayString>
|
Aaron Ballman | 83f197b | 2014-01-24 19:46:45 +0000 | [diff] [blame] | 483 | </Type>
|
| 484 | <Type Name="clang::PragmaHandler">
|
| 485 | <DisplayString>{Name,s}</DisplayString>
|
| 486 | </Type>
|
| 487 | <Type Name="clang::FileEntry">
|
| 488 | <DisplayString>{Name,s}</DisplayString>
|
| 489 | </Type>
|
| 490 | <Type Name="clang::DirectoryEntry">
|
| 491 | <DisplayString>{Name,s}</DisplayString>
|
| 492 | </Type>
|
Zachary Turner | dfa871b | 2014-06-26 16:26:42 +0000 | [diff] [blame] | 493 | <Type Name="clang::VarDecl::VarDeclBitfields">
|
| 494 | <Expand>
|
| 495 | <Item Name="StorageClass">(clang::StorageClass)SClass</Item>
|
| 496 | <Item Name="ThreadStorageClass">(clang::ThreadStorageClassSpecifier)TSCSpec</Item>
|
| 497 | <Item Name="InitStyle">(clang::VarDecl::InitializationStyle)InitStyle</Item>
|
| 498 | </Expand>
|
| 499 | </Type>
|
Mike Spertus | 6fa3e59 | 2016-03-20 20:15:23 +0000 | [diff] [blame] | 500 | <Type Name="clang::DeclaratorDecl">
|
| 501 | <DisplayString>{DeclType,view(cpp)} {Name,view(cpp)}</DisplayString>
|
Mike Spertus | 8a0a1d7 | 2016-06-07 00:27:37 +0000 | [diff] [blame] | 502 | <Expand>
|
| 503 | <Item Name="Name">Name</Item>
|
| 504 | <Item Name="DeclType">DeclType</Item>
|
| 505 | </Expand>
|
Mike Spertus | 6fa3e59 | 2016-03-20 20:15:23 +0000 | [diff] [blame] | 506 | </Type>
|
Zachary Turner | dfa871b | 2014-06-26 16:26:42 +0000 | [diff] [blame] | 507 | <Type Name="clang::VarDecl">
|
Mike Spertus | 6fa3e59 | 2016-03-20 20:15:23 +0000 | [diff] [blame] | 508 | <DisplayString>{*(DeclaratorDecl*)this,nd}</DisplayString>
|
Zachary Turner | dfa871b | 2014-06-26 16:26:42 +0000 | [diff] [blame] | 509 | <Expand>
|
| 510 | <ExpandedItem>*(DeclaratorDecl*)this,nd</ExpandedItem>
|
| 511 | <Item Name="VarDeclBits">VarDeclBits</Item>
|
Mike Spertus | 6fa3e59 | 2016-03-20 20:15:23 +0000 | [diff] [blame] | 512 | </Expand>
|
| 513 | </Type>
|
| 514 | <Type Name="clang::ParmVarDecl">
|
| 515 | <DisplayString>{*(VarDecl*)this,nd}</DisplayString>
|
| 516 | <Expand>
|
Zachary Turner | dfa871b | 2014-06-26 16:26:42 +0000 | [diff] [blame] | 517 | <Item Name="ParmVarDeclBits">ParmVarDeclBits</Item>
|
Mike Spertus | 6fa3e59 | 2016-03-20 20:15:23 +0000 | [diff] [blame] | 518 | <ExpandedItem>*(VarDecl*)this,nd</ExpandedItem>
|
| 519 | </Expand>
|
| 520 | </Type>
|
| 521 | <Type Name="clang::FunctionDecl">
|
| 522 | <DisplayString IncludeView="retType">{*(clang::FunctionProtoType *)((clang::ExtQualsTypeCommonBase *)(((uintptr_t)DeclType.Value.Value) & ~15))->BaseType,view(retType)}</DisplayString>
|
Aaron Ballman | 1455d4e | 2018-12-18 21:42:20 +0000 | [diff] [blame] | 523 | <DisplayString IncludeView="parm0" Condition="0 == ((clang::FunctionProtoType *)((clang::ExtQualsTypeCommonBase *)(((uintptr_t)DeclType.Value.Value) & ~15))->BaseType)->FunctionTypeBits.NumParams"></DisplayString>
|
Mike Spertus | 32e9a32 | 2016-03-22 02:29:22 +0000 | [diff] [blame] | 524 | <DisplayString IncludeView="parm0">{*ParamInfo[0]}{*this,view(parm1)nd}</DisplayString>
|
Aaron Ballman | 1455d4e | 2018-12-18 21:42:20 +0000 | [diff] [blame] | 525 | <DisplayString IncludeView="parm1" Condition="1 == ((clang::FunctionProtoType *)((clang::ExtQualsTypeCommonBase *)(((uintptr_t)DeclType.Value.Value) & ~15))->BaseType)->FunctionTypeBits.NumParams"></DisplayString>
|
Mike Spertus | 32e9a32 | 2016-03-22 02:29:22 +0000 | [diff] [blame] | 526 | <DisplayString IncludeView="parm1">, {*ParamInfo[1]}{*this,view(parm2)nd}</DisplayString>
|
Aaron Ballman | 1455d4e | 2018-12-18 21:42:20 +0000 | [diff] [blame] | 527 | <DisplayString IncludeView="parm2" Condition="2 == ((clang::FunctionProtoType *)((clang::ExtQualsTypeCommonBase *)(((uintptr_t)DeclType.Value.Value) & ~15))->BaseType)->FunctionTypeBits.NumParams"></DisplayString>
|
Mike Spertus | 32e9a32 | 2016-03-22 02:29:22 +0000 | [diff] [blame] | 528 | <DisplayString IncludeView="parm2">, {*ParamInfo[2]}{*this,view(parm3)nd}</DisplayString>
|
Aaron Ballman | 1455d4e | 2018-12-18 21:42:20 +0000 | [diff] [blame] | 529 | <DisplayString IncludeView="parm3" Condition="3 == ((clang::FunctionProtoType *)((clang::ExtQualsTypeCommonBase *)(((uintptr_t)DeclType.Value.Value) & ~15))->BaseType)->FunctionTypeBits.NumParams"></DisplayString>
|
Mike Spertus | 32e9a32 | 2016-03-22 02:29:22 +0000 | [diff] [blame] | 530 | <DisplayString IncludeView="parm3">, {*ParamInfo[3]}{*this,view(parm4)nd}</DisplayString>
|
Aaron Ballman | 1455d4e | 2018-12-18 21:42:20 +0000 | [diff] [blame] | 531 | <DisplayString IncludeView="parm4" Condition="4 == ((clang::FunctionProtoType *)((clang::ExtQualsTypeCommonBase *)(((uintptr_t)DeclType.Value.Value) & ~15))->BaseType)->FunctionTypeBits.NumParams"></DisplayString>
|
Mike Spertus | 32e9a32 | 2016-03-22 02:29:22 +0000 | [diff] [blame] | 532 | <DisplayString IncludeView="parm4">, {*ParamInfo[4]}{*this,view(parm5)nd}</DisplayString>
|
Aaron Ballman | 1455d4e | 2018-12-18 21:42:20 +0000 | [diff] [blame] | 533 | <DisplayString IncludeView="parm5" Condition="5 == ((clang::FunctionProtoType *)((clang::ExtQualsTypeCommonBase *)(((uintptr_t)DeclType.Value.Value) & ~15))->BaseType)->FunctionTypeBits.NumParams"></DisplayString>
|
Mike Spertus | 6fa3e59 | 2016-03-20 20:15:23 +0000 | [diff] [blame] | 534 | <DisplayString IncludeView="parm5">, /* expand for more params */</DisplayString>
|
Mike Spertus | 32e9a32 | 2016-03-22 02:29:22 +0000 | [diff] [blame] | 535 | <DisplayString>{*this,view(retType)nd} {Name,view(cpp)nd}({*this,view(parm0)nd})</DisplayString>
|
Mike Spertus | 6fa3e59 | 2016-03-20 20:15:23 +0000 | [diff] [blame] | 536 | <Expand>
|
Mike Spertus | 32e9a32 | 2016-03-22 02:29:22 +0000 | [diff] [blame] | 537 | <Item Name="ReturnType">*this,view(retType)nd</Item>
|
Mike Spertus | 6fa3e59 | 2016-03-20 20:15:23 +0000 | [diff] [blame] | 538 | <Synthetic Name="Parameter Types">
|
Mike Spertus | 32e9a32 | 2016-03-22 02:29:22 +0000 | [diff] [blame] | 539 | <DisplayString>{*this,view(parm0)nd}</DisplayString>
|
Mike Spertus | 6fa3e59 | 2016-03-20 20:15:23 +0000 | [diff] [blame] | 540 | <Expand>
|
| 541 | <ArrayItems>
|
Aaron Ballman | 1455d4e | 2018-12-18 21:42:20 +0000 | [diff] [blame] | 542 | <Size>((clang::FunctionProtoType *)((clang::ExtQualsTypeCommonBase *)(((uintptr_t)DeclType.Value.Value) & ~15))->BaseType)->FunctionTypeBits.NumParams</Size>
|
Mike Spertus | 6fa3e59 | 2016-03-20 20:15:23 +0000 | [diff] [blame] | 543 | <ValuePointer>ParamInfo</ValuePointer>
|
| 544 | </ArrayItems>
|
| 545 | </Expand>
|
| 546 | </Synthetic>
|
Zachary Turner | dfa871b | 2014-06-26 16:26:42 +0000 | [diff] [blame] | 547 | </Expand>
|
| 548 | </Type>
|
Mike Spertus | 288daa5 | 2016-03-08 16:14:23 +0000 | [diff] [blame] | 549 | <Type Name="clang::OpaquePtr<*>">
|
Mike Spertus | 3f19966 | 2016-06-10 22:25:43 +0000 | [diff] [blame] | 550 | <DisplayString>{($T1 *)Ptr}</DisplayString>
|
Mike Spertus | 288daa5 | 2016-03-08 16:14:23 +0000 | [diff] [blame] | 551 | <Expand>
|
| 552 | <ExpandedItem>($T1 *)Ptr</ExpandedItem>
|
| 553 | </Expand>
|
| 554 | </Type>
|
Mike Spertus | 27c72d2f | 2016-06-13 04:02:35 +0000 | [diff] [blame] | 555 | <Type Name="clang::UnionOpaquePtr<*>">
|
| 556 | <DisplayString>{($T1 *)Ptr}</DisplayString>
|
| 557 | <Expand>
|
| 558 | <ExpandedItem>($T1 *)Ptr</ExpandedItem>
|
| 559 | </Expand>
|
| 560 | </Type>
|
Mike Spertus | 1796c2e | 2016-03-29 10:57:24 +0000 | [diff] [blame] | 561 | <Type Name="clang::TemplateParameterList">
|
| 562 | <DisplayString IncludeView="parm0" Condition="NumParams==0"></DisplayString>
|
| 563 | <DisplayString IncludeView="parm0">{*((NamedDecl **)(this+1))[0],view(cpp)}{*this,view(parm1)}</DisplayString>
|
| 564 | <DisplayString IncludeView="parm1" Condition="NumParams==1"></DisplayString>
|
| 565 | <DisplayString IncludeView="parm1">, {*((NamedDecl **)(this+1))[1],view(cpp)}{*this,view(parm2)}</DisplayString>
|
| 566 | <DisplayString IncludeView="parm2" Condition="NumParams==2"></DisplayString>
|
| 567 | <DisplayString IncludeView="parm2">, {*((NamedDecl **)(this+1))[2],view(cpp)}{*this,view(parm3)}</DisplayString>
|
| 568 | <DisplayString IncludeView="parm3" Condition="NumParams==3"></DisplayString>
|
| 569 | <DisplayString IncludeView="parm3">, {*((NamedDecl **)(this+1))[3],view(cpp)}{*this,view(parm4)}</DisplayString>
|
| 570 | <DisplayString IncludeView="parm4" Condition="NumParams==4"></DisplayString>
|
| 571 | <DisplayString IncludeView="parm4">, {*((NamedDecl **)(this+1))[4],view(cpp)}{*this,view(parm5)}</DisplayString>
|
| 572 | <DisplayString IncludeView="parm5" Condition="NumParams==5"></DisplayString>
|
| 573 | <DisplayString IncludeView="parm5">, /* Expand for more params */</DisplayString>
|
| 574 | <DisplayString><{*this,view(parm0)}></DisplayString>
|
| 575 | <Expand>
|
| 576 | <ArrayItems>
|
| 577 | <Size>NumParams</Size>
|
| 578 | <ValuePointer>(NamedDecl **)(this+1)</ValuePointer>
|
| 579 | </ArrayItems>
|
| 580 | </Expand>
|
| 581 | </Type>
|
Mike Spertus | 5bf7fd8 | 2016-06-12 18:42:04 +0000 | [diff] [blame] | 582 | <Type Name="clang::Stmt">
|
| 583 | <DisplayString>{(clang::Stmt::StmtClass)StmtBits.sClass,en}</DisplayString>
|
| 584 | <Expand>
|
| 585 | <Item Name="Class">(clang::Stmt::StmtClass)StmtBits.sClass,en</Item>
|
| 586 | </Expand>
|
| 587 | </Type>
|
Mike Spertus | b27ebb8 | 2016-05-16 01:36:09 +0000 | [diff] [blame] | 588 | <Type Name="clang::Expr">
|
Mike Spertus | ef8c308 | 2016-06-06 03:37:18 +0000 | [diff] [blame] | 589 | <DisplayString>Expression of class {(clang::Stmt::StmtClass)StmtBits.sClass,en} and type {TR,view(cpp)}</DisplayString>
|
Mike Spertus | b27ebb8 | 2016-05-16 01:36:09 +0000 | [diff] [blame] | 590 | </Type>
|
Mike Spertus | 334aa07 | 2016-06-11 03:02:33 +0000 | [diff] [blame] | 591 | <Type Name="clang::DeclAccessPair">
|
| 592 | <DisplayString IncludeView="access" Condition="(Ptr&Mask) == clang::AS_public">public</DisplayString>
|
| 593 | <DisplayString IncludeView="access" Condition="(Ptr&Mask) == clang::AS_protected">protected</DisplayString>
|
| 594 | <DisplayString IncludeView="access" Condition="(Ptr&Mask) == clang::AS_private">private</DisplayString>
|
| 595 | <DisplayString IncludeView="access" Condition="(Ptr&Mask) == clang::AS_none">b</DisplayString>
|
| 596 | <DisplayString IncludeView="decl">{*(clang::NamedDecl *)(Ptr&~Mask)}</DisplayString>
|
| 597 | <DisplayString>{*this,view(access)} {*this,view(decl)}</DisplayString>
|
Mike Spertus | 75644aa | 2018-12-30 20:22:37 +0000 | [diff] [blame] | 598 | <Expand>
|
| 599 | <Item Name="access">(clang::AccessSpecifier)(Ptr&Mask),en</Item>
|
| 600 | <Item Name="decl">*(clang::NamedDecl *)(Ptr&~Mask)</Item>
|
| 601 | </Expand>
|
Mike Spertus | 334aa07 | 2016-06-11 03:02:33 +0000 | [diff] [blame] | 602 | </Type>
|
| 603 | <Type Name="clang::UnresolvedSet<*>">
|
| 604 | <DisplayString>{Decls}</DisplayString>
|
| 605 | <Expand>
|
| 606 | <ExpandedItem>Decls</ExpandedItem>
|
| 607 | </Expand>
|
| 608 | </Type>
|
| 609 | <Type Name="clang::LookupResult">
|
| 610 | <DisplayString Condition="ResultKind == clang::LookupResult::Ambiguous">{Ambiguity,en}: {Decls}</DisplayString>
|
| 611 | <DisplayString>{ResultKind,en}: {Decls}</DisplayString>
|
| 612 | </Type>
|
Mike Spertus | 89073db | 2019-01-03 23:24:39 +0000 | [diff] [blame] | 613 | <Type Name="clang::ActionResult<*, 0>">
|
Mike Spertus | 897711f | 2016-06-11 20:15:19 +0000 | [diff] [blame] | 614 | <DisplayString Condition="Invalid">Invalid</DisplayString>
|
Mike Spertus | 89073db | 2019-01-03 23:24:39 +0000 | [diff] [blame] | 615 | <DisplayString Condition="!*(void **)&Val">Unset</DisplayString>
|
| 616 | <DisplayString>{Val}</DisplayString>
|
Mike Spertus | 897711f | 2016-06-11 20:15:19 +0000 | [diff] [blame] | 617 | </Type>
|
Mike Spertus | 89073db | 2019-01-03 23:24:39 +0000 | [diff] [blame] | 618 | <Type Name="clang::ActionResult<*, 1>">
|
| 619 | <DisplayString Condition="PtrWithInvalid&1">Invalid</DisplayString>
|
| 620 | <DisplayString Condition="!PtrWithInvalid">Unset</DisplayString>
|
| 621 | <DisplayString>{($T1)(PtrWithInvalid&~1)}</DisplayString>
|
Mike Spertus | 897711f | 2016-06-11 20:15:19 +0000 | [diff] [blame] | 622 | <Expand>
|
| 623 | <Item Name="Invalid">(bool)(PtrWithInvalid&1)</Item>
|
Mike Spertus | 89073db | 2019-01-03 23:24:39 +0000 | [diff] [blame] | 624 | <Item Name="Val">($T1)(PtrWithInvalid&~1)</Item>
|
Mike Spertus | 897711f | 2016-06-11 20:15:19 +0000 | [diff] [blame] | 625 | </Expand>
|
| 626 | </Type>
|
Aaron Ballman | 83f197b | 2014-01-24 19:46:45 +0000 | [diff] [blame] | 627 | </AutoVisualizer>
|