hanchenye-llvm-project/lldb
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
..
docs Test commit. Capitalize 'os'. 2013-11-20 12:35:52 +00:00
examples Adjust PC after hitting breakpoint on remote target. 2013-10-18 10:04:33 +00:00
include <rdar://problem/15530080> 2013-11-22 00:02:13 +00:00
lib Update makefiles to build PlatformWindows 2013-10-15 13:52:20 +00:00
lldb.xcodeproj Start the correct host abstraction of process and thread. 2013-11-21 18:39:32 +00:00
lldb.xcworkspace Move the performance test cases into their own project. 2013-03-18 23:05:00 +00:00
resources Tweak exports list so lldb will still build correctly when 2013-11-21 22:23:46 +00:00
scripts Expose SBPlatform through the public API. 2013-11-20 21:07:01 +00:00
source <rdar://problem/15530080> 2013-11-22 00:02:13 +00:00
test Annotate test that fails on the FreeBSD buildbot 2013-11-21 14:23:15 +00:00
tools Exit if launch doesn't succeed. 2013-11-21 19:03:34 +00:00
utils LUI: Fix some issues causing crashes in the source view 2013-10-23 01:18:21 +00:00
www Tweak documentation for formats in categories 2013-10-08 21:07:22 +00:00
.arcconfig Adding .arcconfig file to LLDB to allow using Phabricator for reviews 2013-05-23 20:21:28 +00:00
.gitignore
CMakeLists.txt Remove the hardcoded declaration to the Python include path. Thanks to Kal Conley for the patch 2013-11-15 10:32:40 +00:00
INSTALL.txt Update INSTALL.txt to mention LLDB builds on Linux with GCC or Clang. 2013-02-21 22:37:18 +00:00
LICENSE.TXT
Makefile Respect SDKROOT in lldb Makefile 2013-09-18 16:32:28 +00:00