summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2016-08-19 02:07:51 +0000
committerChandler Carruth <chandlerc@gmail.com>2016-08-19 02:07:51 +0000
commite8529c28f1c109e0c5f7be3ff96b17248c69b9bb (patch)
treed5e054158235e407952a82c9283d3b1a97c770be /lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp
parent964cc53d9a7411bc2d7ecc2bf7958ac5c65da32e (diff)
downloadbcm5719-llvm-e8529c28f1c109e0c5f7be3ff96b17248c69b9bb.tar.gz
bcm5719-llvm-e8529c28f1c109e0c5f7be3ff96b17248c69b9bb.zip
[ADT] Add the worlds simplest STL extra. Or at least close to it.
This is a little class template that just builds an inheritance chain of empty classes. Despite how simple this is, it can be used to really nicely create ranked overload sets. I've added a unittest as much to document this as test it. You can pass an object of this type as an argument to a function overload set an it will call the first viable and enabled candidate at or below the rank of the object. I'm planning to use this in a subsequent commit to more clearly rank overload candidates used for SFINAE. All credit for this technique and both lines of code here to Richard Smith who was helping me rewrite the SFINAE check in question to much more effectively capture the intended set of checks. llvm-svn: 279197
Diffstat (limited to 'lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud