Reland "[lldb][TypeSystemClang] Use the CXXFunctionPointerSummaryProvider for member...
authorMichael Buch <michaelbuch12@gmail.com>
Tue, 7 Mar 2023 15:59:33 +0000 (15:59 +0000)
committerMichael Buch <michaelbuch12@gmail.com>
Tue, 7 Mar 2023 19:45:50 +0000 (19:45 +0000)
commit8200848c4125f2307abe38801ce9ca1288ea3081
tree9a15485a05b257c2f3f82e0ded73c0decb106ace
parentef7adbe2b7bcdb1fca88f77a7d4da2a8dea63699
Reland "[lldb][TypeSystemClang] Use the CXXFunctionPointerSummaryProvider for member-function pointers"

With this patch member-function pointers are formatted using
`CXXFunctionPointerSummaryProvider`.

This turns,
```
(lldb) v pointer_to_member_func
(void (Foo::*)()) ::pointer_to_member_func = 0x00000000000000000000000100003f94
```
into
```
(lldb) v pointer_to_member_func
(void (Foo::*)()) ::pointer_to_member_func = 0x00000000000000000000000100003f94 (a.out`Foo::member_func() at main.cpp:3)
```

Differential Revision: https://reviews.llvm.org/D145242
lldb/include/lldb/Symbol/CompilerType.h
lldb/include/lldb/Symbol/TypeSystem.h
lldb/source/Plugins/Language/CPlusPlus/CPlusPlusLanguage.cpp
lldb/source/Plugins/TypeSystem/Clang/TypeSystemClang.cpp
lldb/source/Plugins/TypeSystem/Clang/TypeSystemClang.h
lldb/source/Symbol/CompilerType.cpp
lldb/test/API/functionalities/data-formatter/data-formatter-cpp/TestDataFormatterCpp.py