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 | -->
|
| 23 | <DisplayString IncludeView="cmn">{(clang::Type::TypeClass)TypeBits.TC, en}Type</DisplayString>
|
| 24 | <!-- Dispatch to visualizers for the actual Type subclass -->
|
| 25 | <DisplayString Condition="TypeBits.TC==clang::Type::TypeClass::Builtin" IncludeView="poly">{*(clang::BuiltinType *)this}</DisplayString>
|
| 26 | <DisplayString Condition="TypeBits.TC==clang::Type::TypeClass::Pointer" IncludeView="poly">{*(clang::PointerType *)this}</DisplayString>
|
| 27 | <DisplayString Condition="TypeBits.TC==clang::Type::TypeClass::LValueReference" IncludeView="poly">{*(clang::LValueReferenceType *)this}</DisplayString>
|
| 28 | <DisplayString Condition="TypeBits.TC==clang::Type::TypeClass::RValueReference" IncludeView="poly">{*(clang::RValueReferenceType *)this}</DisplayString>
|
| 29 | <DisplayString Condition="TypeBits.TC==clang::Type::TypeClass::Attributed" IncludeView="poly">{*(clang::AttributedType *)this}</DisplayString>
|
| 30 | <DisplayString Condition="TypeBits.TC==clang::Type::TypeClass::TemplateTypeParm" IncludeView="poly">{*(clang::TemplateTypeParmType *)this}</DisplayString>
|
| 31 | <DisplayString Condition="TypeBits.TC==clang::Type::TypeClass::SubstTemplateTypeParm" IncludeView="poly">{*(clang::SubstTemplateTypeParmType *)this}</DisplayString>
|
| 32 | <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] | 33 | <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] | 34 | <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] | 35 | <DisplayString Condition="TypeBits.TC==clang::Type::TypeClass::TemplateSpecialization" IncludeView="poly">{*(clang::TemplateSpecializationType *)this}</DisplayString>
|
| 36 | <DisplayString Condition="TypeBits.TC==clang::Type::TypeClass::InjectedClassName" IncludeView="poly">{*(clang::InjectedClassNameType *)this}</DisplayString>
|
Mike Spertus | 01b14bf | 2016-03-16 14:27:50 +0000 | [diff] [blame] | 37 | <DisplayString IncludeView="cpp">{*this,view(poly)}</DisplayString>
|
Mike Spertus | a9ab71c | 2016-03-29 09:24:45 +0000 | [diff] [blame] | 38 | <DisplayString IncludeView="poly">{*this,view(cmn)}</DisplayString> <!-- Not yet implemented Type subclass -->
|
Mike Spertus | 01b14bf | 2016-03-16 14:27:50 +0000 | [diff] [blame] | 39 | <DisplayString>{*this,view(cmn)} {{{*this,view(poly)}}}</DisplayString>
|
Mike Spertus | 288daa5 | 2016-03-08 16:14:23 +0000 | [diff] [blame] | 40 | <Expand>
|
Mike Spertus | 01b14bf | 2016-03-16 14:27:50 +0000 | [diff] [blame] | 41 | <Item Name="TypeClass" IncludeView="cmn">(clang::Type::TypeClass)TypeBits.TC</Item>
|
| 42 | <Item Name="Flags" IncludeView="cmn">TypeBits</Item>
|
| 43 | <Item Name="Canonical" IncludeView="cmn">CanonicalType</Item>
|
| 44 | <ExpandedItem ExcludeView="cmn" Condition="TypeBits.TC==clang::Type::TypeClass::Builtin">*(clang::BuiltinType *)this</ExpandedItem>
|
| 45 | <ExpandedItem ExcludeView="cmn" Condition="TypeBits.TC==clang::Type::TypeClass::Pointer">*(clang::PointerType *)this</ExpandedItem>
|
| 46 | <ExpandedItem ExcludeView="cmn" Condition="TypeBits.TC==clang::Type::TypeClass::LValueReference">*(clang::LValueReferenceType *)this</ExpandedItem>
|
| 47 | <ExpandedItem ExcludeView="cmn" Condition="TypeBits.TC==clang::Type::TypeClass::RValueReference">*(clang::RValueReferenceType *)this</ExpandedItem>
|
| 48 | <ExpandedItem ExcludeView="cmn" Condition="TypeBits.TC==clang::Type::TypeClass::Attributed">*(clang::AttributedType *)this</ExpandedItem>
|
| 49 | <ExpandedItem ExcludeView="cmn" Condition="TypeBits.TC==clang::Type::TypeClass::TemplateTypeParm">(clang::TemplateTypeParmType *)this</ExpandedItem>
|
| 50 | <ExpandedItem ExcludeView="cmn" Condition="TypeBits.TC==clang::Type::TypeClass::SubstTemplateTypeParm">(clang::SubstTemplateTypeParmType *)this</ExpandedItem>
|
| 51 | <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] | 52 | <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] | 53 | <ExpandedItem ExcludeView="cmn" Condition="TypeBits.TC==clang::Type::TypeClass::TemplateSpecialization">(clang::TemplateSpecializationType *)this</ExpandedItem>
|
| 54 | <ExpandedItem ExcludeView="cmn" Condition="TypeBits.TC==clang::Type::TypeClass::InjectedClassName">(clang::InjectedClassNameType *)this</ExpandedItem>
|
Mike Spertus | 288daa5 | 2016-03-08 16:14:23 +0000 | [diff] [blame] | 55 | </Expand>
|
| 56 | </Type>
|
Mike Spertus | 01b14bf | 2016-03-16 14:27:50 +0000 | [diff] [blame] | 57 | <Type Name="clang::PointerType">
|
| 58 | <DisplayString>{PointeeType, view(poly)} *</DisplayString>
|
| 59 | <Expand>
|
Mike Spertus | 01b14bf | 2016-03-16 14:27:50 +0000 | [diff] [blame] | 60 | <Item Name="PointeeType">PointeeType</Item>
|
Mike Spertus | 8874ef7 | 2016-04-04 19:36:48 +0000 | [diff] [blame] | 61 | <ExpandedItem>*(clang::Type *)this, view(cmn)</ExpandedItem>
|
Mike Spertus | 01b14bf | 2016-03-16 14:27:50 +0000 | [diff] [blame] | 62 | </Expand>
|
| 63 | </Type>
|
| 64 | <!-- We visualize all inner types for clang reference types. So a rvalue reference to an lvalue reference
|
| 65 | to an int would visual as int & && This is a little different than GetPointeeType(),
|
| 66 | but more clearly displays the data structure and seems natural -->
|
| 67 | <Type Name="clang::LValueReferenceType">
|
| 68 | <DisplayString>{((clang::ReferenceType *)this)->PointeeType,view(cpp)} &</DisplayString>
|
| 69 | <Expand>
|
| 70 | <ExpandedItem>*(clang::Type *)this, view(cmn)</ExpandedItem>
|
| 71 | <Item Name="PointeeType">PointeeType</Item>
|
| 72 | </Expand>
|
| 73 | </Type>
|
| 74 | <Type Name="clang::RValueReferenceType">
|
| 75 | <DisplayString>{((clang::ReferenceType *)this)->PointeeType,view(cpp)} &&</DisplayString>
|
| 76 | <Expand>
|
| 77 | <ExpandedItem>*(clang::Type *)this, view(cmn)</ExpandedItem>
|
| 78 | <Item Name="PointeeType">PointeeType</Item>
|
| 79 | </Expand>
|
| 80 | </Type>
|
| 81 | <Type Name="clang::AttributedType">
|
| 82 | <DisplayString>{ModifiedType} Attribute={(clang::AttributedType::Kind)AttributedTypeBits.AttrKind}</DisplayString>
|
| 83 | </Type>
|
Mike Spertus | a814d3d | 2016-03-18 16:38:34 +0000 | [diff] [blame] | 84 |
|
| 85 | <!-- Unfortunately, Visual Studio has trouble seeing the PointerBitMask member PointerIntUnion, so I hardwire it to 2 bits-->
|
| 86 | <Type Name="clang::DeclContext">
|
| 87 | <DisplayString>{(clang::Decl::Kind)DeclKind,en}Decl</DisplayString>
|
| 88 | <Expand>
|
| 89 | <Item Name="DeclKind">(clang::Decl::Kind)DeclKind,en</Item>
|
Mike Spertus | 32e9a32 | 2016-03-22 02:29:22 +0000 | [diff] [blame] | 90 | <Synthetic Name="Members">
|
| 91 | <DisplayString></DisplayString>
|
| 92 | <Expand>
|
| 93 | <LinkedListItems>
|
| 94 | <HeadPointer>FirstDecl</HeadPointer>
|
| 95 | <NextPointer>(clang::Decl *)(NextInContextAndBits.Value & ~3)</NextPointer>
|
| 96 | <ValueNode>*this</ValueNode>
|
| 97 | </LinkedListItems>
|
| 98 | </Expand>
|
| 99 | </Synthetic>
|
Mike Spertus | a814d3d | 2016-03-18 16:38:34 +0000 | [diff] [blame] | 100 | </Expand>
|
| 101 | </Type>
|
| 102 | <Type Name="clang::FieldDecl">
|
Mike Spertus | 85a8abe | 2016-03-23 17:29:42 +0000 | [diff] [blame] | 103 | <DisplayString>Field {{{*(clang::DeclaratorDecl *)this,view(cpp)nd}}}</DisplayString>
|
Mike Spertus | a814d3d | 2016-03-18 16:38:34 +0000 | [diff] [blame] | 104 | </Type>
|
| 105 | <Type Name="clang::CXXMethodDecl">
|
Mike Spertus | 32e9a32 | 2016-03-22 02:29:22 +0000 | [diff] [blame] | 106 | <DisplayString IncludeView="cpp">{*(clang::FunctionDecl *)this,nd}</DisplayString>
|
| 107 | <DisplayString>Method {{{*this,view(cpp)}}}</DisplayString>
|
Mike Spertus | a814d3d | 2016-03-18 16:38:34 +0000 | [diff] [blame] | 108 | </Type>
|
| 109 | <Type Name="clang::CXXConstructorDecl">
|
Mike Spertus | 32e9a32 | 2016-03-22 02:29:22 +0000 | [diff] [blame] | 110 | <DisplayString>Constructor {{{Name,view(cpp)}({*(clang::FunctionDecl *)this,view(parm0)nd})}}</DisplayString>
|
Mike Spertus | a814d3d | 2016-03-18 16:38:34 +0000 | [diff] [blame] | 111 | </Type>
|
| 112 | <Type Name="clang::CXXDestructorDecl">
|
Mike Spertus | 32e9a32 | 2016-03-22 02:29:22 +0000 | [diff] [blame] | 113 | <DisplayString>Destructor {{~{Name,view(cpp)}()}}</DisplayString>
|
Mike Spertus | a814d3d | 2016-03-18 16:38:34 +0000 | [diff] [blame] | 114 | </Type>
|
Mike Spertus | 1796c2e | 2016-03-29 10:57:24 +0000 | [diff] [blame] | 115 | <Type Name="clang::TemplateTypeParmDecl">
|
Mike Spertus | 819fb78 | 2016-05-24 01:47:41 +0000 | [diff] [blame] | 116 | <DisplayString IncludeView="TorC" Condition="Typename">typename</DisplayString>
|
| 117 | <DisplayString IncludeView="TorC" Condition="!Typename">class</DisplayString>
|
| 118 | <DisplayString IncludeView="MaybeEllipses" Condition="((TemplateTypeParmType *)TypeForDecl)->CanTTPTInfo.ParameterPack">...</DisplayString>
|
| 119 | <DisplayString IncludeView="MaybeEllipses" Condition="!((TemplateTypeParmType *)TypeForDecl)->CanTTPTInfo.ParameterPack"></DisplayString>
|
| 120 | <DisplayString>{*this,view(TorC)} {*this,view(MaybeEllipses)}{Name,view(cpp)}</DisplayString>
|
Mike Spertus | 1796c2e | 2016-03-29 10:57:24 +0000 | [diff] [blame] | 121 | </Type>
|
Mike Spertus | 61c3f39 | 2016-03-31 06:09:56 +0000 | [diff] [blame] | 122 | <Type Name="clang::TemplateDecl">
|
| 123 | <DisplayString>template{*TemplateParams} {*TemplatedDecl};</DisplayString>
|
| 124 | </Type>
|
Mike Spertus | 01b14bf | 2016-03-16 14:27:50 +0000 | [diff] [blame] | 125 | <Type Name="clang::NamedDecl" >
|
| 126 | <DisplayString IncludeView="cpp">{Name,view(cpp)}</DisplayString>
|
| 127 | <DisplayString>{Name}</DisplayString>
|
| 128 | </Type>
|
| 129 | <Type Name="clang::TagDecl">
|
Mike Spertus | 32e9a32 | 2016-03-22 02:29:22 +0000 | [diff] [blame] | 130 | <DisplayString IncludeView="implicit" Condition="Implicit">implicit{" ",sb}</DisplayString>
|
| 131 | <DisplayString IncludeView="implicit"></DisplayString>
|
| 132 | <DisplayString IncludeView="modifiers">{*this,view(implicit)}</DisplayString>
|
| 133 | <DisplayString IncludeView="cpp">{*this,view(modifiers)}{Name,view(cpp)}</DisplayString>
|
| 134 | <DisplayString Condition="TagDeclKind==clang::TagTypeKind::TTK_Struct">{*this,view(modifiers)}struct {Name,view(cpp)}</DisplayString>
|
| 135 | <DisplayString Condition="TagDeclKind==clang::TagTypeKind::TTK_Interface">{*this,view(modifiers)}interface {Name,view(cpp)}</DisplayString>
|
| 136 | <DisplayString Condition="TagDeclKind==clang::TagTypeKind::TTK_Union">{*this,view(modifiers)}union {Name,view(cpp)}</DisplayString>
|
| 137 | <DisplayString Condition="TagDeclKind==clang::TagTypeKind::TTK_Class">{*this,view(modifiers)}class {Name,view(cpp)}</DisplayString>
|
| 138 | <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] | 139 | <Expand>
|
| 140 | <ExpandedItem>(clang::DeclContext *)this</ExpandedItem>
|
| 141 | </Expand>
|
Mike Spertus | 01b14bf | 2016-03-16 14:27:50 +0000 | [diff] [blame] | 142 | </Type>
|
Mike Spertus | 288daa5 | 2016-03-08 16:14:23 +0000 | [diff] [blame] | 143 | <Type Name="clang::TagType">
|
Mike Spertus | 32e9a32 | 2016-03-22 02:29:22 +0000 | [diff] [blame] | 144 | <DisplayString IncludeView="cpp">{*decl,view(cpp)}</DisplayString>
|
Mike Spertus | 288daa5 | 2016-03-08 16:14:23 +0000 | [diff] [blame] | 145 | <DisplayString>{*decl}</DisplayString>
|
| 146 | <Expand>
|
Mike Spertus | 01b14bf | 2016-03-16 14:27:50 +0000 | [diff] [blame] | 147 | <ExpandedItem>*(clang::Type *)this, view(cmn)</ExpandedItem>
|
Mike Spertus | 288daa5 | 2016-03-08 16:14:23 +0000 | [diff] [blame] | 148 | <Item Name="decl">decl</Item>
|
| 149 | </Expand>
|
| 150 | </Type>
|
| 151 | <Type Name="clang::RecordType">
|
Mike Spertus | 32e9a32 | 2016-03-22 02:29:22 +0000 | [diff] [blame] | 152 | <DisplayString IncludeView="cpp">{*(clang::TagType *)this,view(cpp)}</DisplayString>
|
Mike Spertus | 01b14bf | 2016-03-16 14:27:50 +0000 | [diff] [blame] | 153 | <DisplayString>{*(clang::TagType *)this}</DisplayString>
|
Mike Spertus | 288daa5 | 2016-03-08 16:14:23 +0000 | [diff] [blame] | 154 | <Expand>
|
| 155 | <Item Name="TagType">*(clang::TagType *)this</Item>
|
| 156 | </Expand>
|
| 157 | </Type>
|
| 158 | <Type Name="clang::SubstTemplateTypeParmType">
|
Mike Spertus | 01b14bf | 2016-03-16 14:27:50 +0000 | [diff] [blame] | 159 | <DisplayString>{*Replaced,view(cpp)} <= {CanonicalType,view(cpp)}</DisplayString>
|
Mike Spertus | 288daa5 | 2016-03-08 16:14:23 +0000 | [diff] [blame] | 160 | <Expand>
|
Mike Spertus | 01b14bf | 2016-03-16 14:27:50 +0000 | [diff] [blame] | 161 | <ExpandedItem>*(clang::Type *)this, view(cmn)</ExpandedItem>
|
Mike Spertus | 288daa5 | 2016-03-08 16:14:23 +0000 | [diff] [blame] | 162 | <Item Name="Replaced">*Replaced</Item>
|
| 163 | </Expand>
|
| 164 | </Type>
|
Mike Spertus | 7f2de8e | 2016-03-20 00:20:43 +0000 | [diff] [blame] | 165 | <!-- We only show the first 5 parameter types in the display string (can't figure out how to loop in DisplayString)
|
| 166 | but the expansion has all parameters -->
|
| 167 | <Type Name="clang::FunctionProtoType">
|
Mike Spertus | 6fa3e59 | 2016-03-20 20:15:23 +0000 | [diff] [blame] | 168 | <DisplayString IncludeView="retType">{ResultType,view(cpp)}</DisplayString>
|
Mike Spertus | 7f2de8e | 2016-03-20 00:20:43 +0000 | [diff] [blame] | 169 | <DisplayString IncludeView="parm0" Condition="NumParams==0"></DisplayString>
|
| 170 | <DisplayString IncludeView="parm0">{*(clang::QualType *)(this+1),view(cpp)}{*this,view(parm1)}</DisplayString>
|
| 171 | <DisplayString IncludeView="parm1" Condition="NumParams==1"></DisplayString>
|
| 172 | <DisplayString IncludeView="parm1">, {*((clang::QualType *)(this+1)+1),view(cpp)}{*this,view(parm2)}</DisplayString>
|
| 173 | <DisplayString IncludeView="parm2" Condition="NumParams==2"></DisplayString>
|
| 174 | <DisplayString IncludeView="parm2">, {*((clang::QualType *)(this+1)+2),view(cpp)}{*this,view(parm3)}</DisplayString>
|
| 175 | <DisplayString IncludeView="parm3" Condition="NumParams==3"></DisplayString>
|
| 176 | <DisplayString IncludeView="parm3">, {*((clang::QualType *)(this+1)+3),view(cpp)}{*this,view(parm4)}</DisplayString>
|
| 177 | <DisplayString IncludeView="parm4" Condition="NumParams==4"></DisplayString>
|
| 178 | <DisplayString IncludeView="parm4">, {*((clang::QualType *)(this+1)+4),view(cpp)}{*this,view(parm5)}</DisplayString>
|
| 179 | <DisplayString IncludeView="parm5" Condition="NumParams==5"></DisplayString>
|
| 180 | <DisplayString IncludeView="parm5">, /* expand for more params */</DisplayString>
|
Mike Spertus | 6fa3e59 | 2016-03-20 20:15:23 +0000 | [diff] [blame] | 181 | <DisplayString>{*this,view(retType)}({*this,view(parm0)})</DisplayString>
|
Mike Spertus | 7f2de8e | 2016-03-20 00:20:43 +0000 | [diff] [blame] | 182 | <Expand>
|
| 183 | <Item Name="ReturnType">ResultType</Item>
|
| 184 | <Synthetic Name="Parameter Types">
|
| 185 | <DisplayString>{*this,view(parm0)}</DisplayString>
|
| 186 | <Expand>
|
| 187 | <ArrayItems>
|
| 188 | <Size>NumParams</Size>
|
| 189 | <ValuePointer>(clang::QualType *)(this+1)</ValuePointer>
|
| 190 | </ArrayItems>
|
| 191 | </Expand>
|
| 192 | </Synthetic>
|
| 193 | <ExpandedItem>*(clang::Type *)this, view(cmn)</ExpandedItem>
|
| 194 | </Expand>
|
| 195 | </Type>
|
Mike Spertus | 288daa5 | 2016-03-08 16:14:23 +0000 | [diff] [blame] | 196 | <Type Name="clang::TemplateTypeParmType">
|
Mike Spertus | 8874ef7 | 2016-04-04 19:36:48 +0000 | [diff] [blame] | 197 | <DisplayString IncludeView="cpp">{*TTPDecl,view(cpp)}</DisplayString>
|
| 198 | <DisplayString>{*TTPDecl}</DisplayString>
|
Aaron Ballman | 9d21454 | 2015-09-29 17:32:36 +0000 | [diff] [blame] | 199 | </Type>
|
Mike Spertus | a9ab71c | 2016-03-29 09:24:45 +0000 | [diff] [blame] | 200 | <Type Name="clang::InjectedClassNameType">
|
| 201 | <DisplayString>{*Decl,view(cpp)}</DisplayString>
|
| 202 | <Expand>
|
| 203 | <Item Name="Decl">Decl</Item>
|
| 204 | <Item Name="InjectedType">InjectedType</Item>
|
| 205 | <ExpandedItem>*(clang::Type *)this, view(cmn)</ExpandedItem>
|
| 206 | </Expand>
|
| 207 | </Type>
|
Aaron Ballman | 9d21454 | 2015-09-29 17:32:36 +0000 | [diff] [blame] | 208 | <Type Name="clang::QualType">
|
Mike Spertus | 8758c9d | 2016-03-24 00:38:54 +0000 | [diff] [blame] | 209 | <!-- When VS2013 support is deprecated, change 4 to clang::TypeAlignmentInBits (not properly recognized by VS2013) -->
|
| 210 | <DisplayString IncludeView="poly">{*((clang::ExtQualsTypeCommonBase *)(((uintptr_t)Value.Value) & ~(uintptr_t)((1 << 4) - 1)))->BaseType,view(poly)}{*this,view(fastQuals)}</DisplayString>
|
| 211 | <DisplayString IncludeView="cpp">{*((clang::ExtQualsTypeCommonBase *)(((uintptr_t)Value.Value) & ~(uintptr_t)((1 << 4) - 1)))->BaseType,view(cpp)}{*this,view(fastQuals)}</DisplayString>
|
| 212 | <!-- For the Fast Qualifiers, it is simpler (and probably more efficient) just to list all 8 cases than create
|
| 213 | views for each qualifier. TODO: Non-fast qualifiers -->
|
| 214 | <DisplayString IncludeView="fastQuals" Condition="(Value.Value & 15)==0"></DisplayString>
|
| 215 | <DisplayString IncludeView="fastQuals" Condition="(Value.Value & 15)==1">{" ",sb}const</DisplayString>
|
| 216 | <DisplayString IncludeView="fastQuals" Condition="(Value.Value & 15)==2">{" ",sb}restrict</DisplayString>
|
| 217 | <DisplayString IncludeView="fastQuals" Condition="(Value.Value & 15)==3">{" ",sb}const restrict</DisplayString>
|
| 218 | <DisplayString IncludeView="fastQuals" Condition="(Value.Value & 15)==4">{" ",sb}volatile</DisplayString>
|
| 219 | <DisplayString IncludeView="fastQuals" Condition="(Value.Value & 15)==5">{" ",sb}const volatile</DisplayString>
|
| 220 | <DisplayString IncludeView="fastQuals" Condition="(Value.Value & 15)==6">{" ",sb}volatile restrict</DisplayString>
|
| 221 | <DisplayString IncludeView="fastQuals" Condition="(Value.Value & 15)==7">{" ",sb}const volatile restrict</DisplayString>
|
| 222 | <DisplayString IncludeView="fastQuals">Cannot visualize non-fast qualifiers</DisplayString>
|
| 223 | <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] | 224 | <Expand>
|
Mike Spertus | 8758c9d | 2016-03-24 00:38:54 +0000 | [diff] [blame] | 225 | <Item Name="Fast Quals">*this,view(fastQuals)</Item>
|
Mike Spertus | 288daa5 | 2016-03-08 16:14:23 +0000 | [diff] [blame] | 226 | <Item Name="BaseType">*((clang::ExtQualsTypeCommonBase *)(((uintptr_t)Value.Value) & ~(uintptr_t)((1 << 4) - 1)))->BaseType</Item>
|
| 227 | </Expand>
|
| 228 | </Type>
|
| 229 | <Type Name="clang::TemplateArgumentLoc">
|
| 230 | <DisplayString>{Argument}</DisplayString>
|
| 231 | <Expand>
|
| 232 | <ExpandedItem>Argument</ExpandedItem>
|
| 233 | </Expand>
|
| 234 | </Type>
|
| 235 | <Type Name="clang::TemplateArgument">
|
Mike Spertus | 603bbfc | 2016-06-06 17:08:32 +0000 | [diff] [blame] | 236 | <DisplayString IncludeView="cpp" Condition="Integer.Kind == clang::TemplateArgument::ArgKind::Type">{*(clang::QualType *)&TypeOrValue.V,view(cpp)}</DisplayString>
|
| 237 | <DisplayString Condition="Integer.Kind == clang::TemplateArgument::ArgKind::Type">{(clang::TemplateArgument::ArgKind)TypeOrValue.Kind,en} template argument: {*(clang::QualType *)&TypeOrValue.V}</DisplayString>
|
| 238 | <DisplayString IncludeView="arg0" Condition="Args.NumArgs==0"></DisplayString>
|
| 239 | <DisplayString IncludeView="arg0">{Args.Args[0]}{*this,view(arg1)}</DisplayString>
|
| 240 | <DisplayString IncludeView="arg1" Condition="Args.NumArgs==1"></DisplayString>
|
| 241 | <DisplayString IncludeView="arg1">, {Args.Args[1]}{*this,view(arg2)}</DisplayString>
|
| 242 | <DisplayString IncludeView="arg2" Condition="Args.NumArgs==2"></DisplayString>
|
| 243 | <DisplayString IncludeView="arg2">, {Args.Args[2]}, ...</DisplayString>
|
| 244 | <DisplayString IncludeView="arg0cpp" Condition="Args.NumArgs==0"></DisplayString>
|
| 245 | <DisplayString IncludeView="arg0cpp">{Args.Args[0],view(cpp)}{*this,view(arg1cpp)}</DisplayString>
|
| 246 | <DisplayString IncludeView="arg1cpp" Condition="Args.NumArgs==1"></DisplayString>
|
| 247 | <DisplayString IncludeView="arg1cpp">, {Args.Args[1],view(cpp)}{*this,view(arg2cpp)}</DisplayString>
|
| 248 | <DisplayString IncludeView="arg2cpp" Condition="Args.NumArgs==2"></DisplayString>
|
| 249 | <DisplayString IncludeView="arg2cpp">, {Args.Args[2],view(cpp)}, ...</DisplayString>
|
| 250 | <DisplayString IncludeView="cpp" Condition="Integer.Kind == clang::TemplateArgument::ArgKind::Pack">{*this,view(arg0cpp)}</DisplayString>
|
| 251 | <DisplayString Condition="Integer.Kind == clang::TemplateArgument::ArgKind::Pack">{*this,view(arg0)}</DisplayString>
|
Mike Spertus | 64aa76d | 2016-05-23 22:27:44 +0000 | [diff] [blame] | 252 | <DisplayString>{(clang::TemplateArgument::ArgKind)TypeOrValue.Kind,en}</DisplayString>
|
Mike Spertus | 288daa5 | 2016-03-08 16:14:23 +0000 | [diff] [blame] | 253 | <Expand>
|
| 254 | <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] | 255 | <ArrayItems Condition="Integer.Kind == clang::TemplateArgument::ArgKind::Pack">
|
| 256 | <Size>Args.NumArgs</Size>
|
| 257 | <ValuePointer>Args.Args</ValuePointer>
|
| 258 | </ArrayItems>
|
Mike Spertus | 288daa5 | 2016-03-08 16:14:23 +0000 | [diff] [blame] | 259 | <!-- TODO: Other kinds-->
|
| 260 | </Expand>
|
| 261 | </Type>
|
Mike Spertus | 603bbfc | 2016-06-06 17:08:32 +0000 | [diff] [blame] | 262 | <Type Name="clang::TemplateArgumentList">
|
| 263 | <DisplayString IncludeView="arg0" Condition="NumArguments==0"></DisplayString>
|
| 264 | <DisplayString IncludeView="arg0">{Arguments[0],view(cpp)}{*this,view(arg1)}</DisplayString>
|
| 265 | <DisplayString IncludeView="arg1" Condition="NumArguments==1"></DisplayString>
|
| 266 | <DisplayString IncludeView="arg1">, {Arguments[1],view(cpp)}{*this,view(arg2)}</DisplayString>
|
| 267 | <DisplayString IncludeView="arg2" Condition="NumArguments==2"></DisplayString>
|
Mike Spertus | 1f56e99 | 2016-06-06 21:41:20 +0000 | [diff] [blame] | 268 | <DisplayString IncludeView="arg2">, {Arguments[1],view(cpp)}, ...</DisplayString>
|
Mike Spertus | 603bbfc | 2016-06-06 17:08:32 +0000 | [diff] [blame] | 269 | <DisplayString><{*this,view(arg0)}></DisplayString>
|
| 270 | <Expand>
|
| 271 | <Item Name="NumArguments">NumArguments</Item>
|
| 272 | <ArrayItems>
|
| 273 | <Size>NumArguments</Size>
|
| 274 | <ValuePointer>Arguments</ValuePointer>
|
| 275 | </ArrayItems>
|
| 276 | </Expand>
|
| 277 | </Type>
|
Mike Spertus | 1f56e99 | 2016-06-06 21:41:20 +0000 | [diff] [blame] | 278 | <Type Name="llvm::ArrayRef<clang::TemplateArgument>">
|
| 279 | <DisplayString IncludeView="arg0" Condition="Length==0"></DisplayString>
|
| 280 | <DisplayString IncludeView="arg0">{Data[0],view(cpp)}{*this,view(arg1)}</DisplayString>
|
| 281 | <DisplayString IncludeView="arg1" Condition="Length==1"></DisplayString>
|
| 282 | <DisplayString IncludeView="arg1">, {Data[1],view(cpp)}{*this,view(arg2)}</DisplayString>
|
| 283 | <DisplayString IncludeView="arg2" Condition="Length==2"></DisplayString>
|
| 284 | <DisplayString IncludeView="arg2">, {Data[2],view(cpp)}, ...</DisplayString>
|
| 285 | <DisplayString><{*this,view(arg0)}></DisplayString>
|
| 286 | </Type>
|
| 287 | <Type Name="clang::MultiLevelTemplateArgumentList">
|
| 288 | <DisplayString IncludeView="level0" Condition="(llvm::ArrayRef<clang::TemplateArgument> *)TemplateArgumentLists.EndX - (llvm::ArrayRef<clang::TemplateArgument> *)TemplateArgumentLists.BeginX==0"></DisplayString>
|
| 289 | <DisplayString IncludeView="level0">{((llvm::ArrayRef<clang::TemplateArgument> *)TemplateArgumentLists.BeginX)[0],view(cpp)}{*this,view(level1)}</DisplayString>
|
| 290 | <DisplayString IncludeView="level1" Condition="(llvm::ArrayRef<clang::TemplateArgument> *)TemplateArgumentLists.EndX - (llvm::ArrayRef<clang::TemplateArgument> *)TemplateArgumentLists.BeginX==1"></DisplayString>
|
| 291 | <DisplayString IncludeView="level1">::{((llvm::ArrayRef<clang::TemplateArgument> *)TemplateArgumentLists.BeginX)[1],view(cpp)}{*this,view(level2)}</DisplayString>
|
| 292 | <DisplayString IncludeView="level2" Condition="(llvm::ArrayRef<clang::TemplateArgument> *)TemplateArgumentLists.EndX - (llvm::ArrayRef<clang::TemplateArgument> *)TemplateArgumentLists.BeginX==2"></DisplayString>
|
| 293 | <DisplayString IncludeView="level2">::{((llvm::ArrayRef<clang::TemplateArgument> *)TemplateArgumentLists.BeginX)[2],view(cpp)}, ...</DisplayString>
|
| 294 | <DisplayString>{*this,view(level0)}</DisplayString>
|
| 295 | <Expand>
|
| 296 | <Item Name="TemplateList">TemplateArgumentLists</Item>
|
| 297 | </Expand>
|
| 298 | </Type>
|
Mike Spertus | 1d051ee | 2016-03-20 00:32:30 +0000 | [diff] [blame] | 299 | <!-- 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] | 300 | <Type Name="clang::BuiltinType">
|
Mike Spertus | 1d051ee | 2016-03-20 00:32:30 +0000 | [diff] [blame] | 301 | <DisplayString Condition="BuiltinTypeBits.Kind==clang::BuiltinType::Void">void</DisplayString>
|
| 302 | <DisplayString Condition="BuiltinTypeBits.Kind==clang::BuiltinType::Bool">bool</DisplayString>
|
| 303 | <DisplayString Condition="BuiltinTypeBits.Kind==clang::BuiltinType::Char_U">char</DisplayString>
|
| 304 | <DisplayString Condition="BuiltinTypeBits.Kind==clang::BuiltinType::UChar">unsigned char</DisplayString>
|
| 305 | <DisplayString Condition="BuiltinTypeBits.Kind==clang::BuiltinType::WChar_U">wchar_t</DisplayString>
|
| 306 | <DisplayString Condition="BuiltinTypeBits.Kind==clang::BuiltinType::Char16">char16_t</DisplayString>
|
| 307 | <DisplayString Condition="BuiltinTypeBits.Kind==clang::BuiltinType::Char32">char32_t</DisplayString>
|
| 308 | <DisplayString Condition="BuiltinTypeBits.Kind==clang::BuiltinType::UShort">unsigned short</DisplayString>
|
| 309 | <DisplayString Condition="BuiltinTypeBits.Kind==clang::BuiltinType::UInt">unsigned int</DisplayString>
|
| 310 | <DisplayString Condition="BuiltinTypeBits.Kind==clang::BuiltinType::ULong">unsigned long</DisplayString>
|
| 311 | <DisplayString Condition="BuiltinTypeBits.Kind==clang::BuiltinType::ULongLong">unsigned long long</DisplayString>
|
| 312 | <DisplayString Condition="BuiltinTypeBits.Kind==clang::BuiltinType::UInt128">__uint128_t</DisplayString>
|
| 313 | <DisplayString Condition="BuiltinTypeBits.Kind==clang::BuiltinType::Char_S">char</DisplayString>
|
| 314 | <DisplayString Condition="BuiltinTypeBits.Kind==clang::BuiltinType::SChar">signed char</DisplayString>
|
| 315 | <DisplayString Condition="BuiltinTypeBits.Kind==clang::BuiltinType::WChar_S">wchar_t</DisplayString>
|
| 316 | <DisplayString Condition="BuiltinTypeBits.Kind==clang::BuiltinType::Short">short</DisplayString>
|
| 317 | <DisplayString Condition="BuiltinTypeBits.Kind==clang::BuiltinType::Int">int</DisplayString>
|
| 318 | <DisplayString Condition="BuiltinTypeBits.Kind==clang::BuiltinType::Long">long</DisplayString>
|
| 319 | <DisplayString Condition="BuiltinTypeBits.Kind==clang::BuiltinType::LongLong">long long</DisplayString>
|
| 320 | <DisplayString Condition="BuiltinTypeBits.Kind==clang::BuiltinType::Int128">__int128_t</DisplayString>
|
| 321 | <DisplayString Condition="BuiltinTypeBits.Kind==clang::BuiltinType::Half">__fp16</DisplayString>
|
| 322 | <DisplayString Condition="BuiltinTypeBits.Kind==clang::BuiltinType::Float">float</DisplayString>
|
| 323 | <DisplayString Condition="BuiltinTypeBits.Kind==clang::BuiltinType::Double">double</DisplayString>
|
| 324 | <DisplayString Condition="BuiltinTypeBits.Kind==clang::BuiltinType::LongDouble">long double</DisplayString>
|
| 325 | <DisplayString Condition="BuiltinTypeBits.Kind==clang::BuiltinType::NullPtr">nullptr_t</DisplayString>
|
Mike Spertus | 288daa5 | 2016-03-08 16:14:23 +0000 | [diff] [blame] | 326 | <DisplayString>{(clang::BuiltinType::Kind)BuiltinTypeBits.Kind, en}</DisplayString>
|
| 327 | <Expand>
|
| 328 | <Item Name="Kind">(clang::BuiltinType::Kind)BuiltinTypeBits.Kind</Item>
|
| 329 | </Expand>
|
| 330 | </Type>
|
Mike Spertus | 01b14bf | 2016-03-16 14:27:50 +0000 | [diff] [blame] | 331 |
|
Mike Spertus | 288daa5 | 2016-03-08 16:14:23 +0000 | [diff] [blame] | 332 | <Type Name="clang::TemplateSpecializationType">
|
Mike Spertus | 63e428f | 2016-04-01 03:31:43 +0000 | [diff] [blame] | 333 | <DisplayString IncludeView="arg0" Condition="NumArgs==0"></DisplayString>
|
| 334 | <DisplayString IncludeView="arg0">{((clang::TemplateArgument *)(this+1))[0],view(cpp)}{*this,view(arg1)}</DisplayString>
|
| 335 | <DisplayString IncludeView="arg1" Condition="NumArgs==1"></DisplayString>
|
| 336 | <DisplayString IncludeView="arg1">, {((clang::TemplateArgument *)(this+1))[1],view(cpp)}{*this,view(arg2)}</DisplayString>
|
| 337 | <DisplayString IncludeView="arg2" Condition="NumArgs==2"></DisplayString>
|
| 338 | <DisplayString IncludeView="arg2">, {((clang::TemplateArgument *)(this+1))[2],view(cpp)}{*this,view(arg3)}</DisplayString>
|
| 339 | <DisplayString Condition="(Template.Storage.Val.Val.Value & 3) == 0">
|
| 340 | {*((clang::TemplateDecl *)((Template.Storage.Val.Val.Value >> 2) << 2))->TemplatedDecl,view(cpp)}<{*this,view(arg0)}>
|
| 341 | </DisplayString>
|
| 342 | <Expand>
|
| 343 | <Item Name="Template">Template.Storage</Item>
|
| 344 | <ArrayItems>
|
| 345 | <Size>NumArgs</Size>
|
| 346 | <ValuePointer>(clang::TemplateArgument *)(this+1)</ValuePointer>
|
| 347 | </ArrayItems>
|
| 348 | </Expand>
|
Aaron Ballman | 9d21454 | 2015-09-29 17:32:36 +0000 | [diff] [blame] | 349 | </Type>
|
Aaron Ballman | 83f197b | 2014-01-24 19:46:45 +0000 | [diff] [blame] | 350 | <Type Name="clang::IdentifierInfo">
|
Mike Spertus | 01b14bf | 2016-03-16 14:27:50 +0000 | [diff] [blame] | 351 | <DisplayString Condition="Entry != 0">{((llvm::StringMapEntry<clang::IdentifierInfo *>*)Entry)+1,sb}</DisplayString>
|
Aaron Ballman | 83f197b | 2014-01-24 19:46:45 +0000 | [diff] [blame] | 352 | <Expand>
|
| 353 | <Item Condition="Entry != 0" Name="[Identifier]">((llvm::StringMapEntry<clang::IdentifierInfo *>*)Entry)+1,s</Item>
|
| 354 | <Item Name="Token Kind">(clang::tok::TokenKind)TokenID</Item>
|
| 355 | </Expand>
|
| 356 | </Type>
|
| 357 | <Type Name="clang::DeclarationName">
|
Mike Spertus | 6fa3e59 | 2016-03-20 20:15:23 +0000 | [diff] [blame] | 358 | <DisplayString Condition="Ptr == 0" IncludeView="cpp"></DisplayString>
|
Aaron Ballman | 83f197b | 2014-01-24 19:46:45 +0000 | [diff] [blame] | 359 | <DisplayString Condition="Ptr == 0">Empty</DisplayString>
|
Mike Spertus | 01b14bf | 2016-03-16 14:27:50 +0000 | [diff] [blame] | 360 | <DisplayString Condition="(Ptr & PtrMask) == StoredIdentifier" IncludeView="cpp">{*(clang::IdentifierInfo *)(Ptr & ~PtrMask)}</DisplayString>
|
Zachary Turner | dfa871b | 2014-06-26 16:26:42 +0000 | [diff] [blame] | 361 | <DisplayString Condition="(Ptr & PtrMask) == StoredIdentifier">{{Identifier ({*(clang::IdentifierInfo *)(Ptr & ~PtrMask)})}}</DisplayString>
|
| 362 | <DisplayString Condition="(Ptr & PtrMask) == StoredObjCZeroArgSelector">{{ObjC Zero Arg Selector (*{(clang::IdentifierInfo *)(Ptr & ~PtrMask)})}}</DisplayString>
|
| 363 | <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] | 364 | <DisplayString Condition="(Ptr & PtrMask) == StoredDeclarationNameExtra"
|
| 365 | IncludeView="cpp">{*(clang::DeclarationNameExtra *)(Ptr & ~PtrMask),view(cpp)}</DisplayString>
|
| 366 | <DisplayString Condition="(Ptr & PtrMask) == StoredDeclarationNameExtra">{{Extra ({*(clang::DeclarationNameExtra *)(Ptr & ~PtrMask)})}}</DisplayString>
|
Aaron Ballman | 83f197b | 2014-01-24 19:46:45 +0000 | [diff] [blame] | 367 | <Expand>
|
Zachary Turner | dfa871b | 2014-06-26 16:26:42 +0000 | [diff] [blame] | 368 | <Item Condition="(Ptr & PtrMask) == StoredIdentifier" Name="[Identifier]">*(clang::IdentifierInfo *)(Ptr & ~PtrMask)</Item>
|
| 369 | <Item Condition="(Ptr & PtrMask) == StoredObjCZeroArgSelector" Name="[ObjC Zero Arg Selector]">*(clang::IdentifierInfo *)(Ptr & ~PtrMask)</Item>
|
| 370 | <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] | 371 | <Item Condition="(Ptr & PtrMask) == StoredDeclarationNameExtra" Name="[Extra]">(clang::DeclarationNameExtra *)(Ptr & ~PtrMask)</Item>
|
Mike Spertus | 288daa5 | 2016-03-08 16:14:23 +0000 | [diff] [blame] | 372 | </Expand>
|
| 373 | </Type>
|
Mike Spertus | 32e9a32 | 2016-03-22 02:29:22 +0000 | [diff] [blame] | 374 | <Type Name="clang::DeclarationNameExtra">
|
| 375 | <DisplayString IncludeView="cpp"
|
| 376 | Condition="ExtraKindOrNumArgs >= clang::DeclarationNameExtra::CXXConstructor
|
| 377 | && ExtraKindOrNumArgs <= clang::DeclarationNameExtra::CXXConversionFunction"
|
| 378 | >{((clang::CXXSpecialName *)this)->Type,view(cpp)}</DisplayString>
|
| 379 | <DisplayString>{(clang::DeclarationNameExtra::ExtraKind)ExtraKindOrNumArgs,en}{" ",sb}{*this,view(cpp)}</DisplayString>
|
| 380 | </Type>
|
Mike Spertus | 288daa5 | 2016-03-08 16:14:23 +0000 | [diff] [blame] | 381 | <Type Name="clang::Token">
|
| 382 | <DisplayString Condition="Kind != clang::tok::identifier">{(clang::tok::TokenKind)Kind,en}</DisplayString>
|
| 383 | <DisplayString Condition="Kind == clang::tok::identifier">{{Identifier ({*(clang::IdentifierInfo *)(PtrData)})}}</DisplayString>
|
| 384 | </Type>
|
| 385 | <Type Name="clang::DeclSpec">
|
| 386 | <DisplayString>[{(clang::DeclSpec::SCS)StorageClassSpec}], [{(clang::TypeSpecifierType)TypeSpecType}]</DisplayString>
|
Aaron Ballman | 83f197b | 2014-01-24 19:46:45 +0000 | [diff] [blame] | 387 | </Type>
|
| 388 | <Type Name="clang::PragmaHandler">
|
| 389 | <DisplayString>{Name,s}</DisplayString>
|
| 390 | </Type>
|
| 391 | <Type Name="clang::FileEntry">
|
| 392 | <DisplayString>{Name,s}</DisplayString>
|
| 393 | </Type>
|
| 394 | <Type Name="clang::DirectoryEntry">
|
| 395 | <DisplayString>{Name,s}</DisplayString>
|
| 396 | </Type>
|
Zachary Turner | dfa871b | 2014-06-26 16:26:42 +0000 | [diff] [blame] | 397 | <Type Name="clang::VarDecl::VarDeclBitfields">
|
| 398 | <Expand>
|
| 399 | <Item Name="StorageClass">(clang::StorageClass)SClass</Item>
|
| 400 | <Item Name="ThreadStorageClass">(clang::ThreadStorageClassSpecifier)TSCSpec</Item>
|
| 401 | <Item Name="InitStyle">(clang::VarDecl::InitializationStyle)InitStyle</Item>
|
| 402 | </Expand>
|
| 403 | </Type>
|
Mike Spertus | 6fa3e59 | 2016-03-20 20:15:23 +0000 | [diff] [blame] | 404 | <Type Name="clang::DeclaratorDecl">
|
| 405 | <DisplayString>{DeclType,view(cpp)} {Name,view(cpp)}</DisplayString>
|
Mike Spertus | 8a0a1d7 | 2016-06-07 00:27:37 +0000 | [diff] [blame] | 406 | <Expand>
|
| 407 | <Item Name="Name">Name</Item>
|
| 408 | <Item Name="DeclType">DeclType</Item>
|
| 409 | </Expand>
|
Mike Spertus | 6fa3e59 | 2016-03-20 20:15:23 +0000 | [diff] [blame] | 410 | </Type>
|
Zachary Turner | dfa871b | 2014-06-26 16:26:42 +0000 | [diff] [blame] | 411 | <Type Name="clang::VarDecl">
|
Mike Spertus | 6fa3e59 | 2016-03-20 20:15:23 +0000 | [diff] [blame] | 412 | <DisplayString>{*(DeclaratorDecl*)this,nd}</DisplayString>
|
Zachary Turner | dfa871b | 2014-06-26 16:26:42 +0000 | [diff] [blame] | 413 | <Expand>
|
| 414 | <ExpandedItem>*(DeclaratorDecl*)this,nd</ExpandedItem>
|
| 415 | <Item Name="VarDeclBits">VarDeclBits</Item>
|
Mike Spertus | 6fa3e59 | 2016-03-20 20:15:23 +0000 | [diff] [blame] | 416 | </Expand>
|
| 417 | </Type>
|
| 418 | <Type Name="clang::ParmVarDecl">
|
| 419 | <DisplayString>{*(VarDecl*)this,nd}</DisplayString>
|
| 420 | <Expand>
|
Zachary Turner | dfa871b | 2014-06-26 16:26:42 +0000 | [diff] [blame] | 421 | <Item Name="ParmVarDeclBits">ParmVarDeclBits</Item>
|
Mike Spertus | 6fa3e59 | 2016-03-20 20:15:23 +0000 | [diff] [blame] | 422 | <ExpandedItem>*(VarDecl*)this,nd</ExpandedItem>
|
| 423 | </Expand>
|
| 424 | </Type>
|
| 425 | <Type Name="clang::FunctionDecl">
|
| 426 | <DisplayString IncludeView="retType">{*(clang::FunctionProtoType *)((clang::ExtQualsTypeCommonBase *)(((uintptr_t)DeclType.Value.Value) & ~15))->BaseType,view(retType)}</DisplayString>
|
| 427 | <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] | 428 | <DisplayString IncludeView="parm0">{*ParamInfo[0]}{*this,view(parm1)nd}</DisplayString>
|
Mike Spertus | 6fa3e59 | 2016-03-20 20:15:23 +0000 | [diff] [blame] | 429 | <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] | 430 | <DisplayString IncludeView="parm1">, {*ParamInfo[1]}{*this,view(parm2)nd}</DisplayString>
|
Mike Spertus | 6fa3e59 | 2016-03-20 20:15:23 +0000 | [diff] [blame] | 431 | <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] | 432 | <DisplayString IncludeView="parm2">, {*ParamInfo[2]}{*this,view(parm3)nd}</DisplayString>
|
Mike Spertus | 6fa3e59 | 2016-03-20 20:15:23 +0000 | [diff] [blame] | 433 | <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] | 434 | <DisplayString IncludeView="parm3">, {*ParamInfo[3]}{*this,view(parm4)nd}</DisplayString>
|
Mike Spertus | 6fa3e59 | 2016-03-20 20:15:23 +0000 | [diff] [blame] | 435 | <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] | 436 | <DisplayString IncludeView="parm4">, {*ParamInfo[4]}{*this,view(parm5)nd}</DisplayString>
|
Mike Spertus | 6fa3e59 | 2016-03-20 20:15:23 +0000 | [diff] [blame] | 437 | <DisplayString IncludeView="parm5" Condition="5 == ((clang::FunctionProtoType *)((clang::ExtQualsTypeCommonBase *)(((uintptr_t)DeclType.Value.Value) & ~15))->BaseType)->NumParams"></DisplayString>
|
| 438 | <DisplayString IncludeView="parm5">, /* expand for more params */</DisplayString>
|
Mike Spertus | 32e9a32 | 2016-03-22 02:29:22 +0000 | [diff] [blame] | 439 | <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] | 440 | <Expand>
|
Mike Spertus | 32e9a32 | 2016-03-22 02:29:22 +0000 | [diff] [blame] | 441 | <Item Name="ReturnType">*this,view(retType)nd</Item>
|
Mike Spertus | 6fa3e59 | 2016-03-20 20:15:23 +0000 | [diff] [blame] | 442 | <Synthetic Name="Parameter Types">
|
Mike Spertus | 32e9a32 | 2016-03-22 02:29:22 +0000 | [diff] [blame] | 443 | <DisplayString>{*this,view(parm0)nd}</DisplayString>
|
Mike Spertus | 6fa3e59 | 2016-03-20 20:15:23 +0000 | [diff] [blame] | 444 | <Expand>
|
| 445 | <ArrayItems>
|
| 446 | <Size>((clang::FunctionProtoType *)((clang::ExtQualsTypeCommonBase *)(((uintptr_t)DeclType.Value.Value) & ~15))->BaseType)->NumParams</Size>
|
| 447 | <ValuePointer>ParamInfo</ValuePointer>
|
| 448 | </ArrayItems>
|
| 449 | </Expand>
|
| 450 | </Synthetic>
|
| 451 | <ExpandedItem>*(clang::Type *)this, view(cmn)</ExpandedItem>
|
Zachary Turner | dfa871b | 2014-06-26 16:26:42 +0000 | [diff] [blame] | 452 | </Expand>
|
| 453 | </Type>
|
Mike Spertus | 288daa5 | 2016-03-08 16:14:23 +0000 | [diff] [blame] | 454 | <Type Name="clang::OpaquePtr<*>">
|
Mike Spertus | 3f19966 | 2016-06-10 22:25:43 +0000 | [diff] [blame] | 455 | <DisplayString>{($T1 *)Ptr}</DisplayString>
|
Mike Spertus | 288daa5 | 2016-03-08 16:14:23 +0000 | [diff] [blame] | 456 | <Expand>
|
| 457 | <ExpandedItem>($T1 *)Ptr</ExpandedItem>
|
| 458 | </Expand>
|
| 459 | </Type>
|
Mike Spertus | 1796c2e | 2016-03-29 10:57:24 +0000 | [diff] [blame] | 460 | <Type Name="clang::TemplateParameterList">
|
| 461 | <DisplayString IncludeView="parm0" Condition="NumParams==0"></DisplayString>
|
| 462 | <DisplayString IncludeView="parm0">{*((NamedDecl **)(this+1))[0],view(cpp)}{*this,view(parm1)}</DisplayString>
|
| 463 | <DisplayString IncludeView="parm1" Condition="NumParams==1"></DisplayString>
|
| 464 | <DisplayString IncludeView="parm1">, {*((NamedDecl **)(this+1))[1],view(cpp)}{*this,view(parm2)}</DisplayString>
|
| 465 | <DisplayString IncludeView="parm2" Condition="NumParams==2"></DisplayString>
|
| 466 | <DisplayString IncludeView="parm2">, {*((NamedDecl **)(this+1))[2],view(cpp)}{*this,view(parm3)}</DisplayString>
|
| 467 | <DisplayString IncludeView="parm3" Condition="NumParams==3"></DisplayString>
|
| 468 | <DisplayString IncludeView="parm3">, {*((NamedDecl **)(this+1))[3],view(cpp)}{*this,view(parm4)}</DisplayString>
|
| 469 | <DisplayString IncludeView="parm4" Condition="NumParams==4"></DisplayString>
|
| 470 | <DisplayString IncludeView="parm4">, {*((NamedDecl **)(this+1))[4],view(cpp)}{*this,view(parm5)}</DisplayString>
|
| 471 | <DisplayString IncludeView="parm5" Condition="NumParams==5"></DisplayString>
|
| 472 | <DisplayString IncludeView="parm5">, /* Expand for more params */</DisplayString>
|
| 473 | <DisplayString><{*this,view(parm0)}></DisplayString>
|
| 474 | <Expand>
|
| 475 | <ArrayItems>
|
| 476 | <Size>NumParams</Size>
|
| 477 | <ValuePointer>(NamedDecl **)(this+1)</ValuePointer>
|
| 478 | </ArrayItems>
|
| 479 | </Expand>
|
| 480 | </Type>
|
Mike Spertus | b27ebb8 | 2016-05-16 01:36:09 +0000 | [diff] [blame] | 481 | <Type Name="clang::Expr">
|
Mike Spertus | ef8c308 | 2016-06-06 03:37:18 +0000 | [diff] [blame] | 482 | <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] | 483 | </Type>
|
Mike Spertus | 334aa07 | 2016-06-11 03:02:33 +0000 | [diff] [blame^] | 484 | <Type Name="clang::DeclAccessPair">
|
| 485 | <DisplayString IncludeView="access" Condition="(Ptr&Mask) == clang::AS_public">public</DisplayString>
|
| 486 | <DisplayString IncludeView="access" Condition="(Ptr&Mask) == clang::AS_protected">protected</DisplayString>
|
| 487 | <DisplayString IncludeView="access" Condition="(Ptr&Mask) == clang::AS_private">private</DisplayString>
|
| 488 | <DisplayString IncludeView="access" Condition="(Ptr&Mask) == clang::AS_none">b</DisplayString>
|
| 489 | <DisplayString IncludeView="decl">{*(clang::NamedDecl *)(Ptr&~Mask)}</DisplayString>
|
| 490 | <DisplayString>{*this,view(access)} {*this,view(decl)}</DisplayString>
|
| 491 | </Type>
|
| 492 | <Type Name="clang::UnresolvedSet<*>">
|
| 493 | <DisplayString>{Decls}</DisplayString>
|
| 494 | <Expand>
|
| 495 | <ExpandedItem>Decls</ExpandedItem>
|
| 496 | </Expand>
|
| 497 | </Type>
|
| 498 | <Type Name="clang::LookupResult">
|
| 499 | <DisplayString Condition="ResultKind == clang::LookupResult::Ambiguous">{Ambiguity,en}: {Decls}</DisplayString>
|
| 500 | <DisplayString>{ResultKind,en}: {Decls}</DisplayString>
|
| 501 | </Type>
|
Aaron Ballman | 83f197b | 2014-01-24 19:46:45 +0000 | [diff] [blame] | 502 | </AutoVisualizer>
|