Files
clang-p2996/lldb/test/Shell/Settings/TestFrameFormatFunctionPrefix.test
Charles Zablit b8997c07d9 [Demangling] Refactor Demangler range tracking (#140762)
This PR is a subset of the commits made in
https://github.com/swiftlang/llvm-project/pull/10710.

The most notable change is the addition of `PrefixRange` and
`SuffixRange` which are a catch-all to track anything after or before a
function's demangled name. In the case of Swift, this allows to add
support for name highlighting without having to track the range of the
scope and specifiers of a function (this will come in another PR).
2025-05-28 13:53:02 +01:00

25 lines
567 B
Plaintext

# Check that we have an appropriate fallback for ${function.prefix} in languages that
# don't implement this frame format variable (in this case Objective-C).
#
# RUN: split-file %s %t
# RUN: %clang_host -g -gdwarf %t/main.m -o %t.objc.out
# RUN: %lldb -x -b -s %t/commands.input %t.objc.out -o exit 2>&1 \
# RUN: | FileCheck %s
#--- main.m
int func() {}
int bar() { func(); }
int main() { return bar(); }
#--- commands.input
settings set -f frame-format "custom-frame '${function.prefix}'\n"
break set -n bar
run
bt
# CHECK: bt
# CHECK-NOT: custom-frame