Turns out, many people define structs named Point that do not share the same names that this formatter uses for fields; use the {} syntax to make it so that a failure to parse the summary doesn't cause the entire printout to fail

llvm-svn: 256042
This commit is contained in:
Enrico Granata 2015-12-18 22:04:47 +00:00
parent 1eaae4c3b1
commit 11799e1529
1 changed files with 1 additions and 1 deletions

View File

@ -415,7 +415,7 @@ LoadObjCFormatters(TypeCategoryImplSP objc_category_sp)
ConstString("Rect"),
objc_flags);
AddStringSummary(objc_category_sp,
"(v=${var.v}, h=${var.h})",
"{(v=${var.v}, h=${var.h})}",
ConstString("Point"),
objc_flags);
AddStringSummary(objc_category_sp,