[lldb][TypeSystemClang] Use the CXXFunctionPointerSummaryProvider for member-function...
authorMichael Buch <michaelbuch12@gmail.com>
Fri, 3 Mar 2023 14:18:21 +0000 (14:18 +0000)
committerMichael Buch <michaelbuch12@gmail.com>
Fri, 3 Mar 2023 17:44:36 +0000 (17:44 +0000)
commit6bd46e713c6d8deda7bdae8b1efadb99c88b4443
tree74483bc7ae220951a253f32690abfbbba28edaf3
parentb642fd5ee250247ccefb38099169b4ee8ac4112b
[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