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 | 01b14bf | 2016-03-16 14:27:50 +0000 | [diff] [blame] | 35 | <DisplayString IncludeView="cpp">{*this,view(poly)}</DisplayString>
|
| 36 | <DisplayString IncludeView="poly">{*this,view(cmn)}"</DisplayString> <!-- Not yet implemented Type subclass -->
|
| 37 | <DisplayString>{*this,view(cmn)} {{{*this,view(poly)}}}</DisplayString>
|
Mike Spertus | 288daa5 | 2016-03-08 16:14:23 +0000 | [diff] [blame] | 38 | <Expand>
|
Mike Spertus | 01b14bf | 2016-03-16 14:27:50 +0000 | [diff] [blame] | 39 | <Item Name="TypeClass" IncludeView="cmn">(clang::Type::TypeClass)TypeBits.TC</Item>
|
| 40 | <Item Name="Flags" IncludeView="cmn">TypeBits</Item>
|
| 41 | <Item Name="Canonical" IncludeView="cmn">CanonicalType</Item>
|
| 42 | <ExpandedItem ExcludeView="cmn" Condition="TypeBits.TC==clang::Type::TypeClass::Builtin">*(clang::BuiltinType *)this</ExpandedItem>
|
| 43 | <ExpandedItem ExcludeView="cmn" Condition="TypeBits.TC==clang::Type::TypeClass::Pointer">*(clang::PointerType *)this</ExpandedItem>
|
| 44 | <ExpandedItem ExcludeView="cmn" Condition="TypeBits.TC==clang::Type::TypeClass::LValueReference">*(clang::LValueReferenceType *)this</ExpandedItem>
|
| 45 | <ExpandedItem ExcludeView="cmn" Condition="TypeBits.TC==clang::Type::TypeClass::RValueReference">*(clang::RValueReferenceType *)this</ExpandedItem>
|
| 46 | <ExpandedItem ExcludeView="cmn" Condition="TypeBits.TC==clang::Type::TypeClass::Attributed">*(clang::AttributedType *)this</ExpandedItem>
|
| 47 | <ExpandedItem ExcludeView="cmn" Condition="TypeBits.TC==clang::Type::TypeClass::TemplateTypeParm">(clang::TemplateTypeParmType *)this</ExpandedItem>
|
| 48 | <ExpandedItem ExcludeView="cmn" Condition="TypeBits.TC==clang::Type::TypeClass::SubstTemplateTypeParm">(clang::SubstTemplateTypeParmType *)this</ExpandedItem>
|
| 49 | <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] | 50 | <ExpandedItem ExcludeView="cmn" Condition="TypeBits.TC==clang::Type::TypeClass::FunctionProto">(clang::FunctionProtoType *)this</ExpandedItem>
|
Mike Spertus | 288daa5 | 2016-03-08 16:14:23 +0000 | [diff] [blame] | 51 | </Expand>
|
| 52 | </Type>
|
Mike Spertus | 01b14bf | 2016-03-16 14:27:50 +0000 | [diff] [blame] | 53 | <Type Name="clang::PointerType">
|
| 54 | <DisplayString>{PointeeType, view(poly)} *</DisplayString>
|
| 55 | <Expand>
|
| 56 | <ExpandedItem>*(clang::Type *)this, view(cmn)</ExpandedItem>
|
| 57 | <Item Name="PointeeType">PointeeType</Item>
|
| 58 | </Expand>
|
| 59 | </Type>
|
| 60 | <!-- We visualize all inner types for clang reference types. So a rvalue reference to an lvalue reference
|
| 61 | to an int would visual as int & && This is a little different than GetPointeeType(),
|
| 62 | but more clearly displays the data structure and seems natural -->
|
| 63 | <Type Name="clang::LValueReferenceType">
|
| 64 | <DisplayString>{((clang::ReferenceType *)this)->PointeeType,view(cpp)} &</DisplayString>
|
| 65 | <Expand>
|
| 66 | <ExpandedItem>*(clang::Type *)this, view(cmn)</ExpandedItem>
|
| 67 | <Item Name="PointeeType">PointeeType</Item>
|
| 68 | </Expand>
|
| 69 | </Type>
|
| 70 | <Type Name="clang::RValueReferenceType">
|
| 71 | <DisplayString>{((clang::ReferenceType *)this)->PointeeType,view(cpp)} &&</DisplayString>
|
| 72 | <Expand>
|
| 73 | <ExpandedItem>*(clang::Type *)this, view(cmn)</ExpandedItem>
|
| 74 | <Item Name="PointeeType">PointeeType</Item>
|
| 75 | </Expand>
|
| 76 | </Type>
|
| 77 | <Type Name="clang::AttributedType">
|
| 78 | <DisplayString>{ModifiedType} Attribute={(clang::AttributedType::Kind)AttributedTypeBits.AttrKind}</DisplayString>
|
| 79 | </Type>
|
Mike Spertus | a814d3d | 2016-03-18 16:38:34 +0000 | [diff] [blame] | 80 |
|
| 81 | <!-- Unfortunately, Visual Studio has trouble seeing the PointerBitMask member PointerIntUnion, so I hardwire it to 2 bits-->
|
| 82 | <Type Name="clang::DeclContext">
|
| 83 | <DisplayString>{(clang::Decl::Kind)DeclKind,en}Decl</DisplayString>
|
| 84 | <Expand>
|
| 85 | <Item Name="DeclKind">(clang::Decl::Kind)DeclKind,en</Item>
|
Mike Spertus | 32e9a32 | 2016-03-22 02:29:22 +0000 | [diff] [blame] | 86 | <Synthetic Name="Members">
|
| 87 | <DisplayString></DisplayString>
|
| 88 | <Expand>
|
| 89 | <LinkedListItems>
|
| 90 | <HeadPointer>FirstDecl</HeadPointer>
|
| 91 | <NextPointer>(clang::Decl *)(NextInContextAndBits.Value & ~3)</NextPointer>
|
| 92 | <ValueNode>*this</ValueNode>
|
| 93 | </LinkedListItems>
|
| 94 | </Expand>
|
| 95 | </Synthetic>
|
Mike Spertus | a814d3d | 2016-03-18 16:38:34 +0000 | [diff] [blame] | 96 | </Expand>
|
| 97 | </Type>
|
| 98 | <Type Name="clang::FieldDecl">
|
Mike Spertus | 85a8abe | 2016-03-23 17:29:42 +0000 | [diff] [blame] | 99 | <DisplayString>Field {{{*(clang::DeclaratorDecl *)this,view(cpp)nd}}}</DisplayString>
|
Mike Spertus | a814d3d | 2016-03-18 16:38:34 +0000 | [diff] [blame] | 100 | </Type>
|
| 101 | <Type Name="clang::CXXMethodDecl">
|
Mike Spertus | 32e9a32 | 2016-03-22 02:29:22 +0000 | [diff] [blame] | 102 | <DisplayString IncludeView="cpp">{*(clang::FunctionDecl *)this,nd}</DisplayString>
|
| 103 | <DisplayString>Method {{{*this,view(cpp)}}}</DisplayString>
|
Mike Spertus | a814d3d | 2016-03-18 16:38:34 +0000 | [diff] [blame] | 104 | </Type>
|
| 105 | <Type Name="clang::CXXConstructorDecl">
|
Mike Spertus | 32e9a32 | 2016-03-22 02:29:22 +0000 | [diff] [blame] | 106 | <DisplayString>Constructor {{{Name,view(cpp)}({*(clang::FunctionDecl *)this,view(parm0)nd})}}</DisplayString>
|
Mike Spertus | a814d3d | 2016-03-18 16:38:34 +0000 | [diff] [blame] | 107 | </Type>
|
| 108 | <Type Name="clang::CXXDestructorDecl">
|
Mike Spertus | 32e9a32 | 2016-03-22 02:29:22 +0000 | [diff] [blame] | 109 | <DisplayString>Destructor {{~{Name,view(cpp)}()}}</DisplayString>
|
Mike Spertus | a814d3d | 2016-03-18 16:38:34 +0000 | [diff] [blame] | 110 | </Type>
|
Mike Spertus | 01b14bf | 2016-03-16 14:27:50 +0000 | [diff] [blame] | 111 | <Type Name="clang::NamedDecl" >
|
| 112 | <DisplayString IncludeView="cpp">{Name,view(cpp)}</DisplayString>
|
| 113 | <DisplayString>{Name}</DisplayString>
|
| 114 | </Type>
|
| 115 | <Type Name="clang::TagDecl">
|
Mike Spertus | 32e9a32 | 2016-03-22 02:29:22 +0000 | [diff] [blame] | 116 | <DisplayString IncludeView="implicit" Condition="Implicit">implicit{" ",sb}</DisplayString>
|
| 117 | <DisplayString IncludeView="implicit"></DisplayString>
|
| 118 | <DisplayString IncludeView="modifiers">{*this,view(implicit)}</DisplayString>
|
| 119 | <DisplayString IncludeView="cpp">{*this,view(modifiers)}{Name,view(cpp)}</DisplayString>
|
| 120 | <DisplayString Condition="TagDeclKind==clang::TagTypeKind::TTK_Struct">{*this,view(modifiers)}struct {Name,view(cpp)}</DisplayString>
|
| 121 | <DisplayString Condition="TagDeclKind==clang::TagTypeKind::TTK_Interface">{*this,view(modifiers)}interface {Name,view(cpp)}</DisplayString>
|
| 122 | <DisplayString Condition="TagDeclKind==clang::TagTypeKind::TTK_Union">{*this,view(modifiers)}union {Name,view(cpp)}</DisplayString>
|
| 123 | <DisplayString Condition="TagDeclKind==clang::TagTypeKind::TTK_Class">{*this,view(modifiers)}class {Name,view(cpp)}</DisplayString>
|
| 124 | <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] | 125 | <Expand>
|
| 126 | <ExpandedItem>(clang::DeclContext *)this</ExpandedItem>
|
| 127 | </Expand>
|
Mike Spertus | 01b14bf | 2016-03-16 14:27:50 +0000 | [diff] [blame] | 128 | </Type>
|
Mike Spertus | 288daa5 | 2016-03-08 16:14:23 +0000 | [diff] [blame] | 129 | <Type Name="clang::TagType">
|
Mike Spertus | 32e9a32 | 2016-03-22 02:29:22 +0000 | [diff] [blame] | 130 | <DisplayString IncludeView="cpp">{*decl,view(cpp)}</DisplayString>
|
Mike Spertus | 288daa5 | 2016-03-08 16:14:23 +0000 | [diff] [blame] | 131 | <DisplayString>{*decl}</DisplayString>
|
| 132 | <Expand>
|
Mike Spertus | 01b14bf | 2016-03-16 14:27:50 +0000 | [diff] [blame] | 133 | <ExpandedItem>*(clang::Type *)this, view(cmn)</ExpandedItem>
|
Mike Spertus | 288daa5 | 2016-03-08 16:14:23 +0000 | [diff] [blame] | 134 | <Item Name="decl">decl</Item>
|
| 135 | </Expand>
|
| 136 | </Type>
|
| 137 | <Type Name="clang::RecordType">
|
Mike Spertus | 32e9a32 | 2016-03-22 02:29:22 +0000 | [diff] [blame] | 138 | <DisplayString IncludeView="cpp">{*(clang::TagType *)this,view(cpp)}</DisplayString>
|
Mike Spertus | 01b14bf | 2016-03-16 14:27:50 +0000 | [diff] [blame] | 139 | <DisplayString>{*(clang::TagType *)this}</DisplayString>
|
Mike Spertus | 288daa5 | 2016-03-08 16:14:23 +0000 | [diff] [blame] | 140 | <Expand>
|
| 141 | <Item Name="TagType">*(clang::TagType *)this</Item>
|
| 142 | </Expand>
|
| 143 | </Type>
|
| 144 | <Type Name="clang::SubstTemplateTypeParmType">
|
Mike Spertus | 01b14bf | 2016-03-16 14:27:50 +0000 | [diff] [blame] | 145 | <DisplayString>{*Replaced,view(cpp)} <= {CanonicalType,view(cpp)}</DisplayString>
|
Mike Spertus | 288daa5 | 2016-03-08 16:14:23 +0000 | [diff] [blame] | 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="Replaced">*Replaced</Item>
|
| 149 | </Expand>
|
| 150 | </Type>
|
Mike Spertus | 7f2de8e | 2016-03-20 00:20:43 +0000 | [diff] [blame] | 151 | <!-- We only show the first 5 parameter types in the display string (can't figure out how to loop in DisplayString)
|
| 152 | but the expansion has all parameters -->
|
| 153 | <Type Name="clang::FunctionProtoType">
|
Mike Spertus | 6fa3e59 | 2016-03-20 20:15:23 +0000 | [diff] [blame] | 154 | <DisplayString IncludeView="retType">{ResultType,view(cpp)}</DisplayString>
|
Mike Spertus | 7f2de8e | 2016-03-20 00:20:43 +0000 | [diff] [blame] | 155 | <DisplayString IncludeView="parm0" Condition="NumParams==0"></DisplayString>
|
| 156 | <DisplayString IncludeView="parm0">{*(clang::QualType *)(this+1),view(cpp)}{*this,view(parm1)}</DisplayString>
|
| 157 | <DisplayString IncludeView="parm1" Condition="NumParams==1"></DisplayString>
|
| 158 | <DisplayString IncludeView="parm1">, {*((clang::QualType *)(this+1)+1),view(cpp)}{*this,view(parm2)}</DisplayString>
|
| 159 | <DisplayString IncludeView="parm2" Condition="NumParams==2"></DisplayString>
|
| 160 | <DisplayString IncludeView="parm2">, {*((clang::QualType *)(this+1)+2),view(cpp)}{*this,view(parm3)}</DisplayString>
|
| 161 | <DisplayString IncludeView="parm3" Condition="NumParams==3"></DisplayString>
|
| 162 | <DisplayString IncludeView="parm3">, {*((clang::QualType *)(this+1)+3),view(cpp)}{*this,view(parm4)}</DisplayString>
|
| 163 | <DisplayString IncludeView="parm4" Condition="NumParams==4"></DisplayString>
|
| 164 | <DisplayString IncludeView="parm4">, {*((clang::QualType *)(this+1)+4),view(cpp)}{*this,view(parm5)}</DisplayString>
|
| 165 | <DisplayString IncludeView="parm5" Condition="NumParams==5"></DisplayString>
|
| 166 | <DisplayString IncludeView="parm5">, /* expand for more params */</DisplayString>
|
Mike Spertus | 6fa3e59 | 2016-03-20 20:15:23 +0000 | [diff] [blame] | 167 | <DisplayString>{*this,view(retType)}({*this,view(parm0)})</DisplayString>
|
Mike Spertus | 7f2de8e | 2016-03-20 00:20:43 +0000 | [diff] [blame] | 168 | <Expand>
|
| 169 | <Item Name="ReturnType">ResultType</Item>
|
| 170 | <Synthetic Name="Parameter Types">
|
| 171 | <DisplayString>{*this,view(parm0)}</DisplayString>
|
| 172 | <Expand>
|
| 173 | <ArrayItems>
|
| 174 | <Size>NumParams</Size>
|
| 175 | <ValuePointer>(clang::QualType *)(this+1)</ValuePointer>
|
| 176 | </ArrayItems>
|
| 177 | </Expand>
|
| 178 | </Synthetic>
|
| 179 | <ExpandedItem>*(clang::Type *)this, view(cmn)</ExpandedItem>
|
| 180 | </Expand>
|
| 181 | </Type>
|
Mike Spertus | 288daa5 | 2016-03-08 16:14:23 +0000 | [diff] [blame] | 182 | <Type Name="clang::TemplateTypeParmType">
|
Mike Spertus | 01b14bf | 2016-03-16 14:27:50 +0000 | [diff] [blame] | 183 | <DisplayString>typename {*TTPDecl,view(cpp)}</DisplayString>
|
Aaron Ballman | 9d21454 | 2015-09-29 17:32:36 +0000 | [diff] [blame] | 184 | </Type>
|
| 185 | <Type Name="clang::QualType">
|
Mike Spertus | 8758c9d | 2016-03-24 00:38:54 +0000 | [diff] [blame] | 186 | <!-- When VS2013 support is deprecated, change 4 to clang::TypeAlignmentInBits (not properly recognized by VS2013) -->
|
| 187 | <DisplayString IncludeView="poly">{*((clang::ExtQualsTypeCommonBase *)(((uintptr_t)Value.Value) & ~(uintptr_t)((1 << 4) - 1)))->BaseType,view(poly)}{*this,view(fastQuals)}</DisplayString>
|
| 188 | <DisplayString IncludeView="cpp">{*((clang::ExtQualsTypeCommonBase *)(((uintptr_t)Value.Value) & ~(uintptr_t)((1 << 4) - 1)))->BaseType,view(cpp)}{*this,view(fastQuals)}</DisplayString>
|
| 189 | <!-- For the Fast Qualifiers, it is simpler (and probably more efficient) just to list all 8 cases than create
|
| 190 | views for each qualifier. TODO: Non-fast qualifiers -->
|
| 191 | <DisplayString IncludeView="fastQuals" Condition="(Value.Value & 15)==0"></DisplayString>
|
| 192 | <DisplayString IncludeView="fastQuals" Condition="(Value.Value & 15)==1">{" ",sb}const</DisplayString>
|
| 193 | <DisplayString IncludeView="fastQuals" Condition="(Value.Value & 15)==2">{" ",sb}restrict</DisplayString>
|
| 194 | <DisplayString IncludeView="fastQuals" Condition="(Value.Value & 15)==3">{" ",sb}const restrict</DisplayString>
|
| 195 | <DisplayString IncludeView="fastQuals" Condition="(Value.Value & 15)==4">{" ",sb}volatile</DisplayString>
|
| 196 | <DisplayString IncludeView="fastQuals" Condition="(Value.Value & 15)==5">{" ",sb}const volatile</DisplayString>
|
| 197 | <DisplayString IncludeView="fastQuals" Condition="(Value.Value & 15)==6">{" ",sb}volatile restrict</DisplayString>
|
| 198 | <DisplayString IncludeView="fastQuals" Condition="(Value.Value & 15)==7">{" ",sb}const volatile restrict</DisplayString>
|
| 199 | <DisplayString IncludeView="fastQuals">Cannot visualize non-fast qualifiers</DisplayString>
|
| 200 | <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] | 201 | <Expand>
|
Mike Spertus | 8758c9d | 2016-03-24 00:38:54 +0000 | [diff] [blame] | 202 | <Item Name="Fast Quals">*this,view(fastQuals)</Item>
|
Mike Spertus | 288daa5 | 2016-03-08 16:14:23 +0000 | [diff] [blame] | 203 | <Item Name="BaseType">*((clang::ExtQualsTypeCommonBase *)(((uintptr_t)Value.Value) & ~(uintptr_t)((1 << 4) - 1)))->BaseType</Item>
|
| 204 | </Expand>
|
| 205 | </Type>
|
| 206 | <Type Name="clang::TemplateArgumentLoc">
|
| 207 | <DisplayString>{Argument}</DisplayString>
|
| 208 | <Expand>
|
| 209 | <ExpandedItem>Argument</ExpandedItem>
|
| 210 | </Expand>
|
| 211 | </Type>
|
| 212 | <Type Name="clang::TemplateArgument">
|
| 213 | <DisplayString>{(clang::TemplateArgument::ArgKind)TypeOrValue.Kind,en} template parameter: {*(clang::QualType *)&TypeOrValue.V}</DisplayString>
|
| 214 | <Expand>
|
| 215 | <Item Name="QualType" Condition="Integer.Kind == clang::TemplateArgument::ArgKind::Type">*(clang::QualType *)&TypeOrValue.V</Item>
|
| 216 | <!-- TODO: Other kinds-->
|
| 217 | </Expand>
|
| 218 | </Type>
|
Mike Spertus | 1d051ee | 2016-03-20 00:32:30 +0000 | [diff] [blame] | 219 | <!-- 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] | 220 | <Type Name="clang::BuiltinType">
|
Mike Spertus | 1d051ee | 2016-03-20 00:32:30 +0000 | [diff] [blame] | 221 | <DisplayString Condition="BuiltinTypeBits.Kind==clang::BuiltinType::Void">void</DisplayString>
|
| 222 | <DisplayString Condition="BuiltinTypeBits.Kind==clang::BuiltinType::Bool">bool</DisplayString>
|
| 223 | <DisplayString Condition="BuiltinTypeBits.Kind==clang::BuiltinType::Char_U">char</DisplayString>
|
| 224 | <DisplayString Condition="BuiltinTypeBits.Kind==clang::BuiltinType::UChar">unsigned char</DisplayString>
|
| 225 | <DisplayString Condition="BuiltinTypeBits.Kind==clang::BuiltinType::WChar_U">wchar_t</DisplayString>
|
| 226 | <DisplayString Condition="BuiltinTypeBits.Kind==clang::BuiltinType::Char16">char16_t</DisplayString>
|
| 227 | <DisplayString Condition="BuiltinTypeBits.Kind==clang::BuiltinType::Char32">char32_t</DisplayString>
|
| 228 | <DisplayString Condition="BuiltinTypeBits.Kind==clang::BuiltinType::UShort">unsigned short</DisplayString>
|
| 229 | <DisplayString Condition="BuiltinTypeBits.Kind==clang::BuiltinType::UInt">unsigned int</DisplayString>
|
| 230 | <DisplayString Condition="BuiltinTypeBits.Kind==clang::BuiltinType::ULong">unsigned long</DisplayString>
|
| 231 | <DisplayString Condition="BuiltinTypeBits.Kind==clang::BuiltinType::ULongLong">unsigned long long</DisplayString>
|
| 232 | <DisplayString Condition="BuiltinTypeBits.Kind==clang::BuiltinType::UInt128">__uint128_t</DisplayString>
|
| 233 | <DisplayString Condition="BuiltinTypeBits.Kind==clang::BuiltinType::Char_S">char</DisplayString>
|
| 234 | <DisplayString Condition="BuiltinTypeBits.Kind==clang::BuiltinType::SChar">signed char</DisplayString>
|
| 235 | <DisplayString Condition="BuiltinTypeBits.Kind==clang::BuiltinType::WChar_S">wchar_t</DisplayString>
|
| 236 | <DisplayString Condition="BuiltinTypeBits.Kind==clang::BuiltinType::Short">short</DisplayString>
|
| 237 | <DisplayString Condition="BuiltinTypeBits.Kind==clang::BuiltinType::Int">int</DisplayString>
|
| 238 | <DisplayString Condition="BuiltinTypeBits.Kind==clang::BuiltinType::Long">long</DisplayString>
|
| 239 | <DisplayString Condition="BuiltinTypeBits.Kind==clang::BuiltinType::LongLong">long long</DisplayString>
|
| 240 | <DisplayString Condition="BuiltinTypeBits.Kind==clang::BuiltinType::Int128">__int128_t</DisplayString>
|
| 241 | <DisplayString Condition="BuiltinTypeBits.Kind==clang::BuiltinType::Half">__fp16</DisplayString>
|
| 242 | <DisplayString Condition="BuiltinTypeBits.Kind==clang::BuiltinType::Float">float</DisplayString>
|
| 243 | <DisplayString Condition="BuiltinTypeBits.Kind==clang::BuiltinType::Double">double</DisplayString>
|
| 244 | <DisplayString Condition="BuiltinTypeBits.Kind==clang::BuiltinType::LongDouble">long double</DisplayString>
|
| 245 | <DisplayString Condition="BuiltinTypeBits.Kind==clang::BuiltinType::NullPtr">nullptr_t</DisplayString>
|
Mike Spertus | 288daa5 | 2016-03-08 16:14:23 +0000 | [diff] [blame] | 246 | <DisplayString>{(clang::BuiltinType::Kind)BuiltinTypeBits.Kind, en}</DisplayString>
|
| 247 | <Expand>
|
| 248 | <Item Name="Kind">(clang::BuiltinType::Kind)BuiltinTypeBits.Kind</Item>
|
| 249 | </Expand>
|
| 250 | </Type>
|
Mike Spertus | 01b14bf | 2016-03-16 14:27:50 +0000 | [diff] [blame] | 251 |
|
Mike Spertus | 288daa5 | 2016-03-08 16:14:23 +0000 | [diff] [blame] | 252 | <Type Name="clang::TemplateSpecializationType">
|
| 253 | <DisplayString Condition="(Template.Storage.Val.Val.Value & 3) != 3 && (Template.Storage.Val.Val.Value & 2) != 2 && (Template.Storage.Val.Val.Value & 1) != 1">{(clang::TemplateDecl *)((Template.Storage.Val.Val.Value >> 2) << 2)}</DisplayString>
|
| 254 | <DisplayString>{Template.Storage}</DisplayString>
|
Aaron Ballman | 9d21454 | 2015-09-29 17:32:36 +0000 | [diff] [blame] | 255 | </Type>
|
Aaron Ballman | 83f197b | 2014-01-24 19:46:45 +0000 | [diff] [blame] | 256 | <Type Name="clang::IdentifierInfo">
|
Mike Spertus | 01b14bf | 2016-03-16 14:27:50 +0000 | [diff] [blame] | 257 | <DisplayString Condition="Entry != 0">{((llvm::StringMapEntry<clang::IdentifierInfo *>*)Entry)+1,sb}</DisplayString>
|
Aaron Ballman | 83f197b | 2014-01-24 19:46:45 +0000 | [diff] [blame] | 258 | <Expand>
|
| 259 | <Item Condition="Entry != 0" Name="[Identifier]">((llvm::StringMapEntry<clang::IdentifierInfo *>*)Entry)+1,s</Item>
|
| 260 | <Item Name="Token Kind">(clang::tok::TokenKind)TokenID</Item>
|
| 261 | </Expand>
|
| 262 | </Type>
|
| 263 | <Type Name="clang::DeclarationName">
|
Mike Spertus | 6fa3e59 | 2016-03-20 20:15:23 +0000 | [diff] [blame] | 264 | <DisplayString Condition="Ptr == 0" IncludeView="cpp"></DisplayString>
|
Aaron Ballman | 83f197b | 2014-01-24 19:46:45 +0000 | [diff] [blame] | 265 | <DisplayString Condition="Ptr == 0">Empty</DisplayString>
|
Mike Spertus | 01b14bf | 2016-03-16 14:27:50 +0000 | [diff] [blame] | 266 | <DisplayString Condition="(Ptr & PtrMask) == StoredIdentifier" IncludeView="cpp">{*(clang::IdentifierInfo *)(Ptr & ~PtrMask)}</DisplayString>
|
Zachary Turner | dfa871b | 2014-06-26 16:26:42 +0000 | [diff] [blame] | 267 | <DisplayString Condition="(Ptr & PtrMask) == StoredIdentifier">{{Identifier ({*(clang::IdentifierInfo *)(Ptr & ~PtrMask)})}}</DisplayString>
|
| 268 | <DisplayString Condition="(Ptr & PtrMask) == StoredObjCZeroArgSelector">{{ObjC Zero Arg Selector (*{(clang::IdentifierInfo *)(Ptr & ~PtrMask)})}}</DisplayString>
|
| 269 | <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] | 270 | <DisplayString Condition="(Ptr & PtrMask) == StoredDeclarationNameExtra"
|
| 271 | IncludeView="cpp">{*(clang::DeclarationNameExtra *)(Ptr & ~PtrMask),view(cpp)}</DisplayString>
|
| 272 | <DisplayString Condition="(Ptr & PtrMask) == StoredDeclarationNameExtra">{{Extra ({*(clang::DeclarationNameExtra *)(Ptr & ~PtrMask)})}}</DisplayString>
|
Aaron Ballman | 83f197b | 2014-01-24 19:46:45 +0000 | [diff] [blame] | 273 | <Expand>
|
Zachary Turner | dfa871b | 2014-06-26 16:26:42 +0000 | [diff] [blame] | 274 | <Item Condition="(Ptr & PtrMask) == StoredIdentifier" Name="[Identifier]">*(clang::IdentifierInfo *)(Ptr & ~PtrMask)</Item>
|
| 275 | <Item Condition="(Ptr & PtrMask) == StoredObjCZeroArgSelector" Name="[ObjC Zero Arg Selector]">*(clang::IdentifierInfo *)(Ptr & ~PtrMask)</Item>
|
| 276 | <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] | 277 | <Item Condition="(Ptr & PtrMask) == StoredDeclarationNameExtra" Name="[Extra]">(clang::DeclarationNameExtra *)(Ptr & ~PtrMask)</Item>
|
Mike Spertus | 288daa5 | 2016-03-08 16:14:23 +0000 | [diff] [blame] | 278 | </Expand>
|
| 279 | </Type>
|
Mike Spertus | 32e9a32 | 2016-03-22 02:29:22 +0000 | [diff] [blame] | 280 | <Type Name="clang::DeclarationNameExtra">
|
| 281 | <DisplayString IncludeView="cpp"
|
| 282 | Condition="ExtraKindOrNumArgs >= clang::DeclarationNameExtra::CXXConstructor
|
| 283 | && ExtraKindOrNumArgs <= clang::DeclarationNameExtra::CXXConversionFunction"
|
| 284 | >{((clang::CXXSpecialName *)this)->Type,view(cpp)}</DisplayString>
|
| 285 | <DisplayString>{(clang::DeclarationNameExtra::ExtraKind)ExtraKindOrNumArgs,en}{" ",sb}{*this,view(cpp)}</DisplayString>
|
| 286 | </Type>
|
Mike Spertus | 288daa5 | 2016-03-08 16:14:23 +0000 | [diff] [blame] | 287 | <Type Name="clang::Token">
|
| 288 | <DisplayString Condition="Kind != clang::tok::identifier">{(clang::tok::TokenKind)Kind,en}</DisplayString>
|
| 289 | <DisplayString Condition="Kind == clang::tok::identifier">{{Identifier ({*(clang::IdentifierInfo *)(PtrData)})}}</DisplayString>
|
| 290 | </Type>
|
| 291 | <Type Name="clang::DeclSpec">
|
| 292 | <DisplayString>[{(clang::DeclSpec::SCS)StorageClassSpec}], [{(clang::TypeSpecifierType)TypeSpecType}]</DisplayString>
|
Aaron Ballman | 83f197b | 2014-01-24 19:46:45 +0000 | [diff] [blame] | 293 | </Type>
|
| 294 | <Type Name="clang::PragmaHandler">
|
| 295 | <DisplayString>{Name,s}</DisplayString>
|
| 296 | </Type>
|
| 297 | <Type Name="clang::FileEntry">
|
| 298 | <DisplayString>{Name,s}</DisplayString>
|
| 299 | </Type>
|
| 300 | <Type Name="clang::DirectoryEntry">
|
| 301 | <DisplayString>{Name,s}</DisplayString>
|
| 302 | </Type>
|
Zachary Turner | dfa871b | 2014-06-26 16:26:42 +0000 | [diff] [blame] | 303 | <Type Name="clang::VarDecl::VarDeclBitfields">
|
| 304 | <Expand>
|
| 305 | <Item Name="StorageClass">(clang::StorageClass)SClass</Item>
|
| 306 | <Item Name="ThreadStorageClass">(clang::ThreadStorageClassSpecifier)TSCSpec</Item>
|
| 307 | <Item Name="InitStyle">(clang::VarDecl::InitializationStyle)InitStyle</Item>
|
| 308 | </Expand>
|
| 309 | </Type>
|
Mike Spertus | 6fa3e59 | 2016-03-20 20:15:23 +0000 | [diff] [blame] | 310 | <Type Name="clang::DeclaratorDecl">
|
| 311 | <DisplayString>{DeclType,view(cpp)} {Name,view(cpp)}</DisplayString>
|
| 312 | </Type>
|
Zachary Turner | dfa871b | 2014-06-26 16:26:42 +0000 | [diff] [blame] | 313 | <Type Name="clang::VarDecl">
|
Mike Spertus | 6fa3e59 | 2016-03-20 20:15:23 +0000 | [diff] [blame] | 314 | <DisplayString>{*(DeclaratorDecl*)this,nd}</DisplayString>
|
Zachary Turner | dfa871b | 2014-06-26 16:26:42 +0000 | [diff] [blame] | 315 | <Expand>
|
| 316 | <ExpandedItem>*(DeclaratorDecl*)this,nd</ExpandedItem>
|
| 317 | <Item Name="VarDeclBits">VarDeclBits</Item>
|
Mike Spertus | 6fa3e59 | 2016-03-20 20:15:23 +0000 | [diff] [blame] | 318 | </Expand>
|
| 319 | </Type>
|
| 320 | <Type Name="clang::ParmVarDecl">
|
| 321 | <DisplayString>{*(VarDecl*)this,nd}</DisplayString>
|
| 322 | <Expand>
|
Zachary Turner | dfa871b | 2014-06-26 16:26:42 +0000 | [diff] [blame] | 323 | <Item Name="ParmVarDeclBits">ParmVarDeclBits</Item>
|
Mike Spertus | 6fa3e59 | 2016-03-20 20:15:23 +0000 | [diff] [blame] | 324 | <ExpandedItem>*(VarDecl*)this,nd</ExpandedItem>
|
| 325 | </Expand>
|
| 326 | </Type>
|
| 327 | <Type Name="clang::FunctionDecl">
|
| 328 | <DisplayString IncludeView="retType">{*(clang::FunctionProtoType *)((clang::ExtQualsTypeCommonBase *)(((uintptr_t)DeclType.Value.Value) & ~15))->BaseType,view(retType)}</DisplayString>
|
| 329 | <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] | 330 | <DisplayString IncludeView="parm0">{*ParamInfo[0]}{*this,view(parm1)nd}</DisplayString>
|
Mike Spertus | 6fa3e59 | 2016-03-20 20:15:23 +0000 | [diff] [blame] | 331 | <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] | 332 | <DisplayString IncludeView="parm1">, {*ParamInfo[1]}{*this,view(parm2)nd}</DisplayString>
|
Mike Spertus | 6fa3e59 | 2016-03-20 20:15:23 +0000 | [diff] [blame] | 333 | <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] | 334 | <DisplayString IncludeView="parm2">, {*ParamInfo[2]}{*this,view(parm3)nd}</DisplayString>
|
Mike Spertus | 6fa3e59 | 2016-03-20 20:15:23 +0000 | [diff] [blame] | 335 | <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] | 336 | <DisplayString IncludeView="parm3">, {*ParamInfo[3]}{*this,view(parm4)nd}</DisplayString>
|
Mike Spertus | 6fa3e59 | 2016-03-20 20:15:23 +0000 | [diff] [blame] | 337 | <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] | 338 | <DisplayString IncludeView="parm4">, {*ParamInfo[4]}{*this,view(parm5)nd}</DisplayString>
|
Mike Spertus | 6fa3e59 | 2016-03-20 20:15:23 +0000 | [diff] [blame] | 339 | <DisplayString IncludeView="parm5" Condition="5 == ((clang::FunctionProtoType *)((clang::ExtQualsTypeCommonBase *)(((uintptr_t)DeclType.Value.Value) & ~15))->BaseType)->NumParams"></DisplayString>
|
| 340 | <DisplayString IncludeView="parm5">, /* expand for more params */</DisplayString>
|
Mike Spertus | 32e9a32 | 2016-03-22 02:29:22 +0000 | [diff] [blame] | 341 | <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] | 342 | <Expand>
|
Mike Spertus | 32e9a32 | 2016-03-22 02:29:22 +0000 | [diff] [blame] | 343 | <Item Name="ReturnType">*this,view(retType)nd</Item>
|
Mike Spertus | 6fa3e59 | 2016-03-20 20:15:23 +0000 | [diff] [blame] | 344 | <Synthetic Name="Parameter Types">
|
Mike Spertus | 32e9a32 | 2016-03-22 02:29:22 +0000 | [diff] [blame] | 345 | <DisplayString>{*this,view(parm0)nd}</DisplayString>
|
Mike Spertus | 6fa3e59 | 2016-03-20 20:15:23 +0000 | [diff] [blame] | 346 | <Expand>
|
| 347 | <ArrayItems>
|
| 348 | <Size>((clang::FunctionProtoType *)((clang::ExtQualsTypeCommonBase *)(((uintptr_t)DeclType.Value.Value) & ~15))->BaseType)->NumParams</Size>
|
| 349 | <ValuePointer>ParamInfo</ValuePointer>
|
| 350 | </ArrayItems>
|
| 351 | </Expand>
|
| 352 | </Synthetic>
|
| 353 | <ExpandedItem>*(clang::Type *)this, view(cmn)</ExpandedItem>
|
Zachary Turner | dfa871b | 2014-06-26 16:26:42 +0000 | [diff] [blame] | 354 | </Expand>
|
| 355 | </Type>
|
Mike Spertus | 288daa5 | 2016-03-08 16:14:23 +0000 | [diff] [blame] | 356 | <Type Name="clang::OpaquePtr<*>">
|
| 357 | <DisplayString>{($T1 *)Ptr</DisplayString>
|
| 358 | <Expand>
|
| 359 | <ExpandedItem>($T1 *)Ptr</ExpandedItem>
|
| 360 | </Expand>
|
| 361 | </Type>
|
Aaron Ballman | 83f197b | 2014-01-24 19:46:45 +0000 | [diff] [blame] | 362 | </AutoVisualizer>
|