https://github.com/Michael137 created https://github.com/llvm/llvm-project/pull/125053
This is XFAILed for now until we find a good way to locate the DW_AT_object_pointer of function declarations (a possible solution being https://github.com/llvm/llvm-project/pull/124790). Made it a shell test because I couldn't find any SBAPIs that i could query to find the CV-qualifiers/etc. of member functions. >From 310d7d6362a2f36503a9d8f94713fdb16c3bf65c Mon Sep 17 00:00:00 2001 From: Michael Buch <michaelbuc...@gmail.com> Date: Thu, 30 Jan 2025 12:04:59 +0000 Subject: [PATCH] [lldb][test] Add test for detecting CV-quals of explicit object member functions This is XFAILed for now until we find a good way to locate the DW_AT_object_pointer of function declarations (a possible solution being https://github.com/llvm/llvm-project/pull/124790). --- .../DWARF/explicit-member-function-quals.cpp | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 lldb/test/Shell/SymbolFile/DWARF/explicit-member-function-quals.cpp diff --git a/lldb/test/Shell/SymbolFile/DWARF/explicit-member-function-quals.cpp b/lldb/test/Shell/SymbolFile/DWARF/explicit-member-function-quals.cpp new file mode 100644 index 00000000000000..8e742600dc10e9 --- /dev/null +++ b/lldb/test/Shell/SymbolFile/DWARF/explicit-member-function-quals.cpp @@ -0,0 +1,22 @@ +// XFAIL: * + +// Tests that we correctly deduce the CV-quals and storage +// class of explicit object member functions. +// +// RUN: %clangxx_host %s -g -std=c++23 -c -o %t +// RUN: %lldb %t -b -o "type lookup Foo" 2>&1 | FileCheck %s +// +// CHECK: (lldb) type lookup Foo +// CHECK-NEXT: struct Foo { +// CHECK-NEXT: void Method(Foo); +// CHECK-NEXT: void cMethod(Foo const&); +// CHECK-NEXT: void vMethod(Foo volatile&); +// CHECK-NEXT: void cvMethod(const Foo volatile&) const volatile; +// CHECK-NEXT: } + +struct Foo { + void Method(this Foo) {} + void cMethod(this Foo const&) {} + void vMethod(this Foo volatile&) {} + void cvMethod(this Foo const volatile&) {} +} f; _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits