Aaron Ballman | 83f197b | 2014-01-24 19:46:45 +0000 | [diff] [blame] | 1 | <?xml version="1.0" encoding="utf-8"?>
|
| 2 | <!--
|
Mike Spertus | 288daa5 | 2016-03-08 16:14:23 +0000 | [diff] [blame] | 3 | Visual Studio Native Debugging Visualizers for LLVM
|
Aaron Ballman | 83f197b | 2014-01-24 19:46:45 +0000 | [diff] [blame] | 4 |
|
Mike Spertus | 6601a44 | 2016-03-28 18:03:37 +0000 | [diff] [blame] | 5 | For Visual Studio 2013 only, put this file into
|
| 6 | "%USERPROFILE%\Documents\Visual Studio 2013\Visualizers" or create a symbolic link so it updates automatically.
|
| 7 |
|
| 8 | For later versions of Visual Studio, no setup is required-->
|
Aaron Ballman | 83f197b | 2014-01-24 19:46:45 +0000 | [diff] [blame] | 9 | <AutoVisualizer xmlns="http://schemas.microsoft.com/vstudio/debugger/natvis/2010">
|
Mike Spertus | 01b14bf | 2016-03-16 14:27:50 +0000 | [diff] [blame] | 10 |
|
Aaron Ballman | 9d21454 | 2015-09-29 17:32:36 +0000 | [diff] [blame] | 11 | <Type Name="clang::Type">
|
Mike Spertus | 01b14bf | 2016-03-16 14:27:50 +0000 | [diff] [blame] | 12 | <!-- To visualize clang::Types, we need to look at TypeBits.TC to determine the actual
|
| 13 | type subclass and manually dispatch accordingly (Visual Studio can't identify the real type
|
| 14 | because clang::Type has no virtual members hence no RTTI).
|
| 15 |
|
| 16 | Views:
|
| 17 | "cmn": Visualization that is common to all clang::Type subclasses
|
| 18 | "poly": Visualization that is specific to the actual clang::Type subclass. The subtype-specific
|
| 19 | <DisplayString> is typically as C++-like as possible (like in dump()) with <Expand>
|
| 20 | containing all the gory details.
|
| 21 | "cpp": Only occasionally used when we need to distinguish between an ordinary view and a C++-like view.
|
| 22 | -->
|
Mike Spertus | 897711f | 2016-06-11 20:15:19 +0000 | [diff] [blame] | 23 | <DisplayString IncludeView="cmn" Condition="TypeBits.TC==clang::LocInfoType::LocInfo">LocInfoType</DisplayString>
|
Mike Spertus | 01b14bf | 2016-03-16 14:27:50 +0000 | [diff] [blame] | 24 | <DisplayString IncludeView="cmn">{(clang::Type::TypeClass)TypeBits.TC, en}Type</DisplayString>
|
| 25 | <!-- Dispatch to visualizers for the actual Type subclass -->
|
| 26 | <DisplayString Condition="TypeBits.TC==clang::Type::TypeClass::Builtin" IncludeView="poly">{*(clang::BuiltinType *)this}</DisplayString>
|
| 27 | <DisplayString Condition="TypeBits.TC==clang::Type::TypeClass::Pointer" IncludeView="poly">{*(clang::PointerType *)this}</DisplayString>
|
| 28 | <DisplayString Condition="TypeBits.TC==clang::Type::TypeClass::LValueReference" IncludeView="poly">{*(clang::LValueReferenceType *)this}</DisplayString>
|
| 29 | <DisplayString Condition="TypeBits.TC==clang::Type::TypeClass::RValueReference" IncludeView="poly">{*(clang::RValueReferenceType *)this}</DisplayString>
|
| 30 | <DisplayString Condition="TypeBits.TC==clang::Type::TypeClass::Attributed" IncludeView="poly">{*(clang::AttributedType *)this}</DisplayString>
|
| 31 | <DisplayString Condition="TypeBits.TC==clang::Type::TypeClass::TemplateTypeParm" IncludeView="poly">{*(clang::TemplateTypeParmType *)this}</DisplayString>
|
| 32 | <DisplayString Condition="TypeBits.TC==clang::Type::TypeClass::SubstTemplateTypeParm" IncludeView="poly">{*(clang::SubstTemplateTypeParmType *)this}</DisplayString>
|
| 33 | <DisplayString Condition="TypeBits.TC==clang::Type::TypeClass::Record" IncludeView="poly">{*(clang::RecordType *)this}</DisplayString>
|
Mike Spertus | 32e9a32 | 2016-03-22 02:29:22 +0000 | [diff] [blame] | 34 | <DisplayString Condition="TypeBits.TC==clang::Type::TypeClass::Record" IncludeView="cpp">{*(clang::RecordType *)this,view(cpp)}</DisplayString>
|
Mike Spertus | 7f2de8e | 2016-03-20 00:20:43 +0000 | [diff] [blame] | 35 | <DisplayString Condition="TypeBits.TC==clang::Type::TypeClass::FunctionProto" IncludeView="poly">{*(clang::FunctionProtoType *)this}</DisplayString>
|
Mike Spertus | a9ab71c | 2016-03-29 09:24:45 +0000 | [diff] [blame] | 36 | <DisplayString Condition="TypeBits.TC==clang::Type::TypeClass::TemplateSpecialization" IncludeView="poly">{*(clang::TemplateSpecializationType *)this}</DisplayString>
|
| 37 | <DisplayString Condition="TypeBits.TC==clang::Type::TypeClass::InjectedClassName" IncludeView="poly">{*(clang::InjectedClassNameType *)this}</DisplayString>
|
Mike Spertus | ce334cf | 2016-06-12 22:54:46 +0000 | [diff] [blame] | 38 | <DisplayString Condition="TypeBits.TC==clang::Type::TypeClass::PackExpansion" IncludeView="poly">{*(clang::PackExpansionType *)this}</DisplayString>
|
Mike Spertus | 897711f | 2016-06-11 20:15:19 +0000 | [diff] [blame] | 39 | <DisplayString Condition="TypeBits.TC==clang::LocInfoType::LocInfo" IncludeView="poly">{*(clang::LocInfoType *)this}</DisplayString>
|
Mike Spertus | 01b14bf | 2016-03-16 14:27:50 +0000 | [diff] [blame] | 40 | <DisplayString IncludeView="cpp">{*this,view(poly)}</DisplayString>
|
Mike Spertus | a9ab71c | 2016-03-29 09:24:45 +0000 | [diff] [blame] | 41 | <DisplayString IncludeView="poly">{*this,view(cmn)}</DisplayString> <!-- Not yet implemented Type subclass -->
|
Mike Spertus | 01b14bf | 2016-03-16 14:27:50 +0000 | [diff] [blame] | 42 | <DisplayString>{*this,view(cmn)} {{{*this,view(poly)}}}</DisplayString>
|
Mike Spertus | 288daa5 | 2016-03-08 16:14:23 +0000 | [diff] [blame] | 43 | <Expand>
|
Mike Spertus | 01b14bf | 2016-03-16 14:27:50 +0000 | [diff] [blame] | 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>
|
Mike Spertus | 7f2de8e | 2016-03-20 00:20:43 +0000 | [diff] [blame] | 55 | <ExpandedItem ExcludeView="cmn" Condition="TypeBits.TC==clang::Type::TypeClass::FunctionProto">(clang::FunctionProtoType *)this</ExpandedItem>
|
Mike Spertus | a9ab71c | 2016-03-29 09:24:45 +0000 | [diff] [blame] | 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>
|
Mike Spertus | ce334cf | 2016-06-12 22:54:46 +0000 | [diff] [blame] | 58 | <ExpandedItem ExcludeView="cmn" Condition="TypeBits.TC==clang::Type::TypeClass::PackExpansion">(clang::PackExpansionType *)this</ExpandedItem>
|
Mike Spertus | 897711f | 2016-06-11 20:15:19 +0000 | [diff] [blame] | 59 | <ExpandedItem ExcludeView="cmn" Condition="TypeBits.TC==clang::LocInfoType::LocInfo">(clang::LocInfoType *)this</ExpandedItem>
|
Mike Spertus | 288daa5 | 2016-03-08 16:14:23 +0000 | [diff] [blame] | 60 | </Expand>
|
| 61 | </Type>
|
Mike Spertus | 01b14bf | 2016-03-16 14:27:50 +0000 | [diff] [blame] | 62 | <Type Name="clang::PointerType">
|
| 63 | <DisplayString>{PointeeType, view(poly)} *</DisplayString>
|
| 64 | <Expand>
|
Mike Spertus | 01b14bf | 2016-03-16 14:27:50 +0000 | [diff] [blame] | 65 | <Item Name="PointeeType">PointeeType</Item>
|
Mike Spertus | 8874ef7 | 2016-04-04 19:36:48 +0000 | [diff] [blame] | 66 | <ExpandedItem>*(clang::Type *)this, view(cmn)</ExpandedItem>
|
Mike Spertus | 01b14bf | 2016-03-16 14:27:50 +0000 | [diff] [blame] | 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>
|
Mike Spertus | a814d3d | 2016-03-18 16:38:34 +0000 | [diff] [blame] | 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>
|
Mike Spertus | 32e9a32 | 2016-03-22 02:29:22 +0000 | [diff] [blame] | 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>
|
Mike Spertus | a814d3d | 2016-03-18 16:38:34 +0000 | [diff] [blame] | 105 | </Expand>
|
| 106 | </Type>
|
| 107 | <Type Name="clang::FieldDecl">
|
Mike Spertus | 85a8abe | 2016-03-23 17:29:42 +0000 | [diff] [blame] | 108 | <DisplayString>Field {{{*(clang::DeclaratorDecl *)this,view(cpp)nd}}}</DisplayString>
|
Mike Spertus | a814d3d | 2016-03-18 16:38:34 +0000 | [diff] [blame] | 109 | </Type>
|
| 110 | <Type Name="clang::CXXMethodDecl">
|
Mike Spertus | 32e9a32 | 2016-03-22 02:29:22 +0000 | [diff] [blame] | 111 | <DisplayString IncludeView="cpp">{*(clang::FunctionDecl *)this,nd}</DisplayString>
|
| 112 | <DisplayString>Method {{{*this,view(cpp)}}}</DisplayString>
|
Mike Spertus | a814d3d | 2016-03-18 16:38:34 +0000 | [diff] [blame] | 113 | </Type>
|
| 114 | <Type Name="clang::CXXConstructorDecl">
|
Mike Spertus | 32e9a32 | 2016-03-22 02:29:22 +0000 | [diff] [blame] | 115 | <DisplayString>Constructor {{{Name,view(cpp)}({*(clang::FunctionDecl *)this,view(parm0)nd})}}</DisplayString>
|
Mike Spertus | a814d3d | 2016-03-18 16:38:34 +0000 | [diff] [blame] | 116 | </Type>
|
| 117 | <Type Name="clang::CXXDestructorDecl">
|
Mike Spertus | 32e9a32 | 2016-03-22 02:29:22 +0000 | [diff] [blame] | 118 | <DisplayString>Destructor {{~{Name,view(cpp)}()}}</DisplayString>
|
Mike Spertus | a814d3d | 2016-03-18 16:38:34 +0000 | [diff] [blame] | 119 | </Type>
|
Mike Spertus | 1796c2e | 2016-03-29 10:57:24 +0000 | [diff] [blame] | 120 | <Type Name="clang::TemplateTypeParmDecl">
|
Mike Spertus | 819fb78 | 2016-05-24 01:47:41 +0000 | [diff] [blame] | 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>
|
Mike Spertus | 1796c2e | 2016-03-29 10:57:24 +0000 | [diff] [blame] | 126 | </Type>
|
Mike Spertus | 61c3f39 | 2016-03-31 06:09:56 +0000 | [diff] [blame] | 127 | <Type Name="clang::TemplateDecl">
|
| 128 | <DisplayString>template{*TemplateParams} {*TemplatedDecl};</DisplayString>
|
| 129 | </Type>
|
Mike Spertus | 01b14bf | 2016-03-16 14:27:50 +0000 | [diff] [blame] | 130 | <Type Name="clang::NamedDecl" >
|
| 131 | <DisplayString IncludeView="cpp">{Name,view(cpp)}</DisplayString>
|
| 132 | <DisplayString>{Name}</DisplayString>
|
| 133 | </Type>
|
| 134 | <Type Name="clang::TagDecl">
|
Mike Spertus | 32e9a32 | 2016-03-22 02:29:22 +0000 | [diff] [blame] | 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>
|
Mike Spertus | a814d3d | 2016-03-18 16:38:34 +0000 | [diff] [blame] | 144 | <Expand>
|
| 145 | <ExpandedItem>(clang::DeclContext *)this</ExpandedItem>
|
| 146 | </Expand>
|
Mike Spertus | 01b14bf | 2016-03-16 14:27:50 +0000 | [diff] [blame] | 147 | </Type>
|
Mike Spertus | 288daa5 | 2016-03-08 16:14:23 +0000 | [diff] [blame] | 148 | <Type Name="clang::TagType">
|
Mike Spertus | 32e9a32 | 2016-03-22 02:29:22 +0000 | [diff] [blame] | 149 | <DisplayString IncludeView="cpp">{*decl,view(cpp)}</DisplayString>
|
Mike Spertus | 288daa5 | 2016-03-08 16:14:23 +0000 | [diff] [blame] | 150 | <DisplayString>{*decl}</DisplayString>
|
| 151 | <Expand>
|
Mike Spertus | 01b14bf | 2016-03-16 14:27:50 +0000 | [diff] [blame] | 152 | <ExpandedItem>*(clang::Type *)this, view(cmn)</ExpandedItem>
|
Mike Spertus | 288daa5 | 2016-03-08 16:14:23 +0000 | [diff] [blame] | 153 | <Item Name="decl">decl</Item>
|
| 154 | </Expand>
|
| 155 | </Type>
|
| 156 | <Type Name="clang::RecordType">
|
Mike Spertus | 32e9a32 | 2016-03-22 02:29:22 +0000 | [diff] [blame] | 157 | <DisplayString IncludeView="cpp">{*(clang::TagType *)this,view(cpp)}</DisplayString>
|
Mike Spertus | 01b14bf | 2016-03-16 14:27:50 +0000 | [diff] [blame] | 158 | <DisplayString>{*(clang::TagType *)this}</DisplayString>
|
Mike Spertus | 288daa5 | 2016-03-08 16:14:23 +0000 | [diff] [blame] | 159 | <Expand>
|
| 160 | <Item Name="TagType">*(clang::TagType *)this</Item>
|
| 161 | </Expand>
|
| 162 | </Type>
|
| 163 | <Type Name="clang::SubstTemplateTypeParmType">
|
Mike Spertus | 01b14bf | 2016-03-16 14:27:50 +0000 | [diff] [blame] | 164 | <DisplayString>{*Replaced,view(cpp)} <= {CanonicalType,view(cpp)}</DisplayString>
|
Mike Spertus | 288daa5 | 2016-03-08 16:14:23 +0000 | [diff] [blame] | 165 | <Expand>
|
Mike Spertus | 01b14bf | 2016-03-16 14:27:50 +0000 | [diff] [blame] | 166 | <ExpandedItem>*(clang::Type *)this, view(cmn)</ExpandedItem>
|
Mike Spertus | 288daa5 | 2016-03-08 16:14:23 +0000 | [diff] [blame] | 167 | <Item Name="Replaced">*Replaced</Item>
|
| 168 | </Expand>
|
| 169 | </Type>
|
Mike Spertus | 7f2de8e | 2016-03-20 00:20:43 +0000 | [diff] [blame] | 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">
|
Mike Spertus | 6fa3e59 | 2016-03-20 20:15:23 +0000 | [diff] [blame] | 173 | <DisplayString IncludeView="retType">{ResultType,view(cpp)}</DisplayString>
|
Mike Spertus | 7f2de8e | 2016-03-20 00:20:43 +0000 | [diff] [blame] | 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>
|
Mike Spertus | 6fa3e59 | 2016-03-20 20:15:23 +0000 | [diff] [blame] | 186 | <DisplayString>{*this,view(retType)}({*this,view(parm0)})</DisplayString>
|
Mike Spertus | 7f2de8e | 2016-03-20 00:20:43 +0000 | [diff] [blame] | 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>
|
Mike Spertus | 288daa5 | 2016-03-08 16:14:23 +0000 | [diff] [blame] | 201 | <Type Name="clang::TemplateTypeParmType">
|
Mike Spertus | 8874ef7 | 2016-04-04 19:36:48 +0000 | [diff] [blame] | 202 | <DisplayString IncludeView="cpp">{*TTPDecl,view(cpp)}</DisplayString>
|
| 203 | <DisplayString>{*TTPDecl}</DisplayString>
|
Aaron Ballman | 9d21454 | 2015-09-29 17:32:36 +0000 | [diff] [blame] | 204 | </Type>
|
Mike Spertus | a9ab71c | 2016-03-29 09:24:45 +0000 | [diff] [blame] | 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>
|
Mike Spertus | ce334cf | 2016-06-12 22:54:46 +0000 | [diff] [blame] | 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>
|
Aaron Ballman | 9d21454 | 2015-09-29 17:32:36 +0000 | [diff] [blame] | 221 | <Type Name="clang::QualType">
|
Mike Spertus | 8758c9d | 2016-03-24 00:38:54 +0000 | [diff] [blame] | 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>
|
Mike Spertus | 288daa5 | 2016-03-08 16:14:23 +0000 | [diff] [blame] | 237 | <Expand>
|
Mike Spertus | 8758c9d | 2016-03-24 00:38:54 +0000 | [diff] [blame] | 238 | <Item Name="Fast Quals">*this,view(fastQuals)</Item>
|
Mike Spertus | 288daa5 | 2016-03-08 16:14:23 +0000 | [diff] [blame] | 239 | <Item Name="BaseType">*((clang::ExtQualsTypeCommonBase *)(((uintptr_t)Value.Value) & ~(uintptr_t)((1 << 4) - 1)))->BaseType</Item>
|
| 240 | </Expand>
|
| 241 | </Type>
|
Mike Spertus | 897711f | 2016-06-11 20:15:19 +0000 | [diff] [blame] | 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>
|
Mike Spertus | 288daa5 | 2016-03-08 16:14:23 +0000 | [diff] [blame] | 252 | <Type Name="clang::TemplateArgumentLoc">
|
| 253 | <DisplayString>{Argument}</DisplayString>
|
| 254 | <Expand>
|
| 255 | <ExpandedItem>Argument</ExpandedItem>
|
| 256 | </Expand>
|
| 257 | </Type>
|
| 258 | <Type Name="clang::TemplateArgument">
|
Mike Spertus | 603bbfc | 2016-06-06 17:08:32 +0000 | [diff] [blame] | 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>
|
Mike Spertus | 64aa76d | 2016-05-23 22:27:44 +0000 | [diff] [blame] | 275 | <DisplayString>{(clang::TemplateArgument::ArgKind)TypeOrValue.Kind,en}</DisplayString>
|
Mike Spertus | 288daa5 | 2016-03-08 16:14:23 +0000 | [diff] [blame] | 276 | <Expand>
|
| 277 | <Item Name="QualType" Condition="Integer.Kind == clang::TemplateArgument::ArgKind::Type">*(clang::QualType *)&TypeOrValue.V</Item>
|
Mike Spertus | 64aa76d | 2016-05-23 22:27:44 +0000 | [diff] [blame] | 278 | <ArrayItems Condition="Integer.Kind == clang::TemplateArgument::ArgKind::Pack">
|
| 279 | <Size>Args.NumArgs</Size>
|
| 280 | <ValuePointer>Args.Args</ValuePointer>
|
| 281 | </ArrayItems>
|
Mike Spertus | 288daa5 | 2016-03-08 16:14:23 +0000 | [diff] [blame] | 282 | <!-- TODO: Other kinds-->
|
| 283 | </Expand>
|
| 284 | </Type>
|
Mike Spertus | 603bbfc | 2016-06-06 17:08:32 +0000 | [diff] [blame] | 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>
|
Mike Spertus | 1f56e99 | 2016-06-06 21:41:20 +0000 | [diff] [blame] | 291 | <DisplayString IncludeView="arg2">, {Arguments[1],view(cpp)}, ...</DisplayString>
|
Mike Spertus | 603bbfc | 2016-06-06 17:08:32 +0000 | [diff] [blame] | 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>
|
Mike Spertus | 1f56e99 | 2016-06-06 21:41:20 +0000 | [diff] [blame] | 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>
|
Mike Spertus | 47f4890 | 2016-06-12 22:21:56 +0000 | [diff] [blame] | 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>
|
Mike Spertus | 1d051ee | 2016-03-20 00:32:30 +0000 | [diff] [blame] | 333 | <!-- Builtin types that have C++ keywords are manually displayed as that keyword. Otherwise, just use the enum name -->
|
Mike Spertus | 288daa5 | 2016-03-08 16:14:23 +0000 | [diff] [blame] | 334 | <Type Name="clang::BuiltinType">
|
Mike Spertus | 1d051ee | 2016-03-20 00:32:30 +0000 | [diff] [blame] | 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>
|
Mike Spertus | 288daa5 | 2016-03-08 16:14:23 +0000 | [diff] [blame] | 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>
|
Mike Spertus | 01b14bf | 2016-03-16 14:27:50 +0000 | [diff] [blame] | 365 |
|
Mike Spertus | 288daa5 | 2016-03-08 16:14:23 +0000 | [diff] [blame] | 366 | <Type Name="clang::TemplateSpecializationType">
|
Mike Spertus | 63e428f | 2016-04-01 03:31:43 +0000 | [diff] [blame] | 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>
|
Aaron Ballman | 9d21454 | 2015-09-29 17:32:36 +0000 | [diff] [blame] | 383 | </Type>
|
Aaron Ballman | 83f197b | 2014-01-24 19:46:45 +0000 | [diff] [blame] | 384 | <Type Name="clang::IdentifierInfo">
|
Mike Spertus | 01b14bf | 2016-03-16 14:27:50 +0000 | [diff] [blame] | 385 | <DisplayString Condition="Entry != 0">{((llvm::StringMapEntry<clang::IdentifierInfo *>*)Entry)+1,sb}</DisplayString>
|
Aaron Ballman | 83f197b | 2014-01-24 19:46:45 +0000 | [diff] [blame] | 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">
|
Mike Spertus | 6fa3e59 | 2016-03-20 20:15:23 +0000 | [diff] [blame] | 392 | <DisplayString Condition="Ptr == 0" IncludeView="cpp"></DisplayString>
|
Aaron Ballman | 83f197b | 2014-01-24 19:46:45 +0000 | [diff] [blame] | 393 | <DisplayString Condition="Ptr == 0">Empty</DisplayString>
|
Mike Spertus | 01b14bf | 2016-03-16 14:27:50 +0000 | [diff] [blame] | 394 | <DisplayString Condition="(Ptr & PtrMask) == StoredIdentifier" IncludeView="cpp">{*(clang::IdentifierInfo *)(Ptr & ~PtrMask)}</DisplayString>
|
Zachary Turner | dfa871b | 2014-06-26 16:26:42 +0000 | [diff] [blame] | 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>
|
Mike Spertus | 32e9a32 | 2016-03-22 02:29:22 +0000 | [diff] [blame] | 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>
|
Aaron Ballman | 83f197b | 2014-01-24 19:46:45 +0000 | [diff] [blame] | 401 | <Expand>
|
Zachary Turner | dfa871b | 2014-06-26 16:26:42 +0000 | [diff] [blame] | 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>
|
Mike Spertus | 32e9a32 | 2016-03-22 02:29:22 +0000 | [diff] [blame] | 405 | <Item Condition="(Ptr & PtrMask) == StoredDeclarationNameExtra" Name="[Extra]">(clang::DeclarationNameExtra *)(Ptr & ~PtrMask)</Item>
|
Mike Spertus | 288daa5 | 2016-03-08 16:14:23 +0000 | [diff] [blame] | 406 | </Expand>
|
| 407 | </Type>
|
Mike Spertus | 32e9a32 | 2016-03-22 02:29:22 +0000 | [diff] [blame] | 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>
|
Mike Spertus | 288daa5 | 2016-03-08 16:14:23 +0000 | [diff] [blame] | 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>
|
Aaron Ballman | 83f197b | 2014-01-24 19:46:45 +0000 | [diff] [blame] | 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>
|
Zachary Turner | dfa871b | 2014-06-26 16:26:42 +0000 | [diff] [blame] | 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>
|
Mike Spertus | 6fa3e59 | 2016-03-20 20:15:23 +0000 | [diff] [blame] | 438 | <Type Name="clang::DeclaratorDecl">
|
| 439 | <DisplayString>{DeclType,view(cpp)} {Name,view(cpp)}</DisplayString>
|
Mike Spertus | 8a0a1d7 | 2016-06-07 00:27:37 +0000 | [diff] [blame] | 440 | <Expand>
|
| 441 | <Item Name="Name">Name</Item>
|
| 442 | <Item Name="DeclType">DeclType</Item>
|
| 443 | </Expand>
|
Mike Spertus | 6fa3e59 | 2016-03-20 20:15:23 +0000 | [diff] [blame] | 444 | </Type>
|
Zachary Turner | dfa871b | 2014-06-26 16:26:42 +0000 | [diff] [blame] | 445 | <Type Name="clang::VarDecl">
|
Mike Spertus | 6fa3e59 | 2016-03-20 20:15:23 +0000 | [diff] [blame] | 446 | <DisplayString>{*(DeclaratorDecl*)this,nd}</DisplayString>
|
Zachary Turner | dfa871b | 2014-06-26 16:26:42 +0000 | [diff] [blame] | 447 | <Expand>
|
| 448 | <ExpandedItem>*(DeclaratorDecl*)this,nd</ExpandedItem>
|
| 449 | <Item Name="VarDeclBits">VarDeclBits</Item>
|
Mike Spertus | 6fa3e59 | 2016-03-20 20:15:23 +0000 | [diff] [blame] | 450 | </Expand>
|
| 451 | </Type>
|
| 452 | <Type Name="clang::ParmVarDecl">
|
| 453 | <DisplayString>{*(VarDecl*)this,nd}</DisplayString>
|
| 454 | <Expand>
|
Zachary Turner | dfa871b | 2014-06-26 16:26:42 +0000 | [diff] [blame] | 455 | <Item Name="ParmVarDeclBits">ParmVarDeclBits</Item>
|
Mike Spertus | 6fa3e59 | 2016-03-20 20:15:23 +0000 | [diff] [blame] | 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>
|
Mike Spertus | 32e9a32 | 2016-03-22 02:29:22 +0000 | [diff] [blame] | 462 | <DisplayString IncludeView="parm0">{*ParamInfo[0]}{*this,view(parm1)nd}</DisplayString>
|
Mike Spertus | 6fa3e59 | 2016-03-20 20:15:23 +0000 | [diff] [blame] | 463 | <DisplayString IncludeView="parm1" Condition="1 == ((clang::FunctionProtoType *)((clang::ExtQualsTypeCommonBase *)(((uintptr_t)DeclType.Value.Value) & ~15))->BaseType)->NumParams"></DisplayString>
|
Mike Spertus | 32e9a32 | 2016-03-22 02:29:22 +0000 | [diff] [blame] | 464 | <DisplayString IncludeView="parm1">, {*ParamInfo[1]}{*this,view(parm2)nd}</DisplayString>
|
Mike Spertus | 6fa3e59 | 2016-03-20 20:15:23 +0000 | [diff] [blame] | 465 | <DisplayString IncludeView="parm2" Condition="2 == ((clang::FunctionProtoType *)((clang::ExtQualsTypeCommonBase *)(((uintptr_t)DeclType.Value.Value) & ~15))->BaseType)->NumParams"></DisplayString>
|
Mike Spertus | 32e9a32 | 2016-03-22 02:29:22 +0000 | [diff] [blame] | 466 | <DisplayString IncludeView="parm2">, {*ParamInfo[2]}{*this,view(parm3)nd}</DisplayString>
|
Mike Spertus | 6fa3e59 | 2016-03-20 20:15:23 +0000 | [diff] [blame] | 467 | <DisplayString IncludeView="parm3" Condition="3 == ((clang::FunctionProtoType *)((clang::ExtQualsTypeCommonBase *)(((uintptr_t)DeclType.Value.Value) & ~15))->BaseType)->NumParams"></DisplayString>
|
Mike Spertus | 32e9a32 | 2016-03-22 02:29:22 +0000 | [diff] [blame] | 468 | <DisplayString IncludeView="parm3">, {*ParamInfo[3]}{*this,view(parm4)nd}</DisplayString>
|
Mike Spertus | 6fa3e59 | 2016-03-20 20:15:23 +0000 | [diff] [blame] | 469 | <DisplayString IncludeView="parm4" Condition="4 == ((clang::FunctionProtoType *)((clang::ExtQualsTypeCommonBase *)(((uintptr_t)DeclType.Value.Value) & ~15))->BaseType)->NumParams"></DisplayString>
|
Mike Spertus | 32e9a32 | 2016-03-22 02:29:22 +0000 | [diff] [blame] | 470 | <DisplayString IncludeView="parm4">, {*ParamInfo[4]}{*this,view(parm5)nd}</DisplayString>
|
Mike Spertus | 6fa3e59 | 2016-03-20 20:15:23 +0000 | [diff] [blame] | 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>
|
Mike Spertus | 32e9a32 | 2016-03-22 02:29:22 +0000 | [diff] [blame] | 473 | <DisplayString>{*this,view(retType)nd} {Name,view(cpp)nd}({*this,view(parm0)nd})</DisplayString>
|
Mike Spertus | 6fa3e59 | 2016-03-20 20:15:23 +0000 | [diff] [blame] | 474 | <Expand>
|
Mike Spertus | 32e9a32 | 2016-03-22 02:29:22 +0000 | [diff] [blame] | 475 | <Item Name="ReturnType">*this,view(retType)nd</Item>
|
Mike Spertus | 6fa3e59 | 2016-03-20 20:15:23 +0000 | [diff] [blame] | 476 | <Synthetic Name="Parameter Types">
|
Mike Spertus | 32e9a32 | 2016-03-22 02:29:22 +0000 | [diff] [blame] | 477 | <DisplayString>{*this,view(parm0)nd}</DisplayString>
|
Mike Spertus | 6fa3e59 | 2016-03-20 20:15:23 +0000 | [diff] [blame] | 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>
|
Zachary Turner | dfa871b | 2014-06-26 16:26:42 +0000 | [diff] [blame] | 486 | </Expand>
|
| 487 | </Type>
|
Mike Spertus | 27c72d2f | 2016-06-13 04:02:35 +0000 | [diff] [blame^] | 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>
|
Mike Spertus | 288daa5 | 2016-03-08 16:14:23 +0000 | [diff] [blame] | 500 | <Type Name="clang::OpaquePtr<*>">
|
Mike Spertus | 3f19966 | 2016-06-10 22:25:43 +0000 | [diff] [blame] | 501 | <DisplayString>{($T1 *)Ptr}</DisplayString>
|
Mike Spertus | 288daa5 | 2016-03-08 16:14:23 +0000 | [diff] [blame] | 502 | <Expand>
|
| 503 | <ExpandedItem>($T1 *)Ptr</ExpandedItem>
|
| 504 | </Expand>
|
| 505 | </Type>
|
Mike Spertus | 27c72d2f | 2016-06-13 04:02:35 +0000 | [diff] [blame^] | 506 | <Type Name="clang::UnionOpaquePtr<*>">
|
| 507 | <DisplayString>{($T1 *)Ptr}</DisplayString>
|
| 508 | <Expand>
|
| 509 | <ExpandedItem>($T1 *)Ptr</ExpandedItem>
|
| 510 | </Expand>
|
| 511 | </Type>
|
Mike Spertus | 1796c2e | 2016-03-29 10:57:24 +0000 | [diff] [blame] | 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>
|
Mike Spertus | 5bf7fd8 | 2016-06-12 18:42:04 +0000 | [diff] [blame] | 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>
|
Mike Spertus | b27ebb8 | 2016-05-16 01:36:09 +0000 | [diff] [blame] | 539 | <Type Name="clang::Expr">
|
Mike Spertus | ef8c308 | 2016-06-06 03:37:18 +0000 | [diff] [blame] | 540 | <DisplayString>Expression of class {(clang::Stmt::StmtClass)StmtBits.sClass,en} and type {TR,view(cpp)}</DisplayString>
|
Mike Spertus | b27ebb8 | 2016-05-16 01:36:09 +0000 | [diff] [blame] | 541 | </Type>
|
Mike Spertus | 334aa07 | 2016-06-11 03:02:33 +0000 | [diff] [blame] | 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>
|
Mike Spertus | 897711f | 2016-06-11 20:15:19 +0000 | [diff] [blame] | 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>
|
Aaron Ballman | 83f197b | 2014-01-24 19:46:45 +0000 | [diff] [blame] | 586 | </AutoVisualizer>
|