llvm-project/lldb/unittests/Symbol
Pavel Labath 769b21eaf2 CompilerType: Add ability to retrieve an integral template argument
Summary:
Despite it's name, GetTemplateArgument was only really working for Type
template arguments. This adds the ability to retrieve integral arguments
as well (which I've needed for the std::bitset data formatter).

I've done this by splitting the function into three pieces. The idea is
that one first calls GetTemplateArgumentKind (first function) to
determine the what kind of a parameter this is. Based on that, one can
then use specialized functions to retrieve the correct value. Currently,
I only implement two of these: GetTypeTemplateArgument and
GetIntegralTemplateArgument.

Reviewers: jingham, clayborg

Subscribers: lldb-commits

Differential Revision: https://reviews.llvm.org/D39844

llvm-svn: 318040
2017-11-13 14:26:21 +00:00
..
Inputs Add debug_frame section support 2017-06-27 11:16:26 +00:00
CMakeLists.txt [unittests] Add a helper function for getting an input file 2017-06-29 13:02:11 +00:00
TestClangASTContext.cpp CompilerType: Add ability to retrieve an integral template argument 2017-11-13 14:26:21 +00:00
TestDWARFCallFrameInfo.cpp cmake + xcode: prevent gtests from using includes from project root 2017-10-03 21:20:18 +00:00
TestType.cpp Improve Type::GetTypeScopeAndBasenameHelper and add unit tests 2017-01-10 11:13:59 +00:00