forked from OSchip/llvm-project
Visual Studio visualizers associated with LookupResults
Visualizers for DeclAccessPair, UnresolvedSet, and LookupResult. For example, when combined with LLVM diff D21256 (currently in review), a Lookup set will show much more naturally in the Locals window something like Found: {public typename ...Ts} llvm-svn: 272448
This commit is contained in:
parent
5d321e63c0
commit
334aa07915
|
@ -481,4 +481,22 @@ For later versions of Visual Studio, no setup is required-->
|
|||
<Type Name="clang::Expr">
|
||||
<DisplayString>Expression of class {(clang::Stmt::StmtClass)StmtBits.sClass,en} and type {TR,view(cpp)}</DisplayString>
|
||||
</Type>
|
||||
<Type Name="clang::DeclAccessPair">
|
||||
<DisplayString IncludeView="access" Condition="(Ptr&Mask) == clang::AS_public">public</DisplayString>
|
||||
<DisplayString IncludeView="access" Condition="(Ptr&Mask) == clang::AS_protected">protected</DisplayString>
|
||||
<DisplayString IncludeView="access" Condition="(Ptr&Mask) == clang::AS_private">private</DisplayString>
|
||||
<DisplayString IncludeView="access" Condition="(Ptr&Mask) == clang::AS_none">b</DisplayString>
|
||||
<DisplayString IncludeView="decl">{*(clang::NamedDecl *)(Ptr&~Mask)}</DisplayString>
|
||||
<DisplayString>{*this,view(access)} {*this,view(decl)}</DisplayString>
|
||||
</Type>
|
||||
<Type Name="clang::UnresolvedSet<*>">
|
||||
<DisplayString>{Decls}</DisplayString>
|
||||
<Expand>
|
||||
<ExpandedItem>Decls</ExpandedItem>
|
||||
</Expand>
|
||||
</Type>
|
||||
<Type Name="clang::LookupResult">
|
||||
<DisplayString Condition="ResultKind == clang::LookupResult::Ambiguous">{Ambiguity,en}: {Decls}</DisplayString>
|
||||
<DisplayString>{ResultKind,en}: {Decls}</DisplayString>
|
||||
</Type>
|
||||
</AutoVisualizer>
|
||||
|
|
Loading…
Reference in New Issue