[PATCH] D18163: Add visualizers for more clang types. Create more C++-like visualizations for existing Clang types

Mike Spertus via cfe-commits cfe-commits at lists.llvm.org
Wed Mar 16 07:12:16 PDT 2016


mspertus added inline comments.

================
Comment at: clang.natvis:25
@@ +24,3 @@
+    <DisplayString Condition="TypeBits.TC==clang::Type::TypeClass::Builtin" IncludeView="poly">{*(clang::BuiltinType *)this}</DisplayString>
+    <DisplayString Condition="TypeBits.TC==clang::Type::TypeClass::Pointer" IncludeView="poly">{*(clang::PointerType *)this}</DisplayString>
+    <DisplayString Condition="TypeBits.TC==clang::Type::Attributed" IncludeView="poly">{*(clang::AttributedType *)this}</DisplayString>
----------------
aaron.ballman wrote:
> If we're handling pointers, perhaps we should also do references similarly? Also, perhaps functions as well (bonus points if you can suss out the function prototype and display it!)?
I've already written references and can slot into an updated diff. After that, I plan on adding members of classes, but I'd like to put that in a subsequent change. Function prototype display is also coming. Does that sound ok?

================
Comment at: clang.natvis:26
@@ +25,3 @@
+    <DisplayString Condition="TypeBits.TC==clang::Type::TypeClass::Pointer" IncludeView="poly">{*(clang::PointerType *)this}</DisplayString>
+    <DisplayString Condition="TypeBits.TC==clang::Type::TypeClass::LValueReference" IncludeView="poly">{*(clang::LValueReferenceType *)this}</DisplayString>
+    <DisplayString Condition="TypeBits.TC==clang::Type::TypeClass::RValueReference" IncludeView="poly">{*(clang::RValueReferenceType *)this}</DisplayString>
----------------
Fixed


http://reviews.llvm.org/D18163





More information about the cfe-commits mailing list