blob: 8f17a2a6194342d4a6f1586710aa2cb49a39a9a6 [file] [log] [blame]
Aaron Ballman83f197b2014-01-24 19:46:45 +00001<?xml version="1.0" encoding="utf-8"?>
2<!--
Mike Spertus288daa52016-03-08 16:14:23 +00003Visual Studio Native Debugging Visualizers for LLVM
Aaron Ballman83f197b2014-01-24 19:46:45 +00004
Mike Spertus6601a442016-03-28 18:03:37 +00005For 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
8For later versions of Visual Studio, no setup is required-->
Aaron Ballman83f197b2014-01-24 19:46:45 +00009<AutoVisualizer xmlns="http://schemas.microsoft.com/vstudio/debugger/natvis/2010">
Mike Spertus01b14bf2016-03-16 14:27:50 +000010
Aaron Ballman9d214542015-09-29 17:32:36 +000011 <Type Name="clang::Type">
Mike Spertus01b14bf2016-03-16 14:27:50 +000012 <!-- 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 Spertus897711f2016-06-11 20:15:19 +000023 <DisplayString IncludeView="cmn" Condition="TypeBits.TC==clang::LocInfoType::LocInfo">LocInfoType</DisplayString>
Mike Spertus01b14bf2016-03-16 14:27:50 +000024 <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>
Mike Spertus1f506972019-06-17 16:12:45 +000030 <DisplayString Condition="TypeBits.TC==clang::Type::TypeClass::ConstantArray" IncludeView="poly">{(clang::ConstantArrayType *)this,na}</DisplayString>
31 <DisplayString Condition="TypeBits.TC==clang::Type::TypeClass::ConstantArray" IncludeView="left">{(clang::ConstantArrayType *)this,view(left)na}</DisplayString>
32 <DisplayString Condition="TypeBits.TC==clang::Type::TypeClass::ConstantArray" IncludeView="right">{(clang::ConstantArrayType *)this,view(right)na}</DisplayString>
33 <DisplayString Condition="TypeBits.TC==clang::Type::TypeClass::IncompleteArray" IncludeView="poly">{(clang::IncompleteArrayType *)this,na}</DisplayString>
34 <DisplayString Condition="TypeBits.TC==clang::Type::TypeClass::IncompleteArray" IncludeView="left">{(clang::IncompleteArrayType *)this,view(left)na}</DisplayString>
35 <DisplayString Condition="TypeBits.TC==clang::Type::TypeClass::IncompleteArray" IncludeView="right">{(clang::IncompleteArrayType *)this,view(right)na}</DisplayString>
Mike Spertus08c699a2019-06-23 01:15:48 +000036 <DisplayString Condition="TypeBits.TC==clang::Type::TypeClass::Typedef" IncludeView="poly">{(clang::TypedefType *)this,na}</DisplayString>
37 <DisplayString Condition="TypeBits.TC==clang::Type::TypeClass::Typedef" IncludeView="cpp">{(clang::TypedefType *)this,view(cpp)na}</DisplayString>
Mike Spertus01b14bf2016-03-16 14:27:50 +000038 <DisplayString Condition="TypeBits.TC==clang::Type::TypeClass::Attributed" IncludeView="poly">{*(clang::AttributedType *)this}</DisplayString>
Mike Spertus1f506972019-06-17 16:12:45 +000039 <DisplayString Condition="TypeBits.TC==clang::Type::TypeClass::Decayed" IncludeView="poly">{(clang::DecayedType *)this,na}</DisplayString>
40 <DisplayString Condition="TypeBits.TC==clang::Type::TypeClass::Decayed" IncludeView="left">{(clang::DecayedType *)this,view(left)na}</DisplayString>
41 <DisplayString Condition="TypeBits.TC==clang::Type::TypeClass::Decayed" IncludeView="right">{(clang::DecayedType *)this,view(right)na}</DisplayString>
Mike Spertus01b14bf2016-03-16 14:27:50 +000042 <DisplayString Condition="TypeBits.TC==clang::Type::TypeClass::TemplateTypeParm" IncludeView="poly">{*(clang::TemplateTypeParmType *)this}</DisplayString>
Mike Spertus1f506972019-06-17 16:12:45 +000043 <DisplayString Condition="TypeBits.TC==clang::Type::TypeClass::TemplateTypeParm" IncludeView="cpp">{*(clang::TemplateTypeParmType *)this,view(cpp)}</DisplayString>
Mike Spertus01b14bf2016-03-16 14:27:50 +000044 <DisplayString Condition="TypeBits.TC==clang::Type::TypeClass::SubstTemplateTypeParm" IncludeView="poly">{*(clang::SubstTemplateTypeParmType *)this}</DisplayString>
45 <DisplayString Condition="TypeBits.TC==clang::Type::TypeClass::Record" IncludeView="poly">{*(clang::RecordType *)this}</DisplayString>
Mike Spertus32e9a322016-03-22 02:29:22 +000046 <DisplayString Condition="TypeBits.TC==clang::Type::TypeClass::Record" IncludeView="cpp">{*(clang::RecordType *)this,view(cpp)}</DisplayString>
Mike Spertus1f506972019-06-17 16:12:45 +000047 <DisplayString Condition="TypeBits.TC==clang::Type::TypeClass::FunctionProto" IncludeView="poly">{(clang::FunctionProtoType *)this,na}</DisplayString>
48 <DisplayString Condition="TypeBits.TC==clang::Type::TypeClass::FunctionProto" IncludeView="left">{(clang::FunctionProtoType *)this,view(left)na}</DisplayString>
49 <DisplayString Condition="TypeBits.TC==clang::Type::TypeClass::FunctionProto" IncludeView="right">{(clang::FunctionProtoType *)this,view(right)na}</DisplayString>
Mike Spertusa9ab71c2016-03-29 09:24:45 +000050 <DisplayString Condition="TypeBits.TC==clang::Type::TypeClass::TemplateSpecialization" IncludeView="poly">{*(clang::TemplateSpecializationType *)this}</DisplayString>
Mike Spertus4f95b9c2019-01-05 17:01:34 +000051 <DisplayString Condition="TypeBits.TC==clang::Type::TypeClass::DeducedTemplateSpecialization" IncludeView="poly">{*(clang::DeducedTemplateSpecializationType *)this}</DisplayString>
Mike Spertusa9ab71c2016-03-29 09:24:45 +000052 <DisplayString Condition="TypeBits.TC==clang::Type::TypeClass::InjectedClassName" IncludeView="poly">{*(clang::InjectedClassNameType *)this}</DisplayString>
Mike Spertus08c699a2019-06-23 01:15:48 +000053 <DisplayString Condition="TypeBits.TC==clang::Type::TypeClass::DependentName" IncludeView="poly">{*(clang::DependentNameType *)this}</DisplayString>
Mike Spertusce334cf2016-06-12 22:54:46 +000054 <DisplayString Condition="TypeBits.TC==clang::Type::TypeClass::PackExpansion" IncludeView="poly">{*(clang::PackExpansionType *)this}</DisplayString>
Mike Spertus897711f2016-06-11 20:15:19 +000055 <DisplayString Condition="TypeBits.TC==clang::LocInfoType::LocInfo" IncludeView="poly">{*(clang::LocInfoType *)this}</DisplayString>
Mike Spertus01b14bf2016-03-16 14:27:50 +000056 <DisplayString IncludeView="cpp">{*this,view(poly)}</DisplayString>
Mike Spertus1f506972019-06-17 16:12:45 +000057 <DisplayString IncludeView="left">{*this,view(cpp)}</DisplayString>
58 <DisplayString IncludeView="right"></DisplayString>
Mike Spertus1950c8d2018-12-31 23:01:34 +000059 <DisplayString IncludeView="poly">No visualizer yet for {(clang::Type::TypeClass)TypeBits.TC,en}Type</DisplayString> <!-- Not yet implemented Type subclass -->
Mike Spertus4fc8c442019-01-06 04:58:48 +000060 <DisplayString IncludeView="Dependent" Condition="TypeBits.Dependent">Dependent{" ",sb}</DisplayString>
Mike Spertus4f95b9c2019-01-05 17:01:34 +000061 <DisplayString IncludeView="Dependent"></DisplayString>
Mike Spertus4fc8c442019-01-06 04:58:48 +000062 <DisplayString IncludeView="InstantiationDependent" Condition="TypeBits.InstantiationDependent">InstantiationDependent{" ",sb}</DisplayString>
Mike Spertus4f95b9c2019-01-05 17:01:34 +000063 <DisplayString IncludeView="InstantiationDependent"></DisplayString>
Mike Spertus4fc8c442019-01-06 04:58:48 +000064 <DisplayString IncludeView="VariablyModified" Condition="TypeBits.VariablyModified">VariablyModified{" ",sb}</DisplayString>
Mike Spertus4f95b9c2019-01-05 17:01:34 +000065 <DisplayString IncludeView="VariablyModified"></DisplayString>
Mike Spertus4fc8c442019-01-06 04:58:48 +000066 <DisplayString IncludeView="ContainsUnexpandedParameterPack" Condition="TypeBits.ContainsUnexpandedParameterPack">ContainsUnexpandedParameterPack{" ",sb}</DisplayString>
Mike Spertus4f95b9c2019-01-05 17:01:34 +000067 <DisplayString IncludeView="ContainsUnexpandedParameterPack"></DisplayString>
68 <DisplayString IncludeView="Cache" Condition="TypeBits.CacheValid &amp;&amp; TypeBits.CachedLocalOrUnnamed">CachedLinkage: {(clang::Linkage)TypeBits.CachedLinkage,en} CachedLocalOrUnnamed</DisplayString>
Mike Spertus4fc8c442019-01-06 04:58:48 +000069 <DisplayString IncludeView="Cache" Condition="TypeBits.CacheValid &amp;&amp; !TypeBits.CachedLocalOrUnnamed">CachedLinkage: {(clang::Linkage)TypeBits.CachedLinkage,en}{" ",sb}</DisplayString>
Mike Spertus4f95b9c2019-01-05 17:01:34 +000070 <DisplayString IncludeView="Cache"></DisplayString>
71 <DisplayString IncludeView="FromAST" Condition="TypeBits.FromAST">FromAST</DisplayString>
72 <DisplayString IncludeView="FromAST"></DisplayString>
73 <DisplayString IncludeView="flags" Condition="!TypeBits.Dependent &amp;&amp; !TypeBits.InstantiationDependent &amp;&amp; !TypeBits.VariablyModified &amp;&amp; !TypeBits.ContainsUnexpandedParameterPack &amp;&amp; !TypeBits.CacheValid &amp;&amp; !TypeBits.FromAST">
74 No TypeBits set beyond TypeClass
75 </DisplayString>
76 <DisplayString IncludeView="flags">
Mike Spertusb25ced72019-01-05 23:15:30 +000077{*this, view(Dependent)}{*this, view(InstantiationDependent)}{*this, view(VariablyModified)}
78{*this, view(ContainsUnexpandedParameterPack)}{*this, view(Cache)}{*this, view(FromAST)}</DisplayString>
Mike Spertus01b14bf2016-03-16 14:27:50 +000079 <DisplayString>{*this,view(cmn)} {{{*this,view(poly)}}}</DisplayString>
Mike Spertus288daa52016-03-08 16:14:23 +000080 <Expand>
Mike Spertus01b14bf2016-03-16 14:27:50 +000081 <Item Name="TypeClass" IncludeView="cmn">(clang::Type::TypeClass)TypeBits.TC</Item>
Mike Spertus1f506972019-06-17 16:12:45 +000082 <Item Name="Flags" IncludeView="cmn">this,view(flags)na</Item>
Mike Spertus01b14bf2016-03-16 14:27:50 +000083 <Item Name="Canonical" IncludeView="cmn">CanonicalType</Item>
84 <ExpandedItem ExcludeView="cmn" Condition="TypeBits.TC==clang::Type::TypeClass::Builtin">*(clang::BuiltinType *)this</ExpandedItem>
85 <ExpandedItem ExcludeView="cmn" Condition="TypeBits.TC==clang::Type::TypeClass::Pointer">*(clang::PointerType *)this</ExpandedItem>
86 <ExpandedItem ExcludeView="cmn" Condition="TypeBits.TC==clang::Type::TypeClass::LValueReference">*(clang::LValueReferenceType *)this</ExpandedItem>
87 <ExpandedItem ExcludeView="cmn" Condition="TypeBits.TC==clang::Type::TypeClass::RValueReference">*(clang::RValueReferenceType *)this</ExpandedItem>
Mike Spertus1f506972019-06-17 16:12:45 +000088 <ExpandedItem ExcludeView="cmn" Condition="TypeBits.TC==clang::Type::TypeClass::ConstantArray">(clang::ConstantArrayType *)this</ExpandedItem>
89 <ExpandedItem ExcludeView="cmn" Condition="TypeBits.TC==clang::Type::TypeClass::IncompleteArray">(clang::IncompleteArrayType *)this</ExpandedItem>
Mike Spertus01b14bf2016-03-16 14:27:50 +000090 <ExpandedItem ExcludeView="cmn" Condition="TypeBits.TC==clang::Type::TypeClass::Attributed">*(clang::AttributedType *)this</ExpandedItem>
Mike Spertus1f506972019-06-17 16:12:45 +000091 <ExpandedItem ExcludeView="cmn" Condition="TypeBits.TC==clang::Type::TypeClass::Decayed">(clang::DecayedType *)this</ExpandedItem>
Mike Spertus01b14bf2016-03-16 14:27:50 +000092 <ExpandedItem ExcludeView="cmn" Condition="TypeBits.TC==clang::Type::TypeClass::TemplateTypeParm">(clang::TemplateTypeParmType *)this</ExpandedItem>
93 <ExpandedItem ExcludeView="cmn" Condition="TypeBits.TC==clang::Type::TypeClass::SubstTemplateTypeParm">(clang::SubstTemplateTypeParmType *)this</ExpandedItem>
94 <ExpandedItem ExcludeView="cmn" Condition="TypeBits.TC==clang::Type::TypeClass::Record">(clang::RecordType *)this</ExpandedItem>
Mike Spertus7f2de8e2016-03-20 00:20:43 +000095 <ExpandedItem ExcludeView="cmn" Condition="TypeBits.TC==clang::Type::TypeClass::FunctionProto">(clang::FunctionProtoType *)this</ExpandedItem>
Mike Spertusa9ab71c2016-03-29 09:24:45 +000096 <ExpandedItem ExcludeView="cmn" Condition="TypeBits.TC==clang::Type::TypeClass::TemplateSpecialization">(clang::TemplateSpecializationType *)this</ExpandedItem>
Mike Spertus4f95b9c2019-01-05 17:01:34 +000097 <ExpandedItem ExcludeView="cmn" Condition="TypeBits.TC==clang::Type::TypeClass::DeducedTemplateSpecialization">(clang::DeducedTemplateSpecializationType *)this</ExpandedItem>
Mike Spertusa9ab71c2016-03-29 09:24:45 +000098 <ExpandedItem ExcludeView="cmn" Condition="TypeBits.TC==clang::Type::TypeClass::InjectedClassName">(clang::InjectedClassNameType *)this</ExpandedItem>
Mike Spertus08c699a2019-06-23 01:15:48 +000099 <ExpandedItem ExcludeView="cmn" Condition="TypeBits.TC==clang::Type::TypeClass::DependentName">(clang::DependentNameType *)this</ExpandedItem>
Mike Spertusce334cf2016-06-12 22:54:46 +0000100 <ExpandedItem ExcludeView="cmn" Condition="TypeBits.TC==clang::Type::TypeClass::PackExpansion">(clang::PackExpansionType *)this</ExpandedItem>
Mike Spertus897711f2016-06-11 20:15:19 +0000101 <ExpandedItem ExcludeView="cmn" Condition="TypeBits.TC==clang::LocInfoType::LocInfo">(clang::LocInfoType *)this</ExpandedItem>
Mike Spertus288daa52016-03-08 16:14:23 +0000102 </Expand>
103 </Type>
Mike Spertus1f506972019-06-17 16:12:45 +0000104 <Type Name="clang::ArrayType">
105 <Expand>
106 <Item Name="ElementType">ElementType</Item>
107 </Expand>
108 </Type>
109 <Type Name="clang::ConstantArrayType">
110 <DisplayString IncludeView="left">{ElementType,view(cpp)}</DisplayString>
111 <DisplayString IncludeView="right">[{Size}]</DisplayString>
112 <DisplayString>{ElementType,view(cpp)}[{Size}]</DisplayString>
113 <Expand>
114 <Item Name="Size">Size</Item>
115 <ExpandedItem>(clang::ArrayType *)this</ExpandedItem>
116 </Expand>
117 </Type>
118 <Type Name="clang::IncompleteArrayType">
119 <DisplayString IncludeView="left">{ElementType,view(cpp)}</DisplayString>
120 <DisplayString IncludeView="right">[]</DisplayString>
121 <DisplayString>{ElementType,view(cpp)}[]</DisplayString>
122 <Expand>
123 <ExpandedItem>(clang::ArrayType *)this</ExpandedItem>
124 </Expand>
125 </Type>
Mike Spertus08c699a2019-06-23 01:15:48 +0000126 <Type Name="clang::TypedefType">
127 <DisplayString IncludeView="cpp">{Decl,view(name)nd}</DisplayString>
128 <DisplayString>{Decl}</DisplayString>
129 <Expand>
130 <Item Name="Decl">Decl</Item>
131 <ExpandedItem>*(clang::Type *)this, view(cmn)</ExpandedItem>
132 </Expand>
133 </Type>
Mike Spertus01b14bf2016-03-16 14:27:50 +0000134 <Type Name="clang::PointerType">
135 <DisplayString>{PointeeType, view(poly)} *</DisplayString>
136 <Expand>
Mike Spertus01b14bf2016-03-16 14:27:50 +0000137 <Item Name="PointeeType">PointeeType</Item>
Mike Spertus8874ef72016-04-04 19:36:48 +0000138 <ExpandedItem>*(clang::Type *)this, view(cmn)</ExpandedItem>
Mike Spertus01b14bf2016-03-16 14:27:50 +0000139 </Expand>
140 </Type>
141 <!-- We visualize all inner types for clang reference types. So a rvalue reference to an lvalue reference
142 to an int would visual as int &amp; &amp;&amp; This is a little different than GetPointeeType(),
143 but more clearly displays the data structure and seems natural -->
144 <Type Name="clang::LValueReferenceType">
145 <DisplayString>{((clang::ReferenceType *)this)-&gt;PointeeType,view(cpp)} &amp;</DisplayString>
146 <Expand>
147 <ExpandedItem>*(clang::Type *)this, view(cmn)</ExpandedItem>
148 <Item Name="PointeeType">PointeeType</Item>
149 </Expand>
150 </Type>
151 <Type Name="clang::RValueReferenceType">
152 <DisplayString>{((clang::ReferenceType *)this)-&gt;PointeeType,view(cpp)} &amp;&amp;</DisplayString>
153 <Expand>
154 <ExpandedItem>*(clang::Type *)this, view(cmn)</ExpandedItem>
155 <Item Name="PointeeType">PointeeType</Item>
156 </Expand>
157 </Type>
158 <Type Name="clang::AttributedType">
159 <DisplayString>{ModifiedType} Attribute={(clang::AttributedType::Kind)AttributedTypeBits.AttrKind}</DisplayString>
160 </Type>
Mike Spertusa814d3d2016-03-18 16:38:34 +0000161
162 <!-- Unfortunately, Visual Studio has trouble seeing the PointerBitMask member PointerIntUnion, so I hardwire it to 2 bits-->
163 <Type Name="clang::DeclContext">
Mike Spertus1f506972019-06-17 16:12:45 +0000164 <DisplayString>{(clang::Decl::Kind)DeclContextBits.DeclKind,en}Decl</DisplayString>
Mike Spertusa814d3d2016-03-18 16:38:34 +0000165 <Expand>
Mike Spertus1f506972019-06-17 16:12:45 +0000166 <Item Name="DeclKind">(clang::Decl::Kind)DeclContextBits.DeclKind,en</Item>
Mike Spertus32e9a322016-03-22 02:29:22 +0000167 <Synthetic Name="Members">
168 <DisplayString></DisplayString>
169 <Expand>
170 <LinkedListItems>
171 <HeadPointer>FirstDecl</HeadPointer>
172 <NextPointer>(clang::Decl *)(NextInContextAndBits.Value &amp; ~3)</NextPointer>
173 <ValueNode>*this</ValueNode>
174 </LinkedListItems>
175 </Expand>
176 </Synthetic>
Mike Spertusa814d3d2016-03-18 16:38:34 +0000177 </Expand>
178 </Type>
179 <Type Name="clang::FieldDecl">
Mike Spertus85a8abe2016-03-23 17:29:42 +0000180 <DisplayString>Field {{{*(clang::DeclaratorDecl *)this,view(cpp)nd}}}</DisplayString>
Mike Spertusa814d3d2016-03-18 16:38:34 +0000181 </Type>
182 <Type Name="clang::CXXMethodDecl">
Mike Spertus32e9a322016-03-22 02:29:22 +0000183 <DisplayString IncludeView="cpp">{*(clang::FunctionDecl *)this,nd}</DisplayString>
184 <DisplayString>Method {{{*this,view(cpp)}}}</DisplayString>
Mike Spertusa814d3d2016-03-18 16:38:34 +0000185 </Type>
186 <Type Name="clang::CXXConstructorDecl">
Mike Spertus32e9a322016-03-22 02:29:22 +0000187 <DisplayString>Constructor {{{Name,view(cpp)}({*(clang::FunctionDecl *)this,view(parm0)nd})}}</DisplayString>
Mike Spertusa814d3d2016-03-18 16:38:34 +0000188 </Type>
189 <Type Name="clang::CXXDestructorDecl">
Mike Spertus32e9a322016-03-22 02:29:22 +0000190 <DisplayString>Destructor {{~{Name,view(cpp)}()}}</DisplayString>
Mike Spertusa814d3d2016-03-18 16:38:34 +0000191 </Type>
Mike Spertus1796c2e2016-03-29 10:57:24 +0000192 <Type Name="clang::TemplateTypeParmDecl">
Mike Spertus819fb782016-05-24 01:47:41 +0000193 <DisplayString IncludeView="TorC" Condition="Typename">typename</DisplayString>
194 <DisplayString IncludeView="TorC" Condition="!Typename">class</DisplayString>
Mike Spertusb25ced72019-01-05 23:15:30 +0000195 <DisplayString IncludeView="MaybeEllipses" Condition="TypeForDecl == nullptr">(not yet known if parameter pack) </DisplayString>
196 <DisplayString IncludeView="MaybeEllipses" Condition="((TemplateTypeParmType *)(((clang::ExtQualsTypeCommonBase *)(((uintptr_t)TypeForDecl->CanonicalType.Value.Value) &amp; ~(uintptr_t)((1 &lt;&lt; 4) - 1)))-&gt;BaseType))->CanTTPTInfo.ParameterPack">...</DisplayString>
197 <DisplayString IncludeView="MaybeEllipses" Condition="!((TemplateTypeParmType *)(((clang::ExtQualsTypeCommonBase *)(((uintptr_t)TypeForDecl->CanonicalType.Value.Value) &amp; ~(uintptr_t)((1 &lt;&lt; 4) - 1)))-&gt;BaseType))->CanTTPTInfo.ParameterPack"></DisplayString>
Mike Spertus819fb782016-05-24 01:47:41 +0000198 <DisplayString>{*this,view(TorC)} {*this,view(MaybeEllipses)}{Name,view(cpp)}</DisplayString>
Mike Spertus1796c2e2016-03-29 10:57:24 +0000199 </Type>
Mike Spertus61c3f392016-03-31 06:09:56 +0000200 <Type Name="clang::TemplateDecl">
Mike Spertus1f506972019-06-17 16:12:45 +0000201 <DisplayString>template{TemplateParams,na} {*TemplatedDecl};</DisplayString>
202 <Expand>
203 <Item Name="TemplateParams">TemplateParams,na</Item>
204 <Item Name="TemplatedDecl">TemplatedDecl,na</Item>
205 </Expand>
Mike Spertus4f95b9c2019-01-05 17:01:34 +0000206 </Type>
Mike Spertus08c699a2019-06-23 01:15:48 +0000207 <!-- Unfortunately, visualization of PointerIntPair<PointerUnion> doesn't work due to limitations in natvis, so we will barehad it-->
208 <Type Name="clang::TypedefNameDecl">
209 <DisplayString Condition="(MaybeModedTInfo.Value &amp; 4)==0" IncludeView="type">{(clang::TypeSourceInfo *)(MaybeModedTInfo.Value &amp; ~7LL),view(cpp)na}</DisplayString>
210 <DisplayString Condition="(MaybeModedTInfo.Value &amp; 4)!=0" IncludeView="type">{(clang::TypedefNameDecl::ModedTInfo *)(MaybeModedTInfo.Value &amp; ~7LL),view(cpp)na}</DisplayString>
211 <DisplayString IncludeView="name">{(TypeDecl *)this,view(cpp)nand}</DisplayString>
212 <DisplayString>typedef {this,view(type)na} {this,view(name)};</DisplayString>
213 <Expand>
214 <Item Name="IsTransparent" Condition="(MaybeModedTInfo.Value &amp; 1)==0">"Not yet calculated",sb</Item>
215 <Item Name="IsTransparent" Condition="(MaybeModedTInfo.Value &amp; 1)!=0">(bool)(MaybeModedTInfo.Value &amp; 2)</Item>
216 <Item Name="TypeSourceInfo" Condition="(MaybeModedTInfo.Value &amp; 4)==0">(clang::TypeSourceInfo *)(MaybeModedTInfo.Value &amp; ~7LL)</Item>
217 <Item Name="ModedTInfo" Condition="(MaybeModedTInfo.Value &amp; 4)!=0">(clang::TypedefNameDecl::ModedTInfo *)(MaybeModedTInfo.Value &amp; ~7LL)</Item>
218 <ExpandedItem>(TypeDecl *)this,nd</ExpandedItem>
219 </Expand>
220 </Type>
221 <Type Name="clang::TypeAliasDecl">
222 <DisplayString>using {(TypedefNameDecl *)this,view(name)nand} = {(TypedefNameDecl *)this,view(type)nand}</DisplayString>
223 </Type>
224
Mike Spertus4f95b9c2019-01-05 17:01:34 +0000225 <Type Name="clang::TemplateName">
Mike Spertus1f506972019-06-17 16:12:45 +0000226 <DisplayString>{Storage,na}</DisplayString>
Mike Spertus4f95b9c2019-01-05 17:01:34 +0000227 <Expand>
228 <ExpandedItem>Storage</ExpandedItem>
229 </Expand>
Mike Spertus61c3f392016-03-31 06:09:56 +0000230 </Type>
Mike Spertus01b14bf2016-03-16 14:27:50 +0000231 <Type Name="clang::NamedDecl" >
232 <DisplayString IncludeView="cpp">{Name,view(cpp)}</DisplayString>
233 <DisplayString>{Name}</DisplayString>
234 </Type>
235 <Type Name="clang::TagDecl">
Mike Spertus32e9a322016-03-22 02:29:22 +0000236 <DisplayString IncludeView="implicit" Condition="Implicit">implicit{" ",sb}</DisplayString>
237 <DisplayString IncludeView="implicit"></DisplayString>
Mike Spertus4fc8c442019-01-06 04:58:48 +0000238 <DisplayString IncludeView="modifiers">{*this,view(implicit)nd}</DisplayString>
Mike Spertus32e9a322016-03-22 02:29:22 +0000239 <DisplayString IncludeView="cpp">{*this,view(modifiers)}{Name,view(cpp)}</DisplayString>
Mike Spertus4fc8c442019-01-06 04:58:48 +0000240 <DisplayString Condition="TagDeclBits.TagDeclKind==clang::TagTypeKind::TTK_Struct">{*this,view(modifiers)nd}struct {Name,view(cpp)}</DisplayString>
241 <DisplayString Condition="TagDeclBits.TagDeclKind==clang::TagTypeKind::TTK_Interface">{*this,view(modifiers)nd}interface {Name,view(cpp)}</DisplayString>
242 <DisplayString Condition="TagDeclBits.TagDeclKind==clang::TagTypeKind::TTK_Union">{*this,view(modifiers)nd}union {Name,view(cpp)}</DisplayString>
243 <DisplayString Condition="TagDeclBits.TagDeclKind==clang::TagTypeKind::TTK_Class">{*this,view(modifiers)nd}class {Name,view(cpp)}</DisplayString>
244 <DisplayString Condition="TagDeclBits.TagDeclKind==clang::TagTypeKind::TTK_Enum">{*this,view(modifiers)nd}enum {Name,view(cpp)}</DisplayString>
Mike Spertusa814d3d2016-03-18 16:38:34 +0000245 <Expand>
246 <ExpandedItem>(clang::DeclContext *)this</ExpandedItem>
247 </Expand>
Mike Spertus01b14bf2016-03-16 14:27:50 +0000248 </Type>
Mike Spertus288daa52016-03-08 16:14:23 +0000249 <Type Name="clang::TagType">
Mike Spertus1f506972019-06-17 16:12:45 +0000250 <DisplayString IncludeView="cpp">{decl,view(cpp)na}</DisplayString>
Mike Spertus288daa52016-03-08 16:14:23 +0000251 <DisplayString>{*decl}</DisplayString>
252 <Expand>
Mike Spertus01b14bf2016-03-16 14:27:50 +0000253 <ExpandedItem>*(clang::Type *)this, view(cmn)</ExpandedItem>
Mike Spertus288daa52016-03-08 16:14:23 +0000254 <Item Name="decl">decl</Item>
255 </Expand>
256 </Type>
257 <Type Name="clang::RecordType">
Mike Spertus1f506972019-06-17 16:12:45 +0000258 <DisplayString IncludeView="cpp">{(clang::TagType *)this,view(cpp)na}</DisplayString>
259 <DisplayString>{(clang::TagType *)this,na}</DisplayString>
Mike Spertus288daa52016-03-08 16:14:23 +0000260 <Expand>
261 <Item Name="TagType">*(clang::TagType *)this</Item>
262 </Expand>
263 </Type>
264 <Type Name="clang::SubstTemplateTypeParmType">
Mike Spertus01b14bf2016-03-16 14:27:50 +0000265 <DisplayString>{*Replaced,view(cpp)} &lt;= {CanonicalType,view(cpp)}</DisplayString>
Mike Spertus288daa52016-03-08 16:14:23 +0000266 <Expand>
Mike Spertus01b14bf2016-03-16 14:27:50 +0000267 <ExpandedItem>*(clang::Type *)this, view(cmn)</ExpandedItem>
Mike Spertus288daa52016-03-08 16:14:23 +0000268 <Item Name="Replaced">*Replaced</Item>
269 </Expand>
270 </Type>
Mike Spertus7f2de8e2016-03-20 00:20:43 +0000271 <!-- We only show the first 5 parameter types in the display string (can't figure out how to loop in DisplayString)
272 but the expansion has all parameters -->
273 <Type Name="clang::FunctionProtoType">
Mike Spertus1f506972019-06-17 16:12:45 +0000274 <DisplayString IncludeView="left" Condition="FunctionTypeBits.HasTrailingReturn"></DisplayString>
275 <DisplayString IncludeView="left">{ResultType,view(cpp)}</DisplayString>
Aaron Ballman1455d4e2018-12-18 21:42:20 +0000276 <DisplayString IncludeView="parm0" Condition="FunctionTypeBits.NumParams==0"></DisplayString>
Mike Spertus7f2de8e2016-03-20 00:20:43 +0000277 <DisplayString IncludeView="parm0">{*(clang::QualType *)(this+1),view(cpp)}{*this,view(parm1)}</DisplayString>
Aaron Ballman1455d4e2018-12-18 21:42:20 +0000278 <DisplayString IncludeView="parm1" Condition="FunctionTypeBits.NumParams==1"></DisplayString>
Mike Spertus7f2de8e2016-03-20 00:20:43 +0000279 <DisplayString IncludeView="parm1">, {*((clang::QualType *)(this+1)+1),view(cpp)}{*this,view(parm2)}</DisplayString>
Aaron Ballman1455d4e2018-12-18 21:42:20 +0000280 <DisplayString IncludeView="parm2" Condition="FunctionTypeBits.NumParams==2"></DisplayString>
Mike Spertus7f2de8e2016-03-20 00:20:43 +0000281 <DisplayString IncludeView="parm2">, {*((clang::QualType *)(this+1)+2),view(cpp)}{*this,view(parm3)}</DisplayString>
Aaron Ballman1455d4e2018-12-18 21:42:20 +0000282 <DisplayString IncludeView="parm3" Condition="FunctionTypeBits.NumParams==3"></DisplayString>
Mike Spertus7f2de8e2016-03-20 00:20:43 +0000283 <DisplayString IncludeView="parm3">, {*((clang::QualType *)(this+1)+3),view(cpp)}{*this,view(parm4)}</DisplayString>
Aaron Ballman1455d4e2018-12-18 21:42:20 +0000284 <DisplayString IncludeView="parm4" Condition="FunctionTypeBits.NumParams==4"></DisplayString>
Mike Spertus7f2de8e2016-03-20 00:20:43 +0000285 <DisplayString IncludeView="parm4">, {*((clang::QualType *)(this+1)+4),view(cpp)}{*this,view(parm5)}</DisplayString>
Aaron Ballman1455d4e2018-12-18 21:42:20 +0000286 <DisplayString IncludeView="parm5" Condition="FunctionTypeBits.NumParams==5"></DisplayString>
Mike Spertus7f2de8e2016-03-20 00:20:43 +0000287 <DisplayString IncludeView="parm5">, /* expand for more params */</DisplayString>
Mike Spertus1f506972019-06-17 16:12:45 +0000288 <DisplayString IncludeView="right" Condition="FunctionTypeBits.HasTrailingReturn">({*this,view(parm0)}) -&gt; {ResultType,view(cpp)}</DisplayString>
289 <DisplayString IncludeView="right">({*this,view(parm0)})</DisplayString>
290 <DisplayString>{this,view(left)na}{this,view(right)na}</DisplayString>
Mike Spertus7f2de8e2016-03-20 00:20:43 +0000291 <Expand>
292 <Item Name="ReturnType">ResultType</Item>
293 <Synthetic Name="Parameter Types">
294 <DisplayString>{*this,view(parm0)}</DisplayString>
295 <Expand>
296 <ArrayItems>
Aaron Ballman1455d4e2018-12-18 21:42:20 +0000297 <Size>FunctionTypeBits.NumParams</Size>
Mike Spertus7f2de8e2016-03-20 00:20:43 +0000298 <ValuePointer>(clang::QualType *)(this+1)</ValuePointer>
299 </ArrayItems>
300 </Expand>
301 </Synthetic>
302 <ExpandedItem>*(clang::Type *)this, view(cmn)</ExpandedItem>
303 </Expand>
304 </Type>
Mike Spertus1f506972019-06-17 16:12:45 +0000305
306 <Type Name="clang::AdjustedType">
307 <DisplayString>{OriginalTy} adjusted to {AdjustedTy}</DisplayString>
308 <Expand>
309 <Item Name="OriginalTy">OriginalTy</Item>
310 <Item Name="AdjustedTy">AdjustedTy</Item>
311 </Expand>
312 </Type>
313 <Type Name="clang::DecayedType">
314 <DisplayString IncludeView="left">{OriginalTy,view(left)}</DisplayString>
315 <DisplayString IncludeView="right">{OriginalTy,view(right)}</DisplayString>
316 <DisplayString>{OriginalTy}</DisplayString>
317 <Expand>
318 <ExpandedItem>(clang::AdjustedType *)this</ExpandedItem>
319 </Expand>
320 </Type>
Mike Spertus288daa52016-03-08 16:14:23 +0000321 <Type Name="clang::TemplateTypeParmType">
Mike Spertus1f506972019-06-17 16:12:45 +0000322 <DisplayString IncludeView="cpp" Condition="CanonicalType.Value.Value != this">{TTPDecl->Name,view(cpp)}</DisplayString>
Mike Spertusb25ced72019-01-05 23:15:30 +0000323 <DisplayString Condition="CanonicalType.Value.Value != this">Non-canonical: {*TTPDecl}</DisplayString>
324 <DisplayString>Canonical: {CanTTPTInfo}</DisplayString>
325 <Expand>
326 </Expand>
Aaron Ballman9d214542015-09-29 17:32:36 +0000327 </Type>
Mike Spertusa9ab71c2016-03-29 09:24:45 +0000328 <Type Name="clang::InjectedClassNameType">
329 <DisplayString>{*Decl,view(cpp)}</DisplayString>
330 <Expand>
331 <Item Name="Decl">Decl</Item>
332 <Item Name="InjectedType">InjectedType</Item>
333 <ExpandedItem>*(clang::Type *)this, view(cmn)</ExpandedItem>
334 </Expand>
335 </Type>
Mike Spertus08c699a2019-06-23 01:15:48 +0000336 <Type Name="clang::DependentNameType">
337 <DisplayString>{NNS}{Name,view(cpp)na}</DisplayString>
338 <Expand>
339 <Item Name="NNS">NNS</Item>
340 <Item Name="Name">Name</Item>
341 <ExpandedItem>*(clang::Type *)this, view(cmn)</ExpandedItem>
342 </Expand>
343 </Type>
344 <Type Name="clang::NestedNameSpecifier">
345 <DisplayString Condition="!Specifier"></DisplayString>
346 <DisplayString Condition="((Prefix.Value&gt;&gt;1)&amp;3) == 0">{(IdentifierInfo*)Specifier,view(cpp)na}::</DisplayString>
347 <DisplayString Condition="((Prefix.Value&gt;&gt;1)&amp;3) == 1">{(NamedDecl*)Specifier,view(cpp)na}::</DisplayString>
348 <DisplayString Condition="((Prefix.Value&gt;&gt;1)&amp;2) == 2">{(Type*)Specifier,view(cpp)na}::</DisplayString>
349 <Expand>
350 <Item Name="Kind">(NestedNameSpecifier::StoredSpecifierKind)((Prefix.Value&gt;&gt;1)&amp;3)</Item>
351 </Expand>
352 </Type>
Mike Spertusce334cf2016-06-12 22:54:46 +0000353 <Type Name="clang::PackExpansionType">
354 <DisplayString>{Pattern}</DisplayString>
355 <Expand>
356 <Item Name="Pattern">Pattern</Item>
357 <Item Name="NumExpansions">NumExpansions</Item>
358 <ExpandedItem>*(clang::Type *)this, view(cmn)</ExpandedItem>
359 </Expand>
360 </Type>
Aaron Ballman9d214542015-09-29 17:32:36 +0000361 <Type Name="clang::QualType">
Mike Spertus8758c9d2016-03-24 00:38:54 +0000362 <!-- When VS2013 support is deprecated, change 4 to clang::TypeAlignmentInBits (not properly recognized by VS2013) -->
363 <DisplayString IncludeView="poly">{*((clang::ExtQualsTypeCommonBase *)(((uintptr_t)Value.Value) &amp; ~(uintptr_t)((1 &lt;&lt; 4) - 1)))-&gt;BaseType,view(poly)}{*this,view(fastQuals)}</DisplayString>
364 <DisplayString IncludeView="cpp">{*((clang::ExtQualsTypeCommonBase *)(((uintptr_t)Value.Value) &amp; ~(uintptr_t)((1 &lt;&lt; 4) - 1)))-&gt;BaseType,view(cpp)}{*this,view(fastQuals)}</DisplayString>
Mike Spertus1f506972019-06-17 16:12:45 +0000365 <DisplayString IncludeView="left">{*((clang::ExtQualsTypeCommonBase *)(((uintptr_t)Value.Value) &amp; ~(uintptr_t)((1 &lt;&lt; 4) - 1)))-&gt;BaseType,view(left)}{*this,view(fastQuals)}</DisplayString>
366 <DisplayString IncludeView="right">{*((clang::ExtQualsTypeCommonBase *)(((uintptr_t)Value.Value) &amp; ~(uintptr_t)((1 &lt;&lt; 4) - 1)))-&gt;BaseType,view(right)}{*this,view(fastQuals)}</DisplayString>
Mike Spertus8758c9d2016-03-24 00:38:54 +0000367 <!-- For the Fast Qualifiers, it is simpler (and probably more efficient) just to list all 8 cases than create
368 views for each qualifier. TODO: Non-fast qualifiers -->
369 <DisplayString IncludeView="fastQuals" Condition="(Value.Value &amp; 15)==0"></DisplayString>
370 <DisplayString IncludeView="fastQuals" Condition="(Value.Value &amp; 15)==1">{" ",sb}const</DisplayString>
371 <DisplayString IncludeView="fastQuals" Condition="(Value.Value &amp; 15)==2">{" ",sb}restrict</DisplayString>
372 <DisplayString IncludeView="fastQuals" Condition="(Value.Value &amp; 15)==3">{" ",sb}const restrict</DisplayString>
373 <DisplayString IncludeView="fastQuals" Condition="(Value.Value &amp; 15)==4">{" ",sb}volatile</DisplayString>
374 <DisplayString IncludeView="fastQuals" Condition="(Value.Value &amp; 15)==5">{" ",sb}const volatile</DisplayString>
375 <DisplayString IncludeView="fastQuals" Condition="(Value.Value &amp; 15)==6">{" ",sb}volatile restrict</DisplayString>
376 <DisplayString IncludeView="fastQuals" Condition="(Value.Value &amp; 15)==7">{" ",sb}const volatile restrict</DisplayString>
377 <DisplayString IncludeView="fastQuals">Cannot visualize non-fast qualifiers</DisplayString>
Mike Spertusb25ced72019-01-05 23:15:30 +0000378 <DisplayString Condition="(uintptr_t)Value.Value == 0">Null</DisplayString>
Mike Spertus1f506972019-06-17 16:12:45 +0000379 <DisplayString>{((clang::ExtQualsTypeCommonBase *)(((uintptr_t)Value.Value) &amp; ~(uintptr_t)((1 &lt;&lt; 4) - 1)))-&gt;BaseType,na}{*this,view(fastQuals)}</DisplayString>
Mike Spertus288daa52016-03-08 16:14:23 +0000380 <Expand>
Mike Spertus8758c9d2016-03-24 00:38:54 +0000381 <Item Name="Fast Quals">*this,view(fastQuals)</Item>
Mike Spertus1f506972019-06-17 16:12:45 +0000382 <ExpandedItem>((clang::ExtQualsTypeCommonBase *)(((uintptr_t)Value.Value) &amp; ~(uintptr_t)((1 &lt;&lt; 4) - 1)))-&gt;BaseType</ExpandedItem>
Mike Spertus288daa52016-03-08 16:14:23 +0000383 </Expand>
384 </Type>
Mike Spertus897711f2016-06-11 20:15:19 +0000385 <Type Name="clang::LocInfoType">
386 <DisplayString>{*DeclInfo}</DisplayString>
387 <Expand>
388 <Item Name="DeclInfo">DeclInfo</Item>
389 <ExpandedItem>*(clang::Type *)this, view(cmn)</ExpandedItem>
390 </Expand>
391 </Type>
392 <Type Name="clang::TypeSourceInfo">
Mike Spertus08c699a2019-06-23 01:15:48 +0000393 <DisplayString IncludeView="cpp">{Ty,view(cpp)}</DisplayString>
Mike Spertus897711f2016-06-11 20:15:19 +0000394 <DisplayString>{Ty}</DisplayString>
Mike Spertus08c699a2019-06-23 01:15:48 +0000395 <Expand>
396 <ExpandedItem>Ty</ExpandedItem>
397 </Expand>
Mike Spertus897711f2016-06-11 20:15:19 +0000398 </Type>
Mike Spertus288daa52016-03-08 16:14:23 +0000399 <Type Name="clang::TemplateArgumentLoc">
400 <DisplayString>{Argument}</DisplayString>
401 <Expand>
402 <ExpandedItem>Argument</ExpandedItem>
403 </Expand>
404 </Type>
405 <Type Name="clang::TemplateArgument">
Mike Spertus603bbfc2016-06-06 17:08:32 +0000406 <DisplayString IncludeView="cpp" Condition="Integer.Kind == clang::TemplateArgument::ArgKind::Type">{*(clang::QualType *)&amp;TypeOrValue.V,view(cpp)}</DisplayString>
407 <DisplayString Condition="Integer.Kind == clang::TemplateArgument::ArgKind::Type">{(clang::TemplateArgument::ArgKind)TypeOrValue.Kind,en} template argument: {*(clang::QualType *)&amp;TypeOrValue.V}</DisplayString>
408 <DisplayString IncludeView="arg0" Condition="Args.NumArgs==0"></DisplayString>
409 <DisplayString IncludeView="arg0">{Args.Args[0]}{*this,view(arg1)}</DisplayString>
410 <DisplayString IncludeView="arg1" Condition="Args.NumArgs==1"></DisplayString>
411 <DisplayString IncludeView="arg1">, {Args.Args[1]}{*this,view(arg2)}</DisplayString>
412 <DisplayString IncludeView="arg2" Condition="Args.NumArgs==2"></DisplayString>
413 <DisplayString IncludeView="arg2">, {Args.Args[2]}, ...</DisplayString>
414 <DisplayString IncludeView="arg0cpp" Condition="Args.NumArgs==0"></DisplayString>
415 <DisplayString IncludeView="arg0cpp">{Args.Args[0],view(cpp)}{*this,view(arg1cpp)}</DisplayString>
416 <DisplayString IncludeView="arg1cpp" Condition="Args.NumArgs==1"></DisplayString>
417 <DisplayString IncludeView="arg1cpp">, {Args.Args[1],view(cpp)}{*this,view(arg2cpp)}</DisplayString>
418 <DisplayString IncludeView="arg2cpp" Condition="Args.NumArgs==2"></DisplayString>
419 <DisplayString IncludeView="arg2cpp">, {Args.Args[2],view(cpp)}, ...</DisplayString>
420 <DisplayString IncludeView="cpp" Condition="Integer.Kind == clang::TemplateArgument::ArgKind::Pack">{*this,view(arg0cpp)}</DisplayString>
421 <DisplayString Condition="Integer.Kind == clang::TemplateArgument::ArgKind::Pack">{*this,view(arg0)}</DisplayString>
Mike Spertus64aa76d2016-05-23 22:27:44 +0000422 <DisplayString>{(clang::TemplateArgument::ArgKind)TypeOrValue.Kind,en}</DisplayString>
Mike Spertus288daa52016-03-08 16:14:23 +0000423 <Expand>
424 <Item Name="QualType" Condition="Integer.Kind == clang::TemplateArgument::ArgKind::Type">*(clang::QualType *)&amp;TypeOrValue.V</Item>
Mike Spertus64aa76d2016-05-23 22:27:44 +0000425 <ArrayItems Condition="Integer.Kind == clang::TemplateArgument::ArgKind::Pack">
426 <Size>Args.NumArgs</Size>
427 <ValuePointer>Args.Args</ValuePointer>
428 </ArrayItems>
Mike Spertus288daa52016-03-08 16:14:23 +0000429 <!-- TODO: Other kinds-->
430 </Expand>
431 </Type>
Mike Spertus603bbfc2016-06-06 17:08:32 +0000432 <Type Name="clang::TemplateArgumentList">
433 <DisplayString IncludeView="arg0" Condition="NumArguments==0"></DisplayString>
434 <DisplayString IncludeView="arg0">{Arguments[0],view(cpp)}{*this,view(arg1)}</DisplayString>
435 <DisplayString IncludeView="arg1" Condition="NumArguments==1"></DisplayString>
436 <DisplayString IncludeView="arg1">, {Arguments[1],view(cpp)}{*this,view(arg2)}</DisplayString>
437 <DisplayString IncludeView="arg2" Condition="NumArguments==2"></DisplayString>
Mike Spertus1f56e992016-06-06 21:41:20 +0000438 <DisplayString IncludeView="arg2">, {Arguments[1],view(cpp)}, ...</DisplayString>
Mike Spertus603bbfc2016-06-06 17:08:32 +0000439 <DisplayString>&lt;{*this,view(arg0)}&gt;</DisplayString>
440 <Expand>
441 <Item Name="NumArguments">NumArguments</Item>
442 <ArrayItems>
443 <Size>NumArguments</Size>
444 <ValuePointer>Arguments</ValuePointer>
445 </ArrayItems>
446 </Expand>
447 </Type>
Mike Spertus1f56e992016-06-06 21:41:20 +0000448 <Type Name="llvm::ArrayRef&lt;clang::TemplateArgument&gt;">
449 <DisplayString IncludeView="arg0" Condition="Length==0"></DisplayString>
450 <DisplayString IncludeView="arg0">{Data[0],view(cpp)}{*this,view(arg1)}</DisplayString>
451 <DisplayString IncludeView="arg1" Condition="Length==1"></DisplayString>
452 <DisplayString IncludeView="arg1">, {Data[1],view(cpp)}{*this,view(arg2)}</DisplayString>
453 <DisplayString IncludeView="arg2" Condition="Length==2"></DisplayString>
454 <DisplayString IncludeView="arg2">, {Data[2],view(cpp)}, ...</DisplayString>
455 <DisplayString>&lt;{*this,view(arg0)}&gt;</DisplayString>
456 </Type>
457 <Type Name="clang::MultiLevelTemplateArgumentList">
458 <DisplayString IncludeView="level0" Condition="(llvm::ArrayRef&lt;clang::TemplateArgument&gt; *)TemplateArgumentLists.EndX - (llvm::ArrayRef&lt;clang::TemplateArgument&gt; *)TemplateArgumentLists.BeginX==0"></DisplayString>
459 <DisplayString IncludeView="level0">{((llvm::ArrayRef&lt;clang::TemplateArgument&gt; *)TemplateArgumentLists.BeginX)[0],view(cpp)}{*this,view(level1)}</DisplayString>
460 <DisplayString IncludeView="level1" Condition="(llvm::ArrayRef&lt;clang::TemplateArgument&gt; *)TemplateArgumentLists.EndX - (llvm::ArrayRef&lt;clang::TemplateArgument&gt; *)TemplateArgumentLists.BeginX==1"></DisplayString>
461 <DisplayString IncludeView="level1">::{((llvm::ArrayRef&lt;clang::TemplateArgument&gt; *)TemplateArgumentLists.BeginX)[1],view(cpp)}{*this,view(level2)}</DisplayString>
462 <DisplayString IncludeView="level2" Condition="(llvm::ArrayRef&lt;clang::TemplateArgument&gt; *)TemplateArgumentLists.EndX - (llvm::ArrayRef&lt;clang::TemplateArgument&gt; *)TemplateArgumentLists.BeginX==2"></DisplayString>
463 <DisplayString IncludeView="level2">::{((llvm::ArrayRef&lt;clang::TemplateArgument&gt; *)TemplateArgumentLists.BeginX)[2],view(cpp)}, ...</DisplayString>
464 <DisplayString>{*this,view(level0)}</DisplayString>
465 <Expand>
466 <Item Name="TemplateList">TemplateArgumentLists</Item>
467 </Expand>
468 </Type>
Mike Spertus47f48902016-06-12 22:21:56 +0000469 <Type Name="clang::ParsedTemplateArgument">
470 <DisplayString Condition="Kind==clang::ParsedTemplateArgument::Type">Type template argument: {*(clang::QualType *)Arg}</DisplayString>
471 <DisplayString Condition="Kind==clang::ParsedTemplateArgument::NonType">Non-type template argument: {*(clang::Expr *)Arg}</DisplayString>
472 <DisplayString Condition="Kind==clang::ParsedTemplateArgument::Template">Template template argument: {*(clang::TemplateName *)Arg</DisplayString>
473 <Expand>
474 <Item Name="Kind">Kind,en</Item>
475 <Item Name="Arg" Condition="Kind==clang::ParsedTemplateArgument::Type">(clang::QualType *)Arg</Item>
476 <Item Name="Arg" Condition="Kind==clang::ParsedTemplateArgument::NonType">(clang::Expr *)Arg</Item>
477 <Item Name="Arg" Condition="Kind==clang::ParsedTemplateArgument::Template">(clang::TemplateName *)Arg</Item>
478 </Expand>
479 </Type>
Mike Spertus1d051ee2016-03-20 00:32:30 +0000480 <!-- Builtin types that have C++ keywords are manually displayed as that keyword. Otherwise, just use the enum name -->
Mike Spertus288daa52016-03-08 16:14:23 +0000481 <Type Name="clang::BuiltinType">
Mike Spertus1d051ee2016-03-20 00:32:30 +0000482 <DisplayString Condition="BuiltinTypeBits.Kind==clang::BuiltinType::Void">void</DisplayString>
483 <DisplayString Condition="BuiltinTypeBits.Kind==clang::BuiltinType::Bool">bool</DisplayString>
484 <DisplayString Condition="BuiltinTypeBits.Kind==clang::BuiltinType::Char_U">char</DisplayString>
485 <DisplayString Condition="BuiltinTypeBits.Kind==clang::BuiltinType::UChar">unsigned char</DisplayString>
486 <DisplayString Condition="BuiltinTypeBits.Kind==clang::BuiltinType::WChar_U">wchar_t</DisplayString>
487 <DisplayString Condition="BuiltinTypeBits.Kind==clang::BuiltinType::Char16">char16_t</DisplayString>
488 <DisplayString Condition="BuiltinTypeBits.Kind==clang::BuiltinType::Char32">char32_t</DisplayString>
489 <DisplayString Condition="BuiltinTypeBits.Kind==clang::BuiltinType::UShort">unsigned short</DisplayString>
490 <DisplayString Condition="BuiltinTypeBits.Kind==clang::BuiltinType::UInt">unsigned int</DisplayString>
491 <DisplayString Condition="BuiltinTypeBits.Kind==clang::BuiltinType::ULong">unsigned long</DisplayString>
492 <DisplayString Condition="BuiltinTypeBits.Kind==clang::BuiltinType::ULongLong">unsigned long long</DisplayString>
493 <DisplayString Condition="BuiltinTypeBits.Kind==clang::BuiltinType::UInt128">__uint128_t</DisplayString>
494 <DisplayString Condition="BuiltinTypeBits.Kind==clang::BuiltinType::Char_S">char</DisplayString>
495 <DisplayString Condition="BuiltinTypeBits.Kind==clang::BuiltinType::SChar">signed char</DisplayString>
496 <DisplayString Condition="BuiltinTypeBits.Kind==clang::BuiltinType::WChar_S">wchar_t</DisplayString>
497 <DisplayString Condition="BuiltinTypeBits.Kind==clang::BuiltinType::Short">short</DisplayString>
498 <DisplayString Condition="BuiltinTypeBits.Kind==clang::BuiltinType::Int">int</DisplayString>
499 <DisplayString Condition="BuiltinTypeBits.Kind==clang::BuiltinType::Long">long</DisplayString>
500 <DisplayString Condition="BuiltinTypeBits.Kind==clang::BuiltinType::LongLong">long long</DisplayString>
501 <DisplayString Condition="BuiltinTypeBits.Kind==clang::BuiltinType::Int128">__int128_t</DisplayString>
502 <DisplayString Condition="BuiltinTypeBits.Kind==clang::BuiltinType::Half">__fp16</DisplayString>
503 <DisplayString Condition="BuiltinTypeBits.Kind==clang::BuiltinType::Float">float</DisplayString>
504 <DisplayString Condition="BuiltinTypeBits.Kind==clang::BuiltinType::Double">double</DisplayString>
505 <DisplayString Condition="BuiltinTypeBits.Kind==clang::BuiltinType::LongDouble">long double</DisplayString>
506 <DisplayString Condition="BuiltinTypeBits.Kind==clang::BuiltinType::NullPtr">nullptr_t</DisplayString>
Mike Spertus288daa52016-03-08 16:14:23 +0000507 <DisplayString>{(clang::BuiltinType::Kind)BuiltinTypeBits.Kind, en}</DisplayString>
508 <Expand>
509 <Item Name="Kind">(clang::BuiltinType::Kind)BuiltinTypeBits.Kind</Item>
510 </Expand>
511 </Type>
Mike Spertus01b14bf2016-03-16 14:27:50 +0000512
Mike Spertus288daa52016-03-08 16:14:23 +0000513 <Type Name="clang::TemplateSpecializationType">
Mike Spertus1f506972019-06-17 16:12:45 +0000514 <DisplayString IncludeView="arg0" Condition="TemplateSpecializationTypeBits.NumArgs==0"></DisplayString>
Mike Spertus63e428f2016-04-01 03:31:43 +0000515 <DisplayString IncludeView="arg0">{((clang::TemplateArgument *)(this+1))[0],view(cpp)}{*this,view(arg1)}</DisplayString>
Mike Spertus1f506972019-06-17 16:12:45 +0000516 <DisplayString IncludeView="arg1" Condition="TemplateSpecializationTypeBits.NumArgs==1"></DisplayString>
Mike Spertus63e428f2016-04-01 03:31:43 +0000517 <DisplayString IncludeView="arg1">, {((clang::TemplateArgument *)(this+1))[1],view(cpp)}{*this,view(arg2)}</DisplayString>
Mike Spertus1f506972019-06-17 16:12:45 +0000518 <DisplayString IncludeView="arg2" Condition="TemplateSpecializationTypeBits.NumArgs==2"></DisplayString>
Mike Spertus63e428f2016-04-01 03:31:43 +0000519 <DisplayString IncludeView="arg2">, {((clang::TemplateArgument *)(this+1))[2],view(cpp)}{*this,view(arg3)}</DisplayString>
Mike Spertus1f506972019-06-17 16:12:45 +0000520 <DisplayString Condition="(Template.Storage.Val.Value &amp; 3) == 0">
521 {*((clang::TemplateDecl *)(Template.Storage.Val.Value))->TemplatedDecl,view(cpp)}&lt;{*this,view(arg0)}&gt;
Mike Spertus63e428f2016-04-01 03:31:43 +0000522 </DisplayString>
Mike Spertus1f506972019-06-17 16:12:45 +0000523 <DisplayString>Can't visualize this TemplateSpecializationType</DisplayString>
Mike Spertus63e428f2016-04-01 03:31:43 +0000524 <Expand>
525 <Item Name="Template">Template.Storage</Item>
526 <ArrayItems>
Mike Spertus1f506972019-06-17 16:12:45 +0000527 <Size>TemplateSpecializationTypeBits.NumArgs</Size>
Mike Spertus63e428f2016-04-01 03:31:43 +0000528 <ValuePointer>(clang::TemplateArgument *)(this+1)</ValuePointer>
529 </ArrayItems>
530 </Expand>
Aaron Ballman9d214542015-09-29 17:32:36 +0000531 </Type>
Mike Spertus4f95b9c2019-01-05 17:01:34 +0000532 <Type Name="clang::DeducedType">
533 <Expand>
534 <Item Name="isDeduced">(CanonicalType.Value.Value != this) || TypeBits.Dependent</Item>
535 <ExpandedItem>*(clang::Type *)this,view(cmn)</ExpandedItem>
536 </Expand>
537 </Type>
538 <Type Name="clang::DeducedTemplateSpecializationType">
Mike Spertus4fc8c442019-01-06 04:58:48 +0000539 <DisplayString Condition="(CanonicalType.Value.Value != this) || TypeBits.Dependent">{CanonicalType,view(cpp)}</DisplayString>
Mike Spertus4f95b9c2019-01-05 17:01:34 +0000540 <DisplayString>{Template}</DisplayString>
541 <Expand>
Mike Spertus4fc8c442019-01-06 04:58:48 +0000542 <Item Name="Template">Template</Item>
543 <Item Name="Deduced As" Condition="(CanonicalType.Value.Value != this) || TypeBits.Dependent">CanonicalType,view(cpp)</Item>
Mike Spertus4f95b9c2019-01-05 17:01:34 +0000544 <ExpandedItem>*(clang::DeducedType *)this</ExpandedItem>
Mike Spertus4fc8c442019-01-06 04:58:48 +0000545 <Item Name="Template">Template</Item>
546 </Expand>
547 </Type>
548 <Type Name="clang::ClassTemplateSpecializationDecl">
549 <DisplayString>{*(CXXRecordDecl *)this,nd}{*TemplateArgs}</DisplayString>
550 <Expand>
551 <ExpandedItem>(CXXRecordDecl *)this,nd</ExpandedItem>
552 <Item Name="TemplateArgs">TemplateArgs</Item>
Mike Spertus4f95b9c2019-01-05 17:01:34 +0000553 </Expand>
554 </Type>
Aaron Ballman83f197b2014-01-24 19:46:45 +0000555 <Type Name="clang::IdentifierInfo">
Mike Spertus01b14bf2016-03-16 14:27:50 +0000556 <DisplayString Condition="Entry != 0">{((llvm::StringMapEntry&lt;clang::IdentifierInfo *&gt;*)Entry)+1,sb}</DisplayString>
Aaron Ballman83f197b2014-01-24 19:46:45 +0000557 <Expand>
558 <Item Condition="Entry != 0" Name="[Identifier]">((llvm::StringMapEntry&lt;clang::IdentifierInfo *&gt;*)Entry)+1,s</Item>
559 <Item Name="Token Kind">(clang::tok::TokenKind)TokenID</Item>
560 </Expand>
561 </Type>
562 <Type Name="clang::DeclarationName">
Mike Spertus6fa3e592016-03-20 20:15:23 +0000563 <DisplayString Condition="Ptr == 0" IncludeView="cpp"></DisplayString>
Aaron Ballman83f197b2014-01-24 19:46:45 +0000564 <DisplayString Condition="Ptr == 0">Empty</DisplayString>
Mike Spertus01b14bf2016-03-16 14:27:50 +0000565 <DisplayString Condition="(Ptr &amp; PtrMask) == StoredIdentifier" IncludeView="cpp">{*(clang::IdentifierInfo *)(Ptr &amp; ~PtrMask)}</DisplayString>
Zachary Turnerdfa871b2014-06-26 16:26:42 +0000566 <DisplayString Condition="(Ptr &amp; PtrMask) == StoredIdentifier">{{Identifier ({*(clang::IdentifierInfo *)(Ptr &amp; ~PtrMask)})}}</DisplayString>
567 <DisplayString Condition="(Ptr &amp; PtrMask) == StoredObjCZeroArgSelector">{{ObjC Zero Arg Selector (*{(clang::IdentifierInfo *)(Ptr &amp; ~PtrMask)})}}</DisplayString>
568 <DisplayString Condition="(Ptr &amp; PtrMask) == StoredObjCOneArgSelector">{{ObjC One Arg Selector (*{(clang::IdentifierInfo *)(Ptr &amp; ~PtrMask)})}}</DisplayString>
Mike Spertusd0504792019-06-22 18:56:40 +0000569 <DisplayString Condition="(Ptr &amp; PtrMask) == StoredCXXConstructorName" IncludeView="cpp">{(clang::detail::CXXSpecialNameExtra *)(Ptr &amp; ~PtrMask),view(cpp)na}</DisplayString>
570 <DisplayString Condition="(Ptr &amp; PtrMask) == StoredCXXConstructorName">C++ Constructor {{{(clang::detail::CXXSpecialNameExtra *)(Ptr &amp; ~PtrMask),view(cpp)na}}}</DisplayString>
Aaron Ballman1455d4e2018-12-18 21:42:20 +0000571 <DisplayString Condition="(Ptr &amp; PtrMask) == StoredCXXDestructorName">C++ Destructor {{*(clang::detail::CXXSpecialNameExtra *)(Ptr &amp; ~PtrMask)}}</DisplayString>
572 <DisplayString Condition="(Ptr &amp; PtrMask) == StoredCXXConversionFunctionName">C++ Conversion function {{*(clang::detail::CXXSpecialNameExtra *)(Ptr &amp; ~PtrMask)}}</DisplayString>
573 <DisplayString Condition="(Ptr &amp; PtrMask) == StoredCXXOperatorName">C++ Operator {{*(clang::detail::CXXOperatorIdName *)(Ptr &amp; ~PtrMask)}}</DisplayString>
Mike Spertus32e9a322016-03-22 02:29:22 +0000574 <DisplayString Condition="(Ptr &amp; PtrMask) == StoredDeclarationNameExtra"
Aaron Ballman1455d4e2018-12-18 21:42:20 +0000575 IncludeView="cpp">{*(clang::detail::DeclarationNameExtra *)(Ptr &amp; ~PtrMask),view(cpp)}</DisplayString>
576 <DisplayString Condition="(Ptr &amp; PtrMask) == StoredDeclarationNameExtra">{{Extra ({*(clang::detail::DeclarationNameExtra *)(Ptr &amp; ~PtrMask)})}}</DisplayString>
Aaron Ballman83f197b2014-01-24 19:46:45 +0000577 <Expand>
Zachary Turnerdfa871b2014-06-26 16:26:42 +0000578 <Item Condition="(Ptr &amp; PtrMask) == StoredIdentifier" Name="[Identifier]">*(clang::IdentifierInfo *)(Ptr &amp; ~PtrMask)</Item>
579 <Item Condition="(Ptr &amp; PtrMask) == StoredObjCZeroArgSelector" Name="[ObjC Zero Arg Selector]">*(clang::IdentifierInfo *)(Ptr &amp; ~PtrMask)</Item>
580 <Item Condition="(Ptr &amp; PtrMask) == StoredObjCOneArgSelector" Name="[ObjC One Arg Selector]">*(clang::IdentifierInfo *)(Ptr &amp; ~PtrMask)</Item>
Aaron Ballman1455d4e2018-12-18 21:42:20 +0000581 <Item Condition="(Ptr &amp; PtrMask) == StoredCXXConstructorName" Name="[C++ Constructor]">*(clang::detail::CXXSpecialNameExtra *)(Ptr &amp; ~PtrMask)</Item>
582 <Item Condition="(Ptr &amp; PtrMask) == StoredCXXDestructorName" Name="[C++ Destructor]">*(clang::detail::CXXSpecialNameExtra *)(Ptr &amp; ~PtrMask)</Item>
583 <Item Condition="(Ptr &amp; PtrMask) == StoredCXXConversionFunctionName" Name="[C++ Conversion function]">*(clang::detail::CXXSpecialNameExtra *)(Ptr &amp; ~PtrMask)</Item>
584 <Item Condition="(Ptr &amp; PtrMask) == StoredCXXOperatorName" Name="[C++ Operator]">*(clang::detail::CXXOperatorIdName *)(Ptr &amp; ~PtrMask)</Item>
585 <Item Condition="(Ptr &amp; PtrMask) == StoredDeclarationNameExtra" Name="[Extra]">(clang::detail::DeclarationNameExtra *)(Ptr &amp; ~PtrMask)</Item>
Mike Spertus288daa52016-03-08 16:14:23 +0000586 </Expand>
587 </Type>
Aaron Ballman1455d4e2018-12-18 21:42:20 +0000588 <Type Name="clang::detail::DeclarationNameExtra">
Mike Spertus1f506972019-06-17 16:12:45 +0000589 <DisplayString Condition="ExtraKindOrNumArgs == CXXDeductionGuideName" IncludeView="cpp">{(NamedDecl *)(((CXXDeductionGuideNameExtra *)this)->Template),view(cpp)nand}</DisplayString>
Aaron Ballman1455d4e2018-12-18 21:42:20 +0000590 <DisplayString Condition="ExtraKindOrNumArgs == CXXDeductionGuideName">C++ Deduction guide</DisplayString>
591 <DisplayString Condition="ExtraKindOrNumArgs == CXXLiteralOperatorName">C++ Literal operator</DisplayString>
592 <DisplayString Condition="ExtraKindOrNumArgs == CXXUsingDirective">C++ Using directive</DisplayString>
593 <DisplayString>{(clang::detail::DeclarationNameExtra::ExtraKind)ExtraKindOrNumArgs,en}{" ",sb}{*this,view(cpp)}</DisplayString>
Mike Spertus32e9a322016-03-22 02:29:22 +0000594 </Type>
Mike Spertusd0504792019-06-22 18:56:40 +0000595 <Type Name="clang::detail::CXXSpecialNameExtra">
596 <DisplayString IncludeView="cpp">{Type,view(cpp)}</DisplayString>
597 <DisplayString>{Type}</DisplayString>
598 </Type>
Mike Spertus288daa52016-03-08 16:14:23 +0000599 <Type Name="clang::Token">
600 <DisplayString Condition="Kind != clang::tok::identifier">{(clang::tok::TokenKind)Kind,en}</DisplayString>
601 <DisplayString Condition="Kind == clang::tok::identifier">{{Identifier ({*(clang::IdentifierInfo *)(PtrData)})}}</DisplayString>
602 </Type>
603 <Type Name="clang::DeclSpec">
604 <DisplayString>[{(clang::DeclSpec::SCS)StorageClassSpec}], [{(clang::TypeSpecifierType)TypeSpecType}]</DisplayString>
Aaron Ballman83f197b2014-01-24 19:46:45 +0000605 </Type>
606 <Type Name="clang::PragmaHandler">
607 <DisplayString>{Name,s}</DisplayString>
608 </Type>
609 <Type Name="clang::FileEntry">
610 <DisplayString>{Name,s}</DisplayString>
611 </Type>
612 <Type Name="clang::DirectoryEntry">
613 <DisplayString>{Name,s}</DisplayString>
614 </Type>
Zachary Turnerdfa871b2014-06-26 16:26:42 +0000615 <Type Name="clang::VarDecl::VarDeclBitfields">
616 <Expand>
617 <Item Name="StorageClass">(clang::StorageClass)SClass</Item>
618 <Item Name="ThreadStorageClass">(clang::ThreadStorageClassSpecifier)TSCSpec</Item>
619 <Item Name="InitStyle">(clang::VarDecl::InitializationStyle)InitStyle</Item>
620 </Expand>
621 </Type>
Mike Spertus6fa3e592016-03-20 20:15:23 +0000622 <Type Name="clang::DeclaratorDecl">
Mike Spertus1f506972019-06-17 16:12:45 +0000623 <DisplayString>{DeclType,view(left)} {Name,view(cpp)}{DeclType,view(right)}</DisplayString>
Mike Spertus8a0a1d72016-06-07 00:27:37 +0000624 <Expand>
625 <Item Name="Name">Name</Item>
626 <Item Name="DeclType">DeclType</Item>
627 </Expand>
Mike Spertus6fa3e592016-03-20 20:15:23 +0000628 </Type>
Zachary Turnerdfa871b2014-06-26 16:26:42 +0000629 <Type Name="clang::VarDecl">
Mike Spertus1f506972019-06-17 16:12:45 +0000630 <DisplayString>{(DeclaratorDecl*)this,nand}</DisplayString>
Zachary Turnerdfa871b2014-06-26 16:26:42 +0000631 <Expand>
Mike Spertus1f506972019-06-17 16:12:45 +0000632 <ExpandedItem>(DeclaratorDecl*)this,nd</ExpandedItem>
Zachary Turnerdfa871b2014-06-26 16:26:42 +0000633 <Item Name="VarDeclBits">VarDeclBits</Item>
Mike Spertus6fa3e592016-03-20 20:15:23 +0000634 </Expand>
635 </Type>
636 <Type Name="clang::ParmVarDecl">
637 <DisplayString>{*(VarDecl*)this,nd}</DisplayString>
638 <Expand>
Zachary Turnerdfa871b2014-06-26 16:26:42 +0000639 <Item Name="ParmVarDeclBits">ParmVarDeclBits</Item>
Mike Spertus6fa3e592016-03-20 20:15:23 +0000640 <ExpandedItem>*(VarDecl*)this,nd</ExpandedItem>
641 </Expand>
642 </Type>
Mike Spertus1f506972019-06-17 16:12:45 +0000643 <Type Name="clang::CXXDeductionGuideDecl">
644 <DisplayString>{Name,view(cpp)nd}({(FunctionDecl*)this,view(parm0)nd}) -&gt; {((clang::FunctionProtoType *)((clang::ExtQualsTypeCommonBase *)(((uintptr_t)DeclType.Value.Value) &amp; ~15))-&gt;BaseType)->ResultType,view(cpp)}</DisplayString>
645 <Expand>
646 <ExpandedItem>(FunctionDecl*)this,nd</ExpandedItem>
647 </Expand>
648 </Type>
Mike Spertus6fa3e592016-03-20 20:15:23 +0000649 <Type Name="clang::FunctionDecl">
Mike Spertus1f506972019-06-17 16:12:45 +0000650 <DisplayString IncludeView="retType">{((clang::FunctionProtoType *)((clang::ExtQualsTypeCommonBase *)(((uintptr_t)DeclType.Value.Value) &amp; ~15))-&gt;BaseType)->ResultType,view(cpp)}</DisplayString>
Aaron Ballman1455d4e2018-12-18 21:42:20 +0000651 <DisplayString IncludeView="parm0" Condition="0 == ((clang::FunctionProtoType *)((clang::ExtQualsTypeCommonBase *)(((uintptr_t)DeclType.Value.Value) &amp; ~15))-&gt;BaseType)-&gt;FunctionTypeBits.NumParams"></DisplayString>
Mike Spertus1f506972019-06-17 16:12:45 +0000652 <DisplayString IncludeView="parm0">{ParamInfo[0],na}{*this,view(parm1)nd}</DisplayString>
Aaron Ballman1455d4e2018-12-18 21:42:20 +0000653 <DisplayString IncludeView="parm1" Condition="1 == ((clang::FunctionProtoType *)((clang::ExtQualsTypeCommonBase *)(((uintptr_t)DeclType.Value.Value) &amp; ~15))-&gt;BaseType)-&gt;FunctionTypeBits.NumParams"></DisplayString>
Mike Spertus1f506972019-06-17 16:12:45 +0000654 <DisplayString IncludeView="parm1">, {ParamInfo[1],na}{*this,view(parm2)nd}</DisplayString>
Aaron Ballman1455d4e2018-12-18 21:42:20 +0000655 <DisplayString IncludeView="parm2" Condition="2 == ((clang::FunctionProtoType *)((clang::ExtQualsTypeCommonBase *)(((uintptr_t)DeclType.Value.Value) &amp; ~15))-&gt;BaseType)-&gt;FunctionTypeBits.NumParams"></DisplayString>
Mike Spertus1f506972019-06-17 16:12:45 +0000656 <DisplayString IncludeView="parm2">, {ParamInfo[2],na}{*this,view(parm3)nd}</DisplayString>
Aaron Ballman1455d4e2018-12-18 21:42:20 +0000657 <DisplayString IncludeView="parm3" Condition="3 == ((clang::FunctionProtoType *)((clang::ExtQualsTypeCommonBase *)(((uintptr_t)DeclType.Value.Value) &amp; ~15))-&gt;BaseType)-&gt;FunctionTypeBits.NumParams"></DisplayString>
Mike Spertus1f506972019-06-17 16:12:45 +0000658 <DisplayString IncludeView="parm3">, {ParamInfo[3],na}{*this,view(parm4)nd}</DisplayString>
Aaron Ballman1455d4e2018-12-18 21:42:20 +0000659 <DisplayString IncludeView="parm4" Condition="4 == ((clang::FunctionProtoType *)((clang::ExtQualsTypeCommonBase *)(((uintptr_t)DeclType.Value.Value) &amp; ~15))-&gt;BaseType)-&gt;FunctionTypeBits.NumParams"></DisplayString>
Mike Spertus1f506972019-06-17 16:12:45 +0000660 <DisplayString IncludeView="parm4">, {ParamInfo[4],na}{*this,view(parm5)nd}</DisplayString>
Aaron Ballman1455d4e2018-12-18 21:42:20 +0000661 <DisplayString IncludeView="parm5" Condition="5 == ((clang::FunctionProtoType *)((clang::ExtQualsTypeCommonBase *)(((uintptr_t)DeclType.Value.Value) &amp; ~15))-&gt;BaseType)-&gt;FunctionTypeBits.NumParams"></DisplayString>
Mike Spertus6fa3e592016-03-20 20:15:23 +0000662 <DisplayString IncludeView="parm5">, /* expand for more params */</DisplayString>
Mike Spertus1f506972019-06-17 16:12:45 +0000663 <DisplayString Condition="((clang::FunctionProtoType *)((clang::ExtQualsTypeCommonBase *)(((uintptr_t)DeclType.Value.Value) &amp; ~15))-&gt;BaseType)-&gt;FunctionTypeBits.HasTrailingReturn">
664 auto {Name,view(cpp)nd}({*this,view(parm0)nd}) -&gt; {((clang::FunctionProtoType *)((clang::ExtQualsTypeCommonBase *)(((uintptr_t)DeclType.Value.Value) &amp; ~15))-&gt;BaseType)->ResultType,view(cpp)}
665 </DisplayString>
666 <DisplayString>{this,view(retType)nand} {Name,view(cpp)nd}({*this,view(parm0)nd})</DisplayString>
Mike Spertus6fa3e592016-03-20 20:15:23 +0000667 <Expand>
Mike Spertus1f506972019-06-17 16:12:45 +0000668 <ExpandedItem>(clang::DeclaratorDecl *)this,nd</ExpandedItem>
Mike Spertus32e9a322016-03-22 02:29:22 +0000669 <Item Name="ReturnType">*this,view(retType)nd</Item>
Mike Spertus6fa3e592016-03-20 20:15:23 +0000670 <Synthetic Name="Parameter Types">
Mike Spertus32e9a322016-03-22 02:29:22 +0000671 <DisplayString>{*this,view(parm0)nd}</DisplayString>
Mike Spertus6fa3e592016-03-20 20:15:23 +0000672 <Expand>
673 <ArrayItems>
Aaron Ballman1455d4e2018-12-18 21:42:20 +0000674 <Size>((clang::FunctionProtoType *)((clang::ExtQualsTypeCommonBase *)(((uintptr_t)DeclType.Value.Value) &amp; ~15))-&gt;BaseType)-&gt;FunctionTypeBits.NumParams</Size>
Mike Spertus6fa3e592016-03-20 20:15:23 +0000675 <ValuePointer>ParamInfo</ValuePointer>
676 </ArrayItems>
677 </Expand>
678 </Synthetic>
Zachary Turnerdfa871b2014-06-26 16:26:42 +0000679 </Expand>
680 </Type>
Mike Spertus288daa52016-03-08 16:14:23 +0000681 <Type Name="clang::OpaquePtr&lt;*&gt;">
Mike Spertus1f506972019-06-17 16:12:45 +0000682 <DisplayString>{*($T1*)&amp;Ptr}</DisplayString>
Mike Spertus288daa52016-03-08 16:14:23 +0000683 <Expand>
Mike Spertus1f506972019-06-17 16:12:45 +0000684 <ExpandedItem>($T1*)&amp;Ptr</ExpandedItem>
Mike Spertus288daa52016-03-08 16:14:23 +0000685 </Expand>
686 </Type>
Mike Spertus27c72d2f2016-06-13 04:02:35 +0000687 <Type Name="clang::UnionOpaquePtr&lt;*&gt;">
688 <DisplayString>{($T1 *)Ptr}</DisplayString>
689 <Expand>
690 <ExpandedItem>($T1 *)Ptr</ExpandedItem>
691 </Expand>
692 </Type>
Mike Spertus1796c2e2016-03-29 10:57:24 +0000693 <Type Name="clang::TemplateParameterList">
694 <DisplayString IncludeView="parm0" Condition="NumParams==0"></DisplayString>
695 <DisplayString IncludeView="parm0">{*((NamedDecl **)(this+1))[0],view(cpp)}{*this,view(parm1)}</DisplayString>
696 <DisplayString IncludeView="parm1" Condition="NumParams==1"></DisplayString>
697 <DisplayString IncludeView="parm1">, {*((NamedDecl **)(this+1))[1],view(cpp)}{*this,view(parm2)}</DisplayString>
698 <DisplayString IncludeView="parm2" Condition="NumParams==2"></DisplayString>
699 <DisplayString IncludeView="parm2">, {*((NamedDecl **)(this+1))[2],view(cpp)}{*this,view(parm3)}</DisplayString>
700 <DisplayString IncludeView="parm3" Condition="NumParams==3"></DisplayString>
701 <DisplayString IncludeView="parm3">, {*((NamedDecl **)(this+1))[3],view(cpp)}{*this,view(parm4)}</DisplayString>
702 <DisplayString IncludeView="parm4" Condition="NumParams==4"></DisplayString>
703 <DisplayString IncludeView="parm4">, {*((NamedDecl **)(this+1))[4],view(cpp)}{*this,view(parm5)}</DisplayString>
704 <DisplayString IncludeView="parm5" Condition="NumParams==5"></DisplayString>
705 <DisplayString IncludeView="parm5">, /* Expand for more params */</DisplayString>
706 <DisplayString>&lt;{*this,view(parm0)}&gt;</DisplayString>
707 <Expand>
708 <ArrayItems>
709 <Size>NumParams</Size>
710 <ValuePointer>(NamedDecl **)(this+1)</ValuePointer>
711 </ArrayItems>
712 </Expand>
713 </Type>
Mike Spertus5bf7fd82016-06-12 18:42:04 +0000714 <Type Name="clang::Stmt">
715 <DisplayString>{(clang::Stmt::StmtClass)StmtBits.sClass,en}</DisplayString>
716 <Expand>
717 <Item Name="Class">(clang::Stmt::StmtClass)StmtBits.sClass,en</Item>
718 </Expand>
719 </Type>
Mike Spertusb27ebb82016-05-16 01:36:09 +0000720 <Type Name="clang::Expr">
Mike Spertusef8c3082016-06-06 03:37:18 +0000721 <DisplayString>Expression of class {(clang::Stmt::StmtClass)StmtBits.sClass,en} and type {TR,view(cpp)}</DisplayString>
Mike Spertusb27ebb82016-05-16 01:36:09 +0000722 </Type>
Mike Spertus334aa072016-06-11 03:02:33 +0000723 <Type Name="clang::DeclAccessPair">
724 <DisplayString IncludeView="access" Condition="(Ptr&amp;Mask) == clang::AS_public">public</DisplayString>
725 <DisplayString IncludeView="access" Condition="(Ptr&amp;Mask) == clang::AS_protected">protected</DisplayString>
726 <DisplayString IncludeView="access" Condition="(Ptr&amp;Mask) == clang::AS_private">private</DisplayString>
727 <DisplayString IncludeView="access" Condition="(Ptr&amp;Mask) == clang::AS_none">b</DisplayString>
728 <DisplayString IncludeView="decl">{*(clang::NamedDecl *)(Ptr&amp;~Mask)}</DisplayString>
729 <DisplayString>{*this,view(access)} {*this,view(decl)}</DisplayString>
Mike Spertus75644aa2018-12-30 20:22:37 +0000730 <Expand>
731 <Item Name="access">(clang::AccessSpecifier)(Ptr&amp;Mask),en</Item>
732 <Item Name="decl">*(clang::NamedDecl *)(Ptr&amp;~Mask)</Item>
733 </Expand>
Mike Spertus334aa072016-06-11 03:02:33 +0000734 </Type>
Mike Spertus1f506972019-06-17 16:12:45 +0000735 <Type Name="clang::UnqualifiedId">
736 <DisplayString Condition="Kind==UnqualifiedIdKind::IK_Identifier">[IK_Identifier] {*Identifier}</DisplayString>
737 <DisplayString Condition="Kind==UnqualifiedIdKind::IK_OperatorFunctionId">[IK_OperatorFunctionId] {OperatorFunctionId}</DisplayString>
738 <DisplayString Condition="Kind==UnqualifiedIdKind::IK_ConversionFunctionId">[IK_ConversionFunctionId] {ConversionFunctionId}</DisplayString>
739 <DisplayString Condition="Kind==UnqualifiedIdKind::IK_ConstructorName">[IK_ConstructorName] {ConstructorName}</DisplayString>
740 <DisplayString Condition="Kind==UnqualifiedIdKind::IK_DestructorName">[IK_DestructorName] {DestructorName}</DisplayString>
741 <DisplayString Condition="Kind==UnqualifiedIdKind::IK_DeductionGuideName">[IK_DeductionGuideName] {TemplateName}</DisplayString>
742 <DisplayString Condition="Kind==UnqualifiedIdKind::IK_TemplateId">[IK_TemplateId] {TemplateId}</DisplayString>
743 <DisplayString Condition="Kind==UnqualifiedIdKind::IK_ConstructorTemplateId">[IK_ConstructorTemplateId] {TemplateId}</DisplayString>
744 <DisplayString>Kind</DisplayString>
745 <Expand>
746 <ExpandedItem Condition="Kind==UnqualifiedIdKind::IK_Identifier">Identifier</ExpandedItem>
747 <ExpandedItem Condition="Kind==UnqualifiedIdKind::IK_OperatorFunctionId">OperatorFunctionId</ExpandedItem>
748 <ExpandedItem Condition="Kind==UnqualifiedIdKind::IK_ConversionFunctionId">ConversionFunctionId</ExpandedItem>
749 <ExpandedItem Condition="Kind==UnqualifiedIdKind::IK_ConstructorName">ConstructorName</ExpandedItem>
750 <ExpandedItem Condition="Kind==UnqualifiedIdKind::IK_DestructorName">DestructorName</ExpandedItem>
751 <ExpandedItem Condition="Kind==UnqualifiedIdKind::IK_DeductionGuideName">TemplateName</ExpandedItem>
752 <ExpandedItem Condition="Kind==UnqualifiedIdKind::IK_TemplateId">TemplateId</ExpandedItem>
753 <ExpandedItem Condition="Kind==UnqualifiedIdKind::IK_ConstructorTemplateId">TemplateId</ExpandedItem>
754 </Expand>
755 </Type>
756 <Type Name="clang::DeclGroup">
757 <DisplayString>NumDecls={NumDecls}</DisplayString>
758 <Expand>
759 <ArrayItems>
760 <Size>NumDecls</Size>
761 <ValuePointer>(Decl **)(this+1)</ValuePointer>
762 </ArrayItems>
763 </Expand>
764 </Type>
765 <Type Name="clang::DeclGroupRef">
766 <DisplayString Condition="(Kind)((uintptr_t)D&amp;1)==SingleDeclKind">{*D}</DisplayString>
767 <DisplayString>{*(DeclGroup *)((uintptr_t)D&amp;~1)}</DisplayString>
768 <Expand>
769 <ExpandedItem Condition="(Kind)((uintptr_t)D&amp;1)==SingleDeclKind">D</ExpandedItem>
770 <ExpandedItem Condition="(Kind)((uintptr_t)D&amp;1)==DeclGroupKind">(DeclGroup *)((uintptr_t)D&amp;~1)</ExpandedItem>
771 </Expand>
772 </Type>
773 <Type Name="clang::Declarator">
774 <DisplayString>{DS} {Name}</DisplayString>
775 </Type>
Mike Spertus334aa072016-06-11 03:02:33 +0000776 <Type Name="clang::UnresolvedSet&lt;*&gt;">
777 <DisplayString>{Decls}</DisplayString>
778 <Expand>
779 <ExpandedItem>Decls</ExpandedItem>
780 </Expand>
781 </Type>
782 <Type Name="clang::LookupResult">
783 <DisplayString Condition="ResultKind == clang::LookupResult::Ambiguous">{Ambiguity,en}: {Decls}</DisplayString>
784 <DisplayString>{ResultKind,en}: {Decls}</DisplayString>
785 </Type>
Mike Spertus89073db2019-01-03 23:24:39 +0000786 <Type Name="clang::ActionResult&lt;*, 0&gt;">
Mike Spertus897711f2016-06-11 20:15:19 +0000787 <DisplayString Condition="Invalid">Invalid</DisplayString>
Mike Spertus89073db2019-01-03 23:24:39 +0000788 <DisplayString Condition="!*(void **)&amp;Val">Unset</DisplayString>
789 <DisplayString>{Val}</DisplayString>
Mike Spertus897711f2016-06-11 20:15:19 +0000790 </Type>
Mike Spertus89073db2019-01-03 23:24:39 +0000791 <Type Name="clang::ActionResult&lt;*, 1&gt;">
792 <DisplayString Condition="PtrWithInvalid&amp;1">Invalid</DisplayString>
793 <DisplayString Condition="!PtrWithInvalid">Unset</DisplayString>
794 <DisplayString>{($T1)(PtrWithInvalid&amp;~1)}</DisplayString>
Mike Spertus897711f2016-06-11 20:15:19 +0000795 <Expand>
796 <Item Name="Invalid">(bool)(PtrWithInvalid&amp;1)</Item>
Mike Spertus89073db2019-01-03 23:24:39 +0000797 <Item Name="Val">($T1)(PtrWithInvalid&amp;~1)</Item>
Mike Spertus897711f2016-06-11 20:15:19 +0000798 </Expand>
799 </Type>
Aaron Ballman83f197b2014-01-24 19:46:45 +0000800</AutoVisualizer>