]> granicus.if.org Git - clang/commitdiff
Added MSVC natvis visualizers for Type and QualType. These could probably be improved...
authorAaron Ballman <aaron@aaronballman.com>
Tue, 29 Sep 2015 17:32:36 +0000 (17:32 +0000)
committerAaron Ballman <aaron@aaronballman.com>
Tue, 29 Sep 2015 17:32:36 +0000 (17:32 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@248808 91177308-0d34-0410-b5e6-96231b3b80d8

utils/clang.natvis

index 5917f84db0e11e1255b83ffca95724dc6bc971bb..a0004e9b01638d06ba37419eaa8457d8d140c601 100644 (file)
@@ -6,6 +6,14 @@ Put this file into "%USERPROFILE%\Documents\Visual Studio 2012\Visualizers"
 or create a symbolic link so it updates automatically.\r
 -->\r
 <AutoVisualizer xmlns="http://schemas.microsoft.com/vstudio/debugger/natvis/2010">\r
+  <Type Name="clang::Type">\r
+    <DisplayString Condition="(clang::Type::TypeClass)TypeBits.TC == clang::Type::Builtin">Builtin Type={(clang::BuiltinType::Kind)BuiltinTypeBits.Kind}</DisplayString>\r
+    <DisplayString Condition="(clang::Type::TypeClass)TypeBits.TC == clang::Type::Attributed">Modified Type={((clang::AttributedType*)this)->ModifiedType} Attribute={(clang::AttributedType::Kind)AttributedTypeBits.AttrKind}</DisplayString>\r
+    <DisplayString>Type Class={(clang::Type::TypeClass)TypeBits.TC}</DisplayString>\r
+  </Type>\r
+  <Type Name="clang::QualType">\r
+    <DisplayString>{((clang::ExtQualsTypeCommonBase *)(((uintptr_t)Value.Value) &amp; ~(uintptr_t)((1 &lt;&lt; clang::TypeAlignmentInBits) - 1)))-&gt;BaseType}</DisplayString>\r
+  </Type>\r
   <Type Name="clang::IdentifierInfo">\r
     <DisplayString Condition="Entry != 0">({((llvm::StringMapEntry&lt;clang::IdentifierInfo *&gt;*)Entry)+1,s})</DisplayString>\r
     <Expand>\r