mirror of https://github.com/microsoft/clang.git
Improved Visual Studio visualization of OpaquePtr
Create a special visualizer for OpaquePtr<QualType> because the standard visualizer doesn't work with OpaquePtr<QualType> due to QualType being heavily dependent on traits to be pointer-like. Also, created an identical visualizer for UnionOpaquePtr git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@272531 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
990335a912
commit
2b60a2c0ba
|
@ -485,12 +485,30 @@ For later versions of Visual Studio, no setup is required-->
|
|||
<ExpandedItem>*(clang::Type *)this, view(cmn)</ExpandedItem>
|
||||
</Expand>
|
||||
</Type>
|
||||
<Type Name="clang::OpaquePtr<clang::QualType>">
|
||||
<DisplayString>{*(clang::QualType *)this}</DisplayString>
|
||||
<Expand>
|
||||
<Item Name="Ptr">*(clang::QualType *)this</Item>
|
||||
</Expand>
|
||||
</Type>
|
||||
<Type Name="clang::UnionOpaquePtr<clang::QualType>">
|
||||
<DisplayString>{*(clang::QualType *)this}</DisplayString>
|
||||
<Expand>
|
||||
<Item Name="Ptr">*(clang::QualType *)this</Item>
|
||||
</Expand>
|
||||
</Type>
|
||||
<Type Name="clang::OpaquePtr<*>">
|
||||
<DisplayString>{($T1 *)Ptr}</DisplayString>
|
||||
<Expand>
|
||||
<ExpandedItem>($T1 *)Ptr</ExpandedItem>
|
||||
</Expand>
|
||||
</Type>
|
||||
<Type Name="clang::UnionOpaquePtr<*>">
|
||||
<DisplayString>{($T1 *)Ptr}</DisplayString>
|
||||
<Expand>
|
||||
<ExpandedItem>($T1 *)Ptr</ExpandedItem>
|
||||
</Expand>
|
||||
</Type>
|
||||
<Type Name="clang::TemplateParameterList">
|
||||
<DisplayString IncludeView="parm0" Condition="NumParams==0"></DisplayString>
|
||||
<DisplayString IncludeView="parm0">{*((NamedDecl **)(this+1))[0],view(cpp)}{*this,view(parm1)}</DisplayString>
|
||||
|
|
Loading…
Reference in New Issue