blob: fdfd45184d577cfb2e6ffead229b3e62c04b954f [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">
Mike Spertusfb133b02019-06-30 22:04:25 +0000135 <DisplayString>{PointeeType, view(cpp)} *</DisplayString>
Mike Spertus01b14bf2016-03-16 14:27:50 +0000136 <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>
Mike Spertusfb133b02019-06-30 22:04:25 +0000212 <DisplayString>typedef {this,view(type)na} {this,view(name)na};</DisplayString>
Mike Spertus08c699a2019-06-23 01:15:48 +0000213 <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">
Mike Spertusfb133b02019-06-30 22:04:25 +0000222 <DisplayString IncludeView="cpp">{(TypedefNameDecl *)this,view(name)nand}</DisplayString>
Mike Spertus08c699a2019-06-23 01:15:48 +0000223 <DisplayString>using {(TypedefNameDecl *)this,view(name)nand} = {(TypedefNameDecl *)this,view(type)nand}</DisplayString>
224 </Type>
225
Mike Spertus4f95b9c2019-01-05 17:01:34 +0000226 <Type Name="clang::TemplateName">
Mike Spertus1f506972019-06-17 16:12:45 +0000227 <DisplayString>{Storage,na}</DisplayString>
Mike Spertus4f95b9c2019-01-05 17:01:34 +0000228 <Expand>
229 <ExpandedItem>Storage</ExpandedItem>
230 </Expand>
Mike Spertus61c3f392016-03-31 06:09:56 +0000231 </Type>
Mike Spertus01b14bf2016-03-16 14:27:50 +0000232 <Type Name="clang::NamedDecl" >
233 <DisplayString IncludeView="cpp">{Name,view(cpp)}</DisplayString>
234 <DisplayString>{Name}</DisplayString>
235 </Type>
236 <Type Name="clang::TagDecl">
Mike Spertus32e9a322016-03-22 02:29:22 +0000237 <DisplayString IncludeView="implicit" Condition="Implicit">implicit{" ",sb}</DisplayString>
238 <DisplayString IncludeView="implicit"></DisplayString>
Mike Spertus4fc8c442019-01-06 04:58:48 +0000239 <DisplayString IncludeView="modifiers">{*this,view(implicit)nd}</DisplayString>
Mike Spertus32e9a322016-03-22 02:29:22 +0000240 <DisplayString IncludeView="cpp">{*this,view(modifiers)}{Name,view(cpp)}</DisplayString>
Mike Spertus4fc8c442019-01-06 04:58:48 +0000241 <DisplayString Condition="TagDeclBits.TagDeclKind==clang::TagTypeKind::TTK_Struct">{*this,view(modifiers)nd}struct {Name,view(cpp)}</DisplayString>
242 <DisplayString Condition="TagDeclBits.TagDeclKind==clang::TagTypeKind::TTK_Interface">{*this,view(modifiers)nd}interface {Name,view(cpp)}</DisplayString>
243 <DisplayString Condition="TagDeclBits.TagDeclKind==clang::TagTypeKind::TTK_Union">{*this,view(modifiers)nd}union {Name,view(cpp)}</DisplayString>
244 <DisplayString Condition="TagDeclBits.TagDeclKind==clang::TagTypeKind::TTK_Class">{*this,view(modifiers)nd}class {Name,view(cpp)}</DisplayString>
245 <DisplayString Condition="TagDeclBits.TagDeclKind==clang::TagTypeKind::TTK_Enum">{*this,view(modifiers)nd}enum {Name,view(cpp)}</DisplayString>
Mike Spertusa814d3d2016-03-18 16:38:34 +0000246 <Expand>
247 <ExpandedItem>(clang::DeclContext *)this</ExpandedItem>
248 </Expand>
Mike Spertus01b14bf2016-03-16 14:27:50 +0000249 </Type>
Mike Spertus288daa52016-03-08 16:14:23 +0000250 <Type Name="clang::TagType">
Mike Spertus1f506972019-06-17 16:12:45 +0000251 <DisplayString IncludeView="cpp">{decl,view(cpp)na}</DisplayString>
Mike Spertus288daa52016-03-08 16:14:23 +0000252 <DisplayString>{*decl}</DisplayString>
253 <Expand>
Mike Spertus01b14bf2016-03-16 14:27:50 +0000254 <ExpandedItem>*(clang::Type *)this, view(cmn)</ExpandedItem>
Mike Spertus288daa52016-03-08 16:14:23 +0000255 <Item Name="decl">decl</Item>
256 </Expand>
257 </Type>
258 <Type Name="clang::RecordType">
Mike Spertus1f506972019-06-17 16:12:45 +0000259 <DisplayString IncludeView="cpp">{(clang::TagType *)this,view(cpp)na}</DisplayString>
260 <DisplayString>{(clang::TagType *)this,na}</DisplayString>
Mike Spertus288daa52016-03-08 16:14:23 +0000261 <Expand>
262 <Item Name="TagType">*(clang::TagType *)this</Item>
263 </Expand>
264 </Type>
265 <Type Name="clang::SubstTemplateTypeParmType">
Mike Spertus01b14bf2016-03-16 14:27:50 +0000266 <DisplayString>{*Replaced,view(cpp)} &lt;= {CanonicalType,view(cpp)}</DisplayString>
Mike Spertus288daa52016-03-08 16:14:23 +0000267 <Expand>
Mike Spertus01b14bf2016-03-16 14:27:50 +0000268 <ExpandedItem>*(clang::Type *)this, view(cmn)</ExpandedItem>
Mike Spertus288daa52016-03-08 16:14:23 +0000269 <Item Name="Replaced">*Replaced</Item>
270 </Expand>
271 </Type>
Mike Spertus7f2de8e2016-03-20 00:20:43 +0000272 <!-- We only show the first 5 parameter types in the display string (can't figure out how to loop in DisplayString)
273 but the expansion has all parameters -->
274 <Type Name="clang::FunctionProtoType">
Mike Spertus1f506972019-06-17 16:12:45 +0000275 <DisplayString IncludeView="left" Condition="FunctionTypeBits.HasTrailingReturn"></DisplayString>
276 <DisplayString IncludeView="left">{ResultType,view(cpp)}</DisplayString>
Aaron Ballman1455d4e2018-12-18 21:42:20 +0000277 <DisplayString IncludeView="parm0" Condition="FunctionTypeBits.NumParams==0"></DisplayString>
Mike Spertus7f2de8e2016-03-20 00:20:43 +0000278 <DisplayString IncludeView="parm0">{*(clang::QualType *)(this+1),view(cpp)}{*this,view(parm1)}</DisplayString>
Aaron Ballman1455d4e2018-12-18 21:42:20 +0000279 <DisplayString IncludeView="parm1" Condition="FunctionTypeBits.NumParams==1"></DisplayString>
Mike Spertus7f2de8e2016-03-20 00:20:43 +0000280 <DisplayString IncludeView="parm1">, {*((clang::QualType *)(this+1)+1),view(cpp)}{*this,view(parm2)}</DisplayString>
Aaron Ballman1455d4e2018-12-18 21:42:20 +0000281 <DisplayString IncludeView="parm2" Condition="FunctionTypeBits.NumParams==2"></DisplayString>
Mike Spertus7f2de8e2016-03-20 00:20:43 +0000282 <DisplayString IncludeView="parm2">, {*((clang::QualType *)(this+1)+2),view(cpp)}{*this,view(parm3)}</DisplayString>
Aaron Ballman1455d4e2018-12-18 21:42:20 +0000283 <DisplayString IncludeView="parm3" Condition="FunctionTypeBits.NumParams==3"></DisplayString>
Mike Spertus7f2de8e2016-03-20 00:20:43 +0000284 <DisplayString IncludeView="parm3">, {*((clang::QualType *)(this+1)+3),view(cpp)}{*this,view(parm4)}</DisplayString>
Aaron Ballman1455d4e2018-12-18 21:42:20 +0000285 <DisplayString IncludeView="parm4" Condition="FunctionTypeBits.NumParams==4"></DisplayString>
Mike Spertus7f2de8e2016-03-20 00:20:43 +0000286 <DisplayString IncludeView="parm4">, {*((clang::QualType *)(this+1)+4),view(cpp)}{*this,view(parm5)}</DisplayString>
Aaron Ballman1455d4e2018-12-18 21:42:20 +0000287 <DisplayString IncludeView="parm5" Condition="FunctionTypeBits.NumParams==5"></DisplayString>
Mike Spertus7f2de8e2016-03-20 00:20:43 +0000288 <DisplayString IncludeView="parm5">, /* expand for more params */</DisplayString>
Mike Spertus1f506972019-06-17 16:12:45 +0000289 <DisplayString IncludeView="right" Condition="FunctionTypeBits.HasTrailingReturn">({*this,view(parm0)}) -&gt; {ResultType,view(cpp)}</DisplayString>
290 <DisplayString IncludeView="right">({*this,view(parm0)})</DisplayString>
291 <DisplayString>{this,view(left)na}{this,view(right)na}</DisplayString>
Mike Spertus7f2de8e2016-03-20 00:20:43 +0000292 <Expand>
293 <Item Name="ReturnType">ResultType</Item>
294 <Synthetic Name="Parameter Types">
295 <DisplayString>{*this,view(parm0)}</DisplayString>
296 <Expand>
297 <ArrayItems>
Aaron Ballman1455d4e2018-12-18 21:42:20 +0000298 <Size>FunctionTypeBits.NumParams</Size>
Mike Spertus7f2de8e2016-03-20 00:20:43 +0000299 <ValuePointer>(clang::QualType *)(this+1)</ValuePointer>
300 </ArrayItems>
301 </Expand>
302 </Synthetic>
303 <ExpandedItem>*(clang::Type *)this, view(cmn)</ExpandedItem>
304 </Expand>
305 </Type>
Mike Spertus1f506972019-06-17 16:12:45 +0000306
307 <Type Name="clang::AdjustedType">
308 <DisplayString>{OriginalTy} adjusted to {AdjustedTy}</DisplayString>
309 <Expand>
310 <Item Name="OriginalTy">OriginalTy</Item>
311 <Item Name="AdjustedTy">AdjustedTy</Item>
312 </Expand>
313 </Type>
314 <Type Name="clang::DecayedType">
315 <DisplayString IncludeView="left">{OriginalTy,view(left)}</DisplayString>
316 <DisplayString IncludeView="right">{OriginalTy,view(right)}</DisplayString>
317 <DisplayString>{OriginalTy}</DisplayString>
318 <Expand>
319 <ExpandedItem>(clang::AdjustedType *)this</ExpandedItem>
320 </Expand>
321 </Type>
Mike Spertus288daa52016-03-08 16:14:23 +0000322 <Type Name="clang::TemplateTypeParmType">
Mike Spertus1f506972019-06-17 16:12:45 +0000323 <DisplayString IncludeView="cpp" Condition="CanonicalType.Value.Value != this">{TTPDecl->Name,view(cpp)}</DisplayString>
Mike Spertusb25ced72019-01-05 23:15:30 +0000324 <DisplayString Condition="CanonicalType.Value.Value != this">Non-canonical: {*TTPDecl}</DisplayString>
325 <DisplayString>Canonical: {CanTTPTInfo}</DisplayString>
326 <Expand>
327 </Expand>
Aaron Ballman9d214542015-09-29 17:32:36 +0000328 </Type>
Mike Spertusa9ab71c2016-03-29 09:24:45 +0000329 <Type Name="clang::InjectedClassNameType">
330 <DisplayString>{*Decl,view(cpp)}</DisplayString>
331 <Expand>
332 <Item Name="Decl">Decl</Item>
333 <Item Name="InjectedType">InjectedType</Item>
334 <ExpandedItem>*(clang::Type *)this, view(cmn)</ExpandedItem>
335 </Expand>
336 </Type>
Mike Spertus08c699a2019-06-23 01:15:48 +0000337 <Type Name="clang::DependentNameType">
338 <DisplayString>{NNS}{Name,view(cpp)na}</DisplayString>
339 <Expand>
340 <Item Name="NNS">NNS</Item>
341 <Item Name="Name">Name</Item>
342 <ExpandedItem>*(clang::Type *)this, view(cmn)</ExpandedItem>
343 </Expand>
344 </Type>
345 <Type Name="clang::NestedNameSpecifier">
346 <DisplayString Condition="!Specifier"></DisplayString>
347 <DisplayString Condition="((Prefix.Value&gt;&gt;1)&amp;3) == 0">{(IdentifierInfo*)Specifier,view(cpp)na}::</DisplayString>
348 <DisplayString Condition="((Prefix.Value&gt;&gt;1)&amp;3) == 1">{(NamedDecl*)Specifier,view(cpp)na}::</DisplayString>
349 <DisplayString Condition="((Prefix.Value&gt;&gt;1)&amp;2) == 2">{(Type*)Specifier,view(cpp)na}::</DisplayString>
350 <Expand>
351 <Item Name="Kind">(NestedNameSpecifier::StoredSpecifierKind)((Prefix.Value&gt;&gt;1)&amp;3)</Item>
352 </Expand>
353 </Type>
Mike Spertusce334cf2016-06-12 22:54:46 +0000354 <Type Name="clang::PackExpansionType">
355 <DisplayString>{Pattern}</DisplayString>
356 <Expand>
357 <Item Name="Pattern">Pattern</Item>
358 <Item Name="NumExpansions">NumExpansions</Item>
359 <ExpandedItem>*(clang::Type *)this, view(cmn)</ExpandedItem>
360 </Expand>
361 </Type>
Aaron Ballman9d214542015-09-29 17:32:36 +0000362 <Type Name="clang::QualType">
Mike Spertus8758c9d2016-03-24 00:38:54 +0000363 <!-- When VS2013 support is deprecated, change 4 to clang::TypeAlignmentInBits (not properly recognized by VS2013) -->
364 <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>
365 <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 +0000366 <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>
367 <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 +0000368 <!-- For the Fast Qualifiers, it is simpler (and probably more efficient) just to list all 8 cases than create
369 views for each qualifier. TODO: Non-fast qualifiers -->
370 <DisplayString IncludeView="fastQuals" Condition="(Value.Value &amp; 15)==0"></DisplayString>
371 <DisplayString IncludeView="fastQuals" Condition="(Value.Value &amp; 15)==1">{" ",sb}const</DisplayString>
372 <DisplayString IncludeView="fastQuals" Condition="(Value.Value &amp; 15)==2">{" ",sb}restrict</DisplayString>
373 <DisplayString IncludeView="fastQuals" Condition="(Value.Value &amp; 15)==3">{" ",sb}const restrict</DisplayString>
374 <DisplayString IncludeView="fastQuals" Condition="(Value.Value &amp; 15)==4">{" ",sb}volatile</DisplayString>
375 <DisplayString IncludeView="fastQuals" Condition="(Value.Value &amp; 15)==5">{" ",sb}const volatile</DisplayString>
376 <DisplayString IncludeView="fastQuals" Condition="(Value.Value &amp; 15)==6">{" ",sb}volatile restrict</DisplayString>
377 <DisplayString IncludeView="fastQuals" Condition="(Value.Value &amp; 15)==7">{" ",sb}const volatile restrict</DisplayString>
378 <DisplayString IncludeView="fastQuals">Cannot visualize non-fast qualifiers</DisplayString>
Mike Spertusb25ced72019-01-05 23:15:30 +0000379 <DisplayString Condition="(uintptr_t)Value.Value == 0">Null</DisplayString>
Mike Spertus1f506972019-06-17 16:12:45 +0000380 <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 +0000381 <Expand>
Mike Spertus8758c9d2016-03-24 00:38:54 +0000382 <Item Name="Fast Quals">*this,view(fastQuals)</Item>
Mike Spertus1f506972019-06-17 16:12:45 +0000383 <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 +0000384 </Expand>
385 </Type>
Mike Spertus897711f2016-06-11 20:15:19 +0000386 <Type Name="clang::LocInfoType">
387 <DisplayString>{*DeclInfo}</DisplayString>
388 <Expand>
389 <Item Name="DeclInfo">DeclInfo</Item>
390 <ExpandedItem>*(clang::Type *)this, view(cmn)</ExpandedItem>
391 </Expand>
392 </Type>
393 <Type Name="clang::TypeSourceInfo">
Mike Spertus08c699a2019-06-23 01:15:48 +0000394 <DisplayString IncludeView="cpp">{Ty,view(cpp)}</DisplayString>
Mike Spertus897711f2016-06-11 20:15:19 +0000395 <DisplayString>{Ty}</DisplayString>
Mike Spertus08c699a2019-06-23 01:15:48 +0000396 <Expand>
397 <ExpandedItem>Ty</ExpandedItem>
398 </Expand>
Mike Spertus897711f2016-06-11 20:15:19 +0000399 </Type>
Mike Spertus288daa52016-03-08 16:14:23 +0000400 <Type Name="clang::TemplateArgumentLoc">
401 <DisplayString>{Argument}</DisplayString>
402 <Expand>
403 <ExpandedItem>Argument</ExpandedItem>
404 </Expand>
405 </Type>
406 <Type Name="clang::TemplateArgument">
Mike Spertus603bbfc2016-06-06 17:08:32 +0000407 <DisplayString IncludeView="cpp" Condition="Integer.Kind == clang::TemplateArgument::ArgKind::Type">{*(clang::QualType *)&amp;TypeOrValue.V,view(cpp)}</DisplayString>
408 <DisplayString Condition="Integer.Kind == clang::TemplateArgument::ArgKind::Type">{(clang::TemplateArgument::ArgKind)TypeOrValue.Kind,en} template argument: {*(clang::QualType *)&amp;TypeOrValue.V}</DisplayString>
409 <DisplayString IncludeView="arg0" Condition="Args.NumArgs==0"></DisplayString>
410 <DisplayString IncludeView="arg0">{Args.Args[0]}{*this,view(arg1)}</DisplayString>
411 <DisplayString IncludeView="arg1" Condition="Args.NumArgs==1"></DisplayString>
412 <DisplayString IncludeView="arg1">, {Args.Args[1]}{*this,view(arg2)}</DisplayString>
413 <DisplayString IncludeView="arg2" Condition="Args.NumArgs==2"></DisplayString>
414 <DisplayString IncludeView="arg2">, {Args.Args[2]}, ...</DisplayString>
415 <DisplayString IncludeView="arg0cpp" Condition="Args.NumArgs==0"></DisplayString>
416 <DisplayString IncludeView="arg0cpp">{Args.Args[0],view(cpp)}{*this,view(arg1cpp)}</DisplayString>
417 <DisplayString IncludeView="arg1cpp" Condition="Args.NumArgs==1"></DisplayString>
418 <DisplayString IncludeView="arg1cpp">, {Args.Args[1],view(cpp)}{*this,view(arg2cpp)}</DisplayString>
419 <DisplayString IncludeView="arg2cpp" Condition="Args.NumArgs==2"></DisplayString>
420 <DisplayString IncludeView="arg2cpp">, {Args.Args[2],view(cpp)}, ...</DisplayString>
421 <DisplayString IncludeView="cpp" Condition="Integer.Kind == clang::TemplateArgument::ArgKind::Pack">{*this,view(arg0cpp)}</DisplayString>
422 <DisplayString Condition="Integer.Kind == clang::TemplateArgument::ArgKind::Pack">{*this,view(arg0)}</DisplayString>
Mike Spertus64aa76d2016-05-23 22:27:44 +0000423 <DisplayString>{(clang::TemplateArgument::ArgKind)TypeOrValue.Kind,en}</DisplayString>
Mike Spertus288daa52016-03-08 16:14:23 +0000424 <Expand>
425 <Item Name="QualType" Condition="Integer.Kind == clang::TemplateArgument::ArgKind::Type">*(clang::QualType *)&amp;TypeOrValue.V</Item>
Mike Spertus64aa76d2016-05-23 22:27:44 +0000426 <ArrayItems Condition="Integer.Kind == clang::TemplateArgument::ArgKind::Pack">
427 <Size>Args.NumArgs</Size>
428 <ValuePointer>Args.Args</ValuePointer>
429 </ArrayItems>
Mike Spertus288daa52016-03-08 16:14:23 +0000430 <!-- TODO: Other kinds-->
431 </Expand>
432 </Type>
Mike Spertus603bbfc2016-06-06 17:08:32 +0000433 <Type Name="clang::TemplateArgumentList">
434 <DisplayString IncludeView="arg0" Condition="NumArguments==0"></DisplayString>
435 <DisplayString IncludeView="arg0">{Arguments[0],view(cpp)}{*this,view(arg1)}</DisplayString>
436 <DisplayString IncludeView="arg1" Condition="NumArguments==1"></DisplayString>
437 <DisplayString IncludeView="arg1">, {Arguments[1],view(cpp)}{*this,view(arg2)}</DisplayString>
438 <DisplayString IncludeView="arg2" Condition="NumArguments==2"></DisplayString>
Mike Spertus1f56e992016-06-06 21:41:20 +0000439 <DisplayString IncludeView="arg2">, {Arguments[1],view(cpp)}, ...</DisplayString>
Mike Spertus603bbfc2016-06-06 17:08:32 +0000440 <DisplayString>&lt;{*this,view(arg0)}&gt;</DisplayString>
441 <Expand>
442 <Item Name="NumArguments">NumArguments</Item>
443 <ArrayItems>
444 <Size>NumArguments</Size>
445 <ValuePointer>Arguments</ValuePointer>
446 </ArrayItems>
447 </Expand>
448 </Type>
Mike Spertus1f56e992016-06-06 21:41:20 +0000449 <Type Name="llvm::ArrayRef&lt;clang::TemplateArgument&gt;">
450 <DisplayString IncludeView="arg0" Condition="Length==0"></DisplayString>
451 <DisplayString IncludeView="arg0">{Data[0],view(cpp)}{*this,view(arg1)}</DisplayString>
452 <DisplayString IncludeView="arg1" Condition="Length==1"></DisplayString>
453 <DisplayString IncludeView="arg1">, {Data[1],view(cpp)}{*this,view(arg2)}</DisplayString>
454 <DisplayString IncludeView="arg2" Condition="Length==2"></DisplayString>
455 <DisplayString IncludeView="arg2">, {Data[2],view(cpp)}, ...</DisplayString>
456 <DisplayString>&lt;{*this,view(arg0)}&gt;</DisplayString>
457 </Type>
458 <Type Name="clang::MultiLevelTemplateArgumentList">
459 <DisplayString IncludeView="level0" Condition="(llvm::ArrayRef&lt;clang::TemplateArgument&gt; *)TemplateArgumentLists.EndX - (llvm::ArrayRef&lt;clang::TemplateArgument&gt; *)TemplateArgumentLists.BeginX==0"></DisplayString>
460 <DisplayString IncludeView="level0">{((llvm::ArrayRef&lt;clang::TemplateArgument&gt; *)TemplateArgumentLists.BeginX)[0],view(cpp)}{*this,view(level1)}</DisplayString>
461 <DisplayString IncludeView="level1" Condition="(llvm::ArrayRef&lt;clang::TemplateArgument&gt; *)TemplateArgumentLists.EndX - (llvm::ArrayRef&lt;clang::TemplateArgument&gt; *)TemplateArgumentLists.BeginX==1"></DisplayString>
462 <DisplayString IncludeView="level1">::{((llvm::ArrayRef&lt;clang::TemplateArgument&gt; *)TemplateArgumentLists.BeginX)[1],view(cpp)}{*this,view(level2)}</DisplayString>
463 <DisplayString IncludeView="level2" Condition="(llvm::ArrayRef&lt;clang::TemplateArgument&gt; *)TemplateArgumentLists.EndX - (llvm::ArrayRef&lt;clang::TemplateArgument&gt; *)TemplateArgumentLists.BeginX==2"></DisplayString>
464 <DisplayString IncludeView="level2">::{((llvm::ArrayRef&lt;clang::TemplateArgument&gt; *)TemplateArgumentLists.BeginX)[2],view(cpp)}, ...</DisplayString>
465 <DisplayString>{*this,view(level0)}</DisplayString>
466 <Expand>
467 <Item Name="TemplateList">TemplateArgumentLists</Item>
468 </Expand>
469 </Type>
Mike Spertus47f48902016-06-12 22:21:56 +0000470 <Type Name="clang::ParsedTemplateArgument">
471 <DisplayString Condition="Kind==clang::ParsedTemplateArgument::Type">Type template argument: {*(clang::QualType *)Arg}</DisplayString>
472 <DisplayString Condition="Kind==clang::ParsedTemplateArgument::NonType">Non-type template argument: {*(clang::Expr *)Arg}</DisplayString>
473 <DisplayString Condition="Kind==clang::ParsedTemplateArgument::Template">Template template argument: {*(clang::TemplateName *)Arg</DisplayString>
474 <Expand>
475 <Item Name="Kind">Kind,en</Item>
476 <Item Name="Arg" Condition="Kind==clang::ParsedTemplateArgument::Type">(clang::QualType *)Arg</Item>
477 <Item Name="Arg" Condition="Kind==clang::ParsedTemplateArgument::NonType">(clang::Expr *)Arg</Item>
478 <Item Name="Arg" Condition="Kind==clang::ParsedTemplateArgument::Template">(clang::TemplateName *)Arg</Item>
479 </Expand>
480 </Type>
Mike Spertus1d051ee2016-03-20 00:32:30 +0000481 <!-- 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 +0000482 <Type Name="clang::BuiltinType">
Mike Spertus1d051ee2016-03-20 00:32:30 +0000483 <DisplayString Condition="BuiltinTypeBits.Kind==clang::BuiltinType::Void">void</DisplayString>
484 <DisplayString Condition="BuiltinTypeBits.Kind==clang::BuiltinType::Bool">bool</DisplayString>
485 <DisplayString Condition="BuiltinTypeBits.Kind==clang::BuiltinType::Char_U">char</DisplayString>
486 <DisplayString Condition="BuiltinTypeBits.Kind==clang::BuiltinType::UChar">unsigned char</DisplayString>
487 <DisplayString Condition="BuiltinTypeBits.Kind==clang::BuiltinType::WChar_U">wchar_t</DisplayString>
488 <DisplayString Condition="BuiltinTypeBits.Kind==clang::BuiltinType::Char16">char16_t</DisplayString>
489 <DisplayString Condition="BuiltinTypeBits.Kind==clang::BuiltinType::Char32">char32_t</DisplayString>
490 <DisplayString Condition="BuiltinTypeBits.Kind==clang::BuiltinType::UShort">unsigned short</DisplayString>
491 <DisplayString Condition="BuiltinTypeBits.Kind==clang::BuiltinType::UInt">unsigned int</DisplayString>
492 <DisplayString Condition="BuiltinTypeBits.Kind==clang::BuiltinType::ULong">unsigned long</DisplayString>
493 <DisplayString Condition="BuiltinTypeBits.Kind==clang::BuiltinType::ULongLong">unsigned long long</DisplayString>
494 <DisplayString Condition="BuiltinTypeBits.Kind==clang::BuiltinType::UInt128">__uint128_t</DisplayString>
495 <DisplayString Condition="BuiltinTypeBits.Kind==clang::BuiltinType::Char_S">char</DisplayString>
496 <DisplayString Condition="BuiltinTypeBits.Kind==clang::BuiltinType::SChar">signed char</DisplayString>
497 <DisplayString Condition="BuiltinTypeBits.Kind==clang::BuiltinType::WChar_S">wchar_t</DisplayString>
498 <DisplayString Condition="BuiltinTypeBits.Kind==clang::BuiltinType::Short">short</DisplayString>
499 <DisplayString Condition="BuiltinTypeBits.Kind==clang::BuiltinType::Int">int</DisplayString>
500 <DisplayString Condition="BuiltinTypeBits.Kind==clang::BuiltinType::Long">long</DisplayString>
501 <DisplayString Condition="BuiltinTypeBits.Kind==clang::BuiltinType::LongLong">long long</DisplayString>
502 <DisplayString Condition="BuiltinTypeBits.Kind==clang::BuiltinType::Int128">__int128_t</DisplayString>
503 <DisplayString Condition="BuiltinTypeBits.Kind==clang::BuiltinType::Half">__fp16</DisplayString>
504 <DisplayString Condition="BuiltinTypeBits.Kind==clang::BuiltinType::Float">float</DisplayString>
505 <DisplayString Condition="BuiltinTypeBits.Kind==clang::BuiltinType::Double">double</DisplayString>
506 <DisplayString Condition="BuiltinTypeBits.Kind==clang::BuiltinType::LongDouble">long double</DisplayString>
507 <DisplayString Condition="BuiltinTypeBits.Kind==clang::BuiltinType::NullPtr">nullptr_t</DisplayString>
Mike Spertus288daa52016-03-08 16:14:23 +0000508 <DisplayString>{(clang::BuiltinType::Kind)BuiltinTypeBits.Kind, en}</DisplayString>
509 <Expand>
510 <Item Name="Kind">(clang::BuiltinType::Kind)BuiltinTypeBits.Kind</Item>
511 </Expand>
512 </Type>
Mike Spertus01b14bf2016-03-16 14:27:50 +0000513
Mike Spertus288daa52016-03-08 16:14:23 +0000514 <Type Name="clang::TemplateSpecializationType">
Mike Spertus1f506972019-06-17 16:12:45 +0000515 <DisplayString IncludeView="arg0" Condition="TemplateSpecializationTypeBits.NumArgs==0"></DisplayString>
Mike Spertus63e428f2016-04-01 03:31:43 +0000516 <DisplayString IncludeView="arg0">{((clang::TemplateArgument *)(this+1))[0],view(cpp)}{*this,view(arg1)}</DisplayString>
Mike Spertus1f506972019-06-17 16:12:45 +0000517 <DisplayString IncludeView="arg1" Condition="TemplateSpecializationTypeBits.NumArgs==1"></DisplayString>
Mike Spertus63e428f2016-04-01 03:31:43 +0000518 <DisplayString IncludeView="arg1">, {((clang::TemplateArgument *)(this+1))[1],view(cpp)}{*this,view(arg2)}</DisplayString>
Mike Spertus1f506972019-06-17 16:12:45 +0000519 <DisplayString IncludeView="arg2" Condition="TemplateSpecializationTypeBits.NumArgs==2"></DisplayString>
Mike Spertus63e428f2016-04-01 03:31:43 +0000520 <DisplayString IncludeView="arg2">, {((clang::TemplateArgument *)(this+1))[2],view(cpp)}{*this,view(arg3)}</DisplayString>
Mike Spertus1f506972019-06-17 16:12:45 +0000521 <DisplayString Condition="(Template.Storage.Val.Value &amp; 3) == 0">
522 {*((clang::TemplateDecl *)(Template.Storage.Val.Value))->TemplatedDecl,view(cpp)}&lt;{*this,view(arg0)}&gt;
Mike Spertus63e428f2016-04-01 03:31:43 +0000523 </DisplayString>
Mike Spertus1f506972019-06-17 16:12:45 +0000524 <DisplayString>Can't visualize this TemplateSpecializationType</DisplayString>
Mike Spertus63e428f2016-04-01 03:31:43 +0000525 <Expand>
526 <Item Name="Template">Template.Storage</Item>
527 <ArrayItems>
Mike Spertus1f506972019-06-17 16:12:45 +0000528 <Size>TemplateSpecializationTypeBits.NumArgs</Size>
Mike Spertus63e428f2016-04-01 03:31:43 +0000529 <ValuePointer>(clang::TemplateArgument *)(this+1)</ValuePointer>
530 </ArrayItems>
531 </Expand>
Aaron Ballman9d214542015-09-29 17:32:36 +0000532 </Type>
Mike Spertus4f95b9c2019-01-05 17:01:34 +0000533 <Type Name="clang::DeducedType">
534 <Expand>
535 <Item Name="isDeduced">(CanonicalType.Value.Value != this) || TypeBits.Dependent</Item>
536 <ExpandedItem>*(clang::Type *)this,view(cmn)</ExpandedItem>
537 </Expand>
538 </Type>
539 <Type Name="clang::DeducedTemplateSpecializationType">
Mike Spertus4fc8c442019-01-06 04:58:48 +0000540 <DisplayString Condition="(CanonicalType.Value.Value != this) || TypeBits.Dependent">{CanonicalType,view(cpp)}</DisplayString>
Mike Spertus4f95b9c2019-01-05 17:01:34 +0000541 <DisplayString>{Template}</DisplayString>
542 <Expand>
Mike Spertus4fc8c442019-01-06 04:58:48 +0000543 <Item Name="Template">Template</Item>
544 <Item Name="Deduced As" Condition="(CanonicalType.Value.Value != this) || TypeBits.Dependent">CanonicalType,view(cpp)</Item>
Mike Spertus4f95b9c2019-01-05 17:01:34 +0000545 <ExpandedItem>*(clang::DeducedType *)this</ExpandedItem>
Mike Spertus4fc8c442019-01-06 04:58:48 +0000546 <Item Name="Template">Template</Item>
547 </Expand>
548 </Type>
549 <Type Name="clang::ClassTemplateSpecializationDecl">
550 <DisplayString>{*(CXXRecordDecl *)this,nd}{*TemplateArgs}</DisplayString>
551 <Expand>
552 <ExpandedItem>(CXXRecordDecl *)this,nd</ExpandedItem>
553 <Item Name="TemplateArgs">TemplateArgs</Item>
Mike Spertus4f95b9c2019-01-05 17:01:34 +0000554 </Expand>
555 </Type>
Aaron Ballman83f197b2014-01-24 19:46:45 +0000556 <Type Name="clang::IdentifierInfo">
Mike Spertus01b14bf2016-03-16 14:27:50 +0000557 <DisplayString Condition="Entry != 0">{((llvm::StringMapEntry&lt;clang::IdentifierInfo *&gt;*)Entry)+1,sb}</DisplayString>
Aaron Ballman83f197b2014-01-24 19:46:45 +0000558 <Expand>
559 <Item Condition="Entry != 0" Name="[Identifier]">((llvm::StringMapEntry&lt;clang::IdentifierInfo *&gt;*)Entry)+1,s</Item>
560 <Item Name="Token Kind">(clang::tok::TokenKind)TokenID</Item>
561 </Expand>
562 </Type>
563 <Type Name="clang::DeclarationName">
Mike Spertus6fa3e592016-03-20 20:15:23 +0000564 <DisplayString Condition="Ptr == 0" IncludeView="cpp"></DisplayString>
Aaron Ballman83f197b2014-01-24 19:46:45 +0000565 <DisplayString Condition="Ptr == 0">Empty</DisplayString>
Mike Spertus01b14bf2016-03-16 14:27:50 +0000566 <DisplayString Condition="(Ptr &amp; PtrMask) == StoredIdentifier" IncludeView="cpp">{*(clang::IdentifierInfo *)(Ptr &amp; ~PtrMask)}</DisplayString>
Zachary Turnerdfa871b2014-06-26 16:26:42 +0000567 <DisplayString Condition="(Ptr &amp; PtrMask) == StoredIdentifier">{{Identifier ({*(clang::IdentifierInfo *)(Ptr &amp; ~PtrMask)})}}</DisplayString>
568 <DisplayString Condition="(Ptr &amp; PtrMask) == StoredObjCZeroArgSelector">{{ObjC Zero Arg Selector (*{(clang::IdentifierInfo *)(Ptr &amp; ~PtrMask)})}}</DisplayString>
569 <DisplayString Condition="(Ptr &amp; PtrMask) == StoredObjCOneArgSelector">{{ObjC One Arg Selector (*{(clang::IdentifierInfo *)(Ptr &amp; ~PtrMask)})}}</DisplayString>
Mike Spertusd0504792019-06-22 18:56:40 +0000570 <DisplayString Condition="(Ptr &amp; PtrMask) == StoredCXXConstructorName" IncludeView="cpp">{(clang::detail::CXXSpecialNameExtra *)(Ptr &amp; ~PtrMask),view(cpp)na}</DisplayString>
571 <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 +0000572 <DisplayString Condition="(Ptr &amp; PtrMask) == StoredCXXDestructorName">C++ Destructor {{*(clang::detail::CXXSpecialNameExtra *)(Ptr &amp; ~PtrMask)}}</DisplayString>
573 <DisplayString Condition="(Ptr &amp; PtrMask) == StoredCXXConversionFunctionName">C++ Conversion function {{*(clang::detail::CXXSpecialNameExtra *)(Ptr &amp; ~PtrMask)}}</DisplayString>
574 <DisplayString Condition="(Ptr &amp; PtrMask) == StoredCXXOperatorName">C++ Operator {{*(clang::detail::CXXOperatorIdName *)(Ptr &amp; ~PtrMask)}}</DisplayString>
Mike Spertus32e9a322016-03-22 02:29:22 +0000575 <DisplayString Condition="(Ptr &amp; PtrMask) == StoredDeclarationNameExtra"
Aaron Ballman1455d4e2018-12-18 21:42:20 +0000576 IncludeView="cpp">{*(clang::detail::DeclarationNameExtra *)(Ptr &amp; ~PtrMask),view(cpp)}</DisplayString>
577 <DisplayString Condition="(Ptr &amp; PtrMask) == StoredDeclarationNameExtra">{{Extra ({*(clang::detail::DeclarationNameExtra *)(Ptr &amp; ~PtrMask)})}}</DisplayString>
Aaron Ballman83f197b2014-01-24 19:46:45 +0000578 <Expand>
Mike Spertusfb133b02019-06-30 22:04:25 +0000579 <Item Name="Kind">StoredNameKind(Ptr &amp; PtrMask),en</Item>
580 <Item Condition="(Ptr &amp; PtrMask) == StoredIdentifier" Name="[Identifier]">*(clang::IdentifierInfo *)(Ptr &amp; ~PtrMask),na</Item>
581 <Item Condition="(Ptr &amp; PtrMask) == StoredObjCZeroArgSelector" Name="[ObjC Zero Arg Selector]">*(clang::IdentifierInfo *)(Ptr &amp; ~PtrMask),na</Item>
582 <Item Condition="(Ptr &amp; PtrMask) == StoredObjCOneArgSelector" Name="[ObjC One Arg Selector]">*(clang::IdentifierInfo *)(Ptr &amp; ~PtrMask),na</Item>
583 <Item Condition="(Ptr &amp; PtrMask) == StoredCXXConstructorName" Name="[C++ Constructor]">*(clang::detail::CXXSpecialNameExtra *)(Ptr &amp; ~PtrMask),na</Item>
584 <Item Condition="(Ptr &amp; PtrMask) == StoredCXXDestructorName" Name="[C++ Destructor]">*(clang::detail::CXXSpecialNameExtra *)(Ptr &amp; ~PtrMask),na</Item>
585 <Item Condition="(Ptr &amp; PtrMask) == StoredCXXConversionFunctionName" Name="[C++ Conversion function]">*(clang::detail::CXXSpecialNameExtra *)(Ptr &amp; ~PtrMask),na</Item>
586 <Item Condition="(Ptr &amp; PtrMask) == StoredCXXOperatorName" Name="[C++ Operator]">*(clang::detail::CXXOperatorIdName *)(Ptr &amp; ~PtrMask),na</Item>
587 <Item Condition="(Ptr &amp; PtrMask) == StoredDeclarationNameExtra" Name="[Extra]">(clang::detail::DeclarationNameExtra *)(Ptr &amp; ~PtrMask),na</Item>
Mike Spertus288daa52016-03-08 16:14:23 +0000588 </Expand>
589 </Type>
Aaron Ballman1455d4e2018-12-18 21:42:20 +0000590 <Type Name="clang::detail::DeclarationNameExtra">
Mike Spertusfb133b02019-06-30 22:04:25 +0000591 <DisplayString Condition="ExtraKindOrNumArgs == CXXDeductionGuideName" IncludeView="cpp">
592 {(CXXDeductionGuideNameExtra *)this,view(cpp)nand}
593 </DisplayString>
594 <DisplayString Condition="ExtraKindOrNumArgs == CXXDeductionGuideName">
595 {(CXXDeductionGuideNameExtra *)this,nand}
596 </DisplayString>
Aaron Ballman1455d4e2018-12-18 21:42:20 +0000597 <DisplayString Condition="ExtraKindOrNumArgs == CXXLiteralOperatorName">C++ Literal operator</DisplayString>
598 <DisplayString Condition="ExtraKindOrNumArgs == CXXUsingDirective">C++ Using directive</DisplayString>
599 <DisplayString>{(clang::detail::DeclarationNameExtra::ExtraKind)ExtraKindOrNumArgs,en}{" ",sb}{*this,view(cpp)}</DisplayString>
Mike Spertusfb133b02019-06-30 22:04:25 +0000600 <Expand>
601 <ExpandedItem Condition="ExtraKindOrNumArgs == CXXDeductionGuideName">(CXXDeductionGuideNameExtra *)this</ExpandedItem>
602 <Item Name="ExtraKindOrNumArgs" Condition="ExtraKindOrNumArgs != CXXDeductionGuideName">ExtraKindOrNumArgs</Item>
603 </Expand>
604 </Type>
605 <Type Name="clang::detail::CXXDeductionGuideNameExtra">
606 <DisplayString IncludeView="cpp">{Template->TemplatedDecl,view(cpp)}</DisplayString>
607 <DisplayString>C++ Deduction guide for {Template->TemplatedDecl,view(cpp)}</DisplayString>
Mike Spertus32e9a322016-03-22 02:29:22 +0000608 </Type>
Mike Spertusd0504792019-06-22 18:56:40 +0000609 <Type Name="clang::detail::CXXSpecialNameExtra">
610 <DisplayString IncludeView="cpp">{Type,view(cpp)}</DisplayString>
611 <DisplayString>{Type}</DisplayString>
612 </Type>
Mike Spertusfb133b02019-06-30 22:04:25 +0000613 <Type Name="clang::DeclarationNameInfo">
614 <DisplayString>{Name}</DisplayString>
615 </Type>
Mike Spertus288daa52016-03-08 16:14:23 +0000616 <Type Name="clang::Token">
617 <DisplayString Condition="Kind != clang::tok::identifier">{(clang::tok::TokenKind)Kind,en}</DisplayString>
618 <DisplayString Condition="Kind == clang::tok::identifier">{{Identifier ({*(clang::IdentifierInfo *)(PtrData)})}}</DisplayString>
619 </Type>
620 <Type Name="clang::DeclSpec">
621 <DisplayString>[{(clang::DeclSpec::SCS)StorageClassSpec}], [{(clang::TypeSpecifierType)TypeSpecType}]</DisplayString>
Aaron Ballman83f197b2014-01-24 19:46:45 +0000622 </Type>
623 <Type Name="clang::PragmaHandler">
624 <DisplayString>{Name,s}</DisplayString>
625 </Type>
626 <Type Name="clang::FileEntry">
627 <DisplayString>{Name,s}</DisplayString>
628 </Type>
629 <Type Name="clang::DirectoryEntry">
630 <DisplayString>{Name,s}</DisplayString>
631 </Type>
Zachary Turnerdfa871b2014-06-26 16:26:42 +0000632 <Type Name="clang::VarDecl::VarDeclBitfields">
633 <Expand>
634 <Item Name="StorageClass">(clang::StorageClass)SClass</Item>
635 <Item Name="ThreadStorageClass">(clang::ThreadStorageClassSpecifier)TSCSpec</Item>
636 <Item Name="InitStyle">(clang::VarDecl::InitializationStyle)InitStyle</Item>
637 </Expand>
638 </Type>
Mike Spertus6fa3e592016-03-20 20:15:23 +0000639 <Type Name="clang::DeclaratorDecl">
Mike Spertus1f506972019-06-17 16:12:45 +0000640 <DisplayString>{DeclType,view(left)} {Name,view(cpp)}{DeclType,view(right)}</DisplayString>
Mike Spertus8a0a1d72016-06-07 00:27:37 +0000641 <Expand>
642 <Item Name="Name">Name</Item>
643 <Item Name="DeclType">DeclType</Item>
644 </Expand>
Mike Spertus6fa3e592016-03-20 20:15:23 +0000645 </Type>
Zachary Turnerdfa871b2014-06-26 16:26:42 +0000646 <Type Name="clang::VarDecl">
Mike Spertus1f506972019-06-17 16:12:45 +0000647 <DisplayString>{(DeclaratorDecl*)this,nand}</DisplayString>
Zachary Turnerdfa871b2014-06-26 16:26:42 +0000648 <Expand>
Mike Spertus1f506972019-06-17 16:12:45 +0000649 <ExpandedItem>(DeclaratorDecl*)this,nd</ExpandedItem>
Zachary Turnerdfa871b2014-06-26 16:26:42 +0000650 <Item Name="VarDeclBits">VarDeclBits</Item>
Mike Spertus6fa3e592016-03-20 20:15:23 +0000651 </Expand>
652 </Type>
653 <Type Name="clang::ParmVarDecl">
654 <DisplayString>{*(VarDecl*)this,nd}</DisplayString>
655 <Expand>
Zachary Turnerdfa871b2014-06-26 16:26:42 +0000656 <Item Name="ParmVarDeclBits">ParmVarDeclBits</Item>
Mike Spertus6fa3e592016-03-20 20:15:23 +0000657 <ExpandedItem>*(VarDecl*)this,nd</ExpandedItem>
658 </Expand>
659 </Type>
Mike Spertusfb133b02019-06-30 22:04:25 +0000660 <Type Name="clang::ExplicitSpecifier">
661 <DisplayString Condition="((ExplicitSpec.Value&gt;1) &amp; 3) == ExplicitSpecKind::ResolvedTrue" IncludeView="cpp">{"explicit ",sb}</DisplayString>
662 <DisplayString Condition="((ExplicitSpec.Value&gt;1) &amp; 3) == ExplicitSpecKind::ResolvedFalse" IncludeView="cpp"></DisplayString>
663 <DisplayString Condition="((ExplicitSpec.Value&gt;1) &amp; 3) == ExplicitSpecKind::Unresolved" IncludeView="cpp">explicit({ExplicitSpec,view(ptr)na})</DisplayString>
664 <DisplayString Condition="(ExplicitSpec.Value&amp;~7) == 0">{ExplicitSpec,view(int)en}</DisplayString>
665 <DisplayString>{ExplicitSpec,view(int)en} : {ExplicitSpec,view(ptr)na}</DisplayString>
666 </Type>
Mike Spertus1f506972019-06-17 16:12:45 +0000667 <Type Name="clang::CXXDeductionGuideDecl">
Mike Spertusfb133b02019-06-30 22:04:25 +0000668 <DisplayString>{ExplicitSpec,view(cpp)}{Name,view(cpp)nd}({(FunctionDecl*)this,view(parm0)nand}) -&gt; {((clang::FunctionProtoType *)((clang::ExtQualsTypeCommonBase *)(((uintptr_t)DeclType.Value.Value) &amp; ~15))-&gt;BaseType)->ResultType,view(cpp)}</DisplayString>
Mike Spertus1f506972019-06-17 16:12:45 +0000669 <Expand>
Mike Spertusfb133b02019-06-30 22:04:25 +0000670 <Item Name="ExplicitSpec">ExplicitSpec</Item>
671 <Item Name="IsCopyDeductionCandidate">(bool)FunctionDeclBits.IsCopyDeductionCandidate</Item>
Mike Spertus1f506972019-06-17 16:12:45 +0000672 <ExpandedItem>(FunctionDecl*)this,nd</ExpandedItem>
673 </Expand>
674 </Type>
Mike Spertus6fa3e592016-03-20 20:15:23 +0000675 <Type Name="clang::FunctionDecl">
Mike Spertus1f506972019-06-17 16:12:45 +0000676 <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 +0000677 <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 +0000678 <DisplayString IncludeView="parm0">{ParamInfo[0],na}{*this,view(parm1)nd}</DisplayString>
Aaron Ballman1455d4e2018-12-18 21:42:20 +0000679 <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 +0000680 <DisplayString IncludeView="parm1">, {ParamInfo[1],na}{*this,view(parm2)nd}</DisplayString>
Aaron Ballman1455d4e2018-12-18 21:42:20 +0000681 <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 +0000682 <DisplayString IncludeView="parm2">, {ParamInfo[2],na}{*this,view(parm3)nd}</DisplayString>
Aaron Ballman1455d4e2018-12-18 21:42:20 +0000683 <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 +0000684 <DisplayString IncludeView="parm3">, {ParamInfo[3],na}{*this,view(parm4)nd}</DisplayString>
Aaron Ballman1455d4e2018-12-18 21:42:20 +0000685 <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 +0000686 <DisplayString IncludeView="parm4">, {ParamInfo[4],na}{*this,view(parm5)nd}</DisplayString>
Aaron Ballman1455d4e2018-12-18 21:42:20 +0000687 <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 +0000688 <DisplayString IncludeView="parm5">, /* expand for more params */</DisplayString>
Mike Spertus1f506972019-06-17 16:12:45 +0000689 <DisplayString Condition="((clang::FunctionProtoType *)((clang::ExtQualsTypeCommonBase *)(((uintptr_t)DeclType.Value.Value) &amp; ~15))-&gt;BaseType)-&gt;FunctionTypeBits.HasTrailingReturn">
690 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)}
691 </DisplayString>
692 <DisplayString>{this,view(retType)nand} {Name,view(cpp)nd}({*this,view(parm0)nd})</DisplayString>
Mike Spertus6fa3e592016-03-20 20:15:23 +0000693 <Expand>
Mike Spertus1f506972019-06-17 16:12:45 +0000694 <ExpandedItem>(clang::DeclaratorDecl *)this,nd</ExpandedItem>
Mike Spertus32e9a322016-03-22 02:29:22 +0000695 <Item Name="ReturnType">*this,view(retType)nd</Item>
Mike Spertus6fa3e592016-03-20 20:15:23 +0000696 <Synthetic Name="Parameter Types">
Mike Spertus32e9a322016-03-22 02:29:22 +0000697 <DisplayString>{*this,view(parm0)nd}</DisplayString>
Mike Spertus6fa3e592016-03-20 20:15:23 +0000698 <Expand>
699 <ArrayItems>
Aaron Ballman1455d4e2018-12-18 21:42:20 +0000700 <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 +0000701 <ValuePointer>ParamInfo</ValuePointer>
702 </ArrayItems>
703 </Expand>
704 </Synthetic>
Zachary Turnerdfa871b2014-06-26 16:26:42 +0000705 </Expand>
706 </Type>
Mike Spertus288daa52016-03-08 16:14:23 +0000707 <Type Name="clang::OpaquePtr&lt;*&gt;">
Mike Spertus1f506972019-06-17 16:12:45 +0000708 <DisplayString>{*($T1*)&amp;Ptr}</DisplayString>
Mike Spertus288daa52016-03-08 16:14:23 +0000709 <Expand>
Mike Spertus1f506972019-06-17 16:12:45 +0000710 <ExpandedItem>($T1*)&amp;Ptr</ExpandedItem>
Mike Spertus288daa52016-03-08 16:14:23 +0000711 </Expand>
712 </Type>
Mike Spertus27c72d2f2016-06-13 04:02:35 +0000713 <Type Name="clang::UnionOpaquePtr&lt;*&gt;">
714 <DisplayString>{($T1 *)Ptr}</DisplayString>
715 <Expand>
716 <ExpandedItem>($T1 *)Ptr</ExpandedItem>
717 </Expand>
718 </Type>
Mike Spertus1796c2e2016-03-29 10:57:24 +0000719 <Type Name="clang::TemplateParameterList">
720 <DisplayString IncludeView="parm0" Condition="NumParams==0"></DisplayString>
721 <DisplayString IncludeView="parm0">{*((NamedDecl **)(this+1))[0],view(cpp)}{*this,view(parm1)}</DisplayString>
722 <DisplayString IncludeView="parm1" Condition="NumParams==1"></DisplayString>
723 <DisplayString IncludeView="parm1">, {*((NamedDecl **)(this+1))[1],view(cpp)}{*this,view(parm2)}</DisplayString>
724 <DisplayString IncludeView="parm2" Condition="NumParams==2"></DisplayString>
725 <DisplayString IncludeView="parm2">, {*((NamedDecl **)(this+1))[2],view(cpp)}{*this,view(parm3)}</DisplayString>
726 <DisplayString IncludeView="parm3" Condition="NumParams==3"></DisplayString>
727 <DisplayString IncludeView="parm3">, {*((NamedDecl **)(this+1))[3],view(cpp)}{*this,view(parm4)}</DisplayString>
728 <DisplayString IncludeView="parm4" Condition="NumParams==4"></DisplayString>
729 <DisplayString IncludeView="parm4">, {*((NamedDecl **)(this+1))[4],view(cpp)}{*this,view(parm5)}</DisplayString>
730 <DisplayString IncludeView="parm5" Condition="NumParams==5"></DisplayString>
731 <DisplayString IncludeView="parm5">, /* Expand for more params */</DisplayString>
732 <DisplayString>&lt;{*this,view(parm0)}&gt;</DisplayString>
733 <Expand>
734 <ArrayItems>
735 <Size>NumParams</Size>
736 <ValuePointer>(NamedDecl **)(this+1)</ValuePointer>
737 </ArrayItems>
738 </Expand>
739 </Type>
Mike Spertus5bf7fd82016-06-12 18:42:04 +0000740 <Type Name="clang::Stmt">
741 <DisplayString>{(clang::Stmt::StmtClass)StmtBits.sClass,en}</DisplayString>
742 <Expand>
743 <Item Name="Class">(clang::Stmt::StmtClass)StmtBits.sClass,en</Item>
744 </Expand>
745 </Type>
Mike Spertusb27ebb82016-05-16 01:36:09 +0000746 <Type Name="clang::Expr">
Mike Spertusef8c3082016-06-06 03:37:18 +0000747 <DisplayString>Expression of class {(clang::Stmt::StmtClass)StmtBits.sClass,en} and type {TR,view(cpp)}</DisplayString>
Mike Spertusb27ebb82016-05-16 01:36:09 +0000748 </Type>
Mike Spertus334aa072016-06-11 03:02:33 +0000749 <Type Name="clang::DeclAccessPair">
750 <DisplayString IncludeView="access" Condition="(Ptr&amp;Mask) == clang::AS_public">public</DisplayString>
751 <DisplayString IncludeView="access" Condition="(Ptr&amp;Mask) == clang::AS_protected">protected</DisplayString>
752 <DisplayString IncludeView="access" Condition="(Ptr&amp;Mask) == clang::AS_private">private</DisplayString>
Mike Spertusfb133b02019-06-30 22:04:25 +0000753 <DisplayString IncludeView="access" Condition="(Ptr&amp;Mask) == clang::AS_none"></DisplayString>
Mike Spertus334aa072016-06-11 03:02:33 +0000754 <DisplayString IncludeView="decl">{*(clang::NamedDecl *)(Ptr&amp;~Mask)}</DisplayString>
755 <DisplayString>{*this,view(access)} {*this,view(decl)}</DisplayString>
Mike Spertus75644aa2018-12-30 20:22:37 +0000756 <Expand>
757 <Item Name="access">(clang::AccessSpecifier)(Ptr&amp;Mask),en</Item>
758 <Item Name="decl">*(clang::NamedDecl *)(Ptr&amp;~Mask)</Item>
759 </Expand>
Mike Spertus334aa072016-06-11 03:02:33 +0000760 </Type>
Mike Spertus1f506972019-06-17 16:12:45 +0000761 <Type Name="clang::UnqualifiedId">
762 <DisplayString Condition="Kind==UnqualifiedIdKind::IK_Identifier">[IK_Identifier] {*Identifier}</DisplayString>
763 <DisplayString Condition="Kind==UnqualifiedIdKind::IK_OperatorFunctionId">[IK_OperatorFunctionId] {OperatorFunctionId}</DisplayString>
764 <DisplayString Condition="Kind==UnqualifiedIdKind::IK_ConversionFunctionId">[IK_ConversionFunctionId] {ConversionFunctionId}</DisplayString>
765 <DisplayString Condition="Kind==UnqualifiedIdKind::IK_ConstructorName">[IK_ConstructorName] {ConstructorName}</DisplayString>
766 <DisplayString Condition="Kind==UnqualifiedIdKind::IK_DestructorName">[IK_DestructorName] {DestructorName}</DisplayString>
767 <DisplayString Condition="Kind==UnqualifiedIdKind::IK_DeductionGuideName">[IK_DeductionGuideName] {TemplateName}</DisplayString>
768 <DisplayString Condition="Kind==UnqualifiedIdKind::IK_TemplateId">[IK_TemplateId] {TemplateId}</DisplayString>
769 <DisplayString Condition="Kind==UnqualifiedIdKind::IK_ConstructorTemplateId">[IK_ConstructorTemplateId] {TemplateId}</DisplayString>
770 <DisplayString>Kind</DisplayString>
771 <Expand>
772 <ExpandedItem Condition="Kind==UnqualifiedIdKind::IK_Identifier">Identifier</ExpandedItem>
773 <ExpandedItem Condition="Kind==UnqualifiedIdKind::IK_OperatorFunctionId">OperatorFunctionId</ExpandedItem>
774 <ExpandedItem Condition="Kind==UnqualifiedIdKind::IK_ConversionFunctionId">ConversionFunctionId</ExpandedItem>
775 <ExpandedItem Condition="Kind==UnqualifiedIdKind::IK_ConstructorName">ConstructorName</ExpandedItem>
776 <ExpandedItem Condition="Kind==UnqualifiedIdKind::IK_DestructorName">DestructorName</ExpandedItem>
777 <ExpandedItem Condition="Kind==UnqualifiedIdKind::IK_DeductionGuideName">TemplateName</ExpandedItem>
778 <ExpandedItem Condition="Kind==UnqualifiedIdKind::IK_TemplateId">TemplateId</ExpandedItem>
779 <ExpandedItem Condition="Kind==UnqualifiedIdKind::IK_ConstructorTemplateId">TemplateId</ExpandedItem>
780 </Expand>
781 </Type>
782 <Type Name="clang::DeclGroup">
783 <DisplayString>NumDecls={NumDecls}</DisplayString>
784 <Expand>
785 <ArrayItems>
786 <Size>NumDecls</Size>
787 <ValuePointer>(Decl **)(this+1)</ValuePointer>
788 </ArrayItems>
789 </Expand>
790 </Type>
791 <Type Name="clang::DeclGroupRef">
792 <DisplayString Condition="(Kind)((uintptr_t)D&amp;1)==SingleDeclKind">{*D}</DisplayString>
793 <DisplayString>{*(DeclGroup *)((uintptr_t)D&amp;~1)}</DisplayString>
794 <Expand>
795 <ExpandedItem Condition="(Kind)((uintptr_t)D&amp;1)==SingleDeclKind">D</ExpandedItem>
796 <ExpandedItem Condition="(Kind)((uintptr_t)D&amp;1)==DeclGroupKind">(DeclGroup *)((uintptr_t)D&amp;~1)</ExpandedItem>
797 </Expand>
798 </Type>
799 <Type Name="clang::Declarator">
800 <DisplayString>{DS} {Name}</DisplayString>
801 </Type>
Mike Spertus334aa072016-06-11 03:02:33 +0000802 <Type Name="clang::UnresolvedSet&lt;*&gt;">
803 <DisplayString>{Decls}</DisplayString>
804 <Expand>
805 <ExpandedItem>Decls</ExpandedItem>
806 </Expand>
807 </Type>
808 <Type Name="clang::LookupResult">
809 <DisplayString Condition="ResultKind == clang::LookupResult::Ambiguous">{Ambiguity,en}: {Decls}</DisplayString>
810 <DisplayString>{ResultKind,en}: {Decls}</DisplayString>
811 </Type>
Mike Spertus89073db2019-01-03 23:24:39 +0000812 <Type Name="clang::ActionResult&lt;*, 0&gt;">
Mike Spertus897711f2016-06-11 20:15:19 +0000813 <DisplayString Condition="Invalid">Invalid</DisplayString>
Mike Spertus89073db2019-01-03 23:24:39 +0000814 <DisplayString Condition="!*(void **)&amp;Val">Unset</DisplayString>
815 <DisplayString>{Val}</DisplayString>
Mike Spertus897711f2016-06-11 20:15:19 +0000816 </Type>
Mike Spertus89073db2019-01-03 23:24:39 +0000817 <Type Name="clang::ActionResult&lt;*, 1&gt;">
818 <DisplayString Condition="PtrWithInvalid&amp;1">Invalid</DisplayString>
819 <DisplayString Condition="!PtrWithInvalid">Unset</DisplayString>
820 <DisplayString>{($T1)(PtrWithInvalid&amp;~1)}</DisplayString>
Mike Spertus897711f2016-06-11 20:15:19 +0000821 <Expand>
822 <Item Name="Invalid">(bool)(PtrWithInvalid&amp;1)</Item>
Mike Spertus89073db2019-01-03 23:24:39 +0000823 <Item Name="Val">($T1)(PtrWithInvalid&amp;~1)</Item>
Mike Spertus897711f2016-06-11 20:15:19 +0000824 </Expand>
825 </Type>
Aaron Ballman83f197b2014-01-24 19:46:45 +0000826</AutoVisualizer>