llvm-project/lldb/source/DataFormatters
Enrico Granata de61cecd1c <rdar://problem/15530080>
Rework data formatters matching algorithm
What happens now is that, for each category, the FormatNavigator generates all possible matches, and checks them one by one
Since the possible matches do not actually depend on the category (whether a match is accepted or not does, but that check can be shifted at a more convenient time),
it is actually feasible to generate every possible match upfront and then let individual categories just scan through those

This commit changes things by introducing a notion of formatters match candidate, and shifting responsibility for generating all of them given a (ValueObject,DynamicValueType) pair
from the FormatNavigator back to the FormatManager
A list of these candidates is then passed down to each category for matching
Candidates also need to remember whether they were generated by stripping pointers, references, typedefs, since this is something that individual formatters can choose to reject
This check, however, is conveniently only done once a "textual" match has been found, so that the list of candidates is truly category-independent

While the performance benefit is small (mostly, due to caching), this is much cleaner from a design perspective

llvm-svn: 195395
2013-11-22 00:02:13 +00:00
..
CF.cpp Roll back the changes I made in r193907 which created a new Frame 2013-11-04 09:33:30 +00:00
CMakeLists.txt Fix CMake build by including ValueObjectPrinter.cpp in list of sources 2013-09-30 21:30:44 +00:00
CXXFormatterFunctions.cpp This patch does a couple of things. 2013-11-07 00:11:47 +00:00
Cocoa.cpp Huge change to clean up types. 2013-07-11 22:46:58 +00:00
DataVisualization.cpp <rdar://problem/11778815> 2013-10-08 19:03:22 +00:00
FormatCache.cpp This is the last piece of work for "formats in categories": we now cache formats as well as summaries and synthetics 2013-10-17 22:27:19 +00:00
FormatClasses.cpp <rdar://problem/15530080> 2013-11-22 00:02:13 +00:00
FormatManager.cpp <rdar://problem/15530080> 2013-11-22 00:02:13 +00:00
LibCxx.cpp This patch does a couple of things. 2013-11-07 00:11:47 +00:00
LibCxxList.cpp Huge change to clean up types. 2013-07-11 22:46:58 +00:00
LibCxxMap.cpp Huge change to clean up types. 2013-07-11 22:46:58 +00:00
LibCxxUnorderedMap.cpp <rdar://problem/14071463> 2013-09-12 00:48:47 +00:00
LibStdcpp.cpp This patch does a couple of things. 2013-11-07 00:11:47 +00:00
Makefile Only enable RTTI for cxa_demangle.cpp 2013-02-15 02:36:40 +00:00
NSArray.cpp Huge change to clean up types. 2013-07-11 22:46:58 +00:00
NSDictionary.cpp This patch does a couple of things. 2013-11-07 00:11:47 +00:00
NSSet.cpp <rdar://problem/15449837> 2013-11-21 01:08:05 +00:00
TypeCategory.cpp <rdar://problem/15530080> 2013-11-22 00:02:13 +00:00
TypeCategoryMap.cpp <rdar://problem/15530080> 2013-11-22 00:02:13 +00:00
TypeFormat.cpp Roll back the changes I made in r193907 which created a new Frame 2013-11-04 09:33:30 +00:00
TypeSummary.cpp Roll back the changes I made in r193907 which created a new Frame 2013-11-04 09:33:30 +00:00
TypeSynthetic.cpp Roll back the changes I made in r193907 which created a new Frame 2013-11-04 09:33:30 +00:00
ValueObjectPrinter.cpp Further fixes to the dynamic type system prompted by ObjCDataFormatterTestCase.test_nserror_with_dsym_and_run_command 2013-10-31 22:42:00 +00:00