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