33 lines · plain
1# XFAIL: target-windows2 3# Test that setting plugin.cplusplus.display.function-name-format4# to an empty string disables the "format by language" part of5# ${function.name-with-args}.6 7# RUN: split-file %s %t8# RUN: %clangxx_host -g -gdwarf %t/main.cpp -o %t.out9# RUN: %lldb -x -b -s %t/commands.input %t.out -o exit 2>&1 \10# RUN: | FileCheck %s11 12#--- main.cpp13namespace ns::ns2 {14void custom(int x) {}15void bar() { custom(5); }16}17 18int main(int argc, char const *argv[]) {19 ns::ns2::bar();20 return 0;21}22 23#--- commands.input24settings set plugin.cplusplus.display.function-name-format ""25settings set -f frame-format "custom-frame '${function.name-with-args}'\n"26break set -l 2 -f main.cpp27 28run29bt30 31# CHECK: custom-frame 'ns::ns2::custom(x=5)'32# CHECK: custom-frame 'ns::ns2::bar()'33