diff options
author | Michael Buch <michaelbuch12@gmail.com> | 2025-05-31 09:05:53 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-05-31 09:05:53 +0100 |
commit | f669b9c3eca9438d33259aefb8156f977f1df382 (patch) | |
tree | ef406db7ce4ee4665c607d19d17a86ca2e2a106c /clang/lib/Basic/CodeGenOptions.cpp | |
parent | c0b25f4e74c5eeab38d24d3aca0ebddc0d4132f0 (diff) | |
download | llvm-f669b9c3eca9438d33259aefb8156f977f1df382.zip llvm-f669b9c3eca9438d33259aefb8156f977f1df382.tar.gz llvm-f669b9c3eca9438d33259aefb8156f977f1df382.tar.bz2 |
[lldb][test] Test all libcxxabi demangler test-cases against TrackingOutputBuffer (#137793)
To test the infrastructure added in
https://github.com/llvm/llvm-project/pull/131836 in would be nice to
confirm that we can reconstruct all kinds of demangled names. The
libcxxabi test-suite already has all those test-cases.
This patch copies those test-cases (taken from
`libcxxabi/test/test_demangle.pass.cpp`), reconstructs the name like
LLDB would when showing backtraces, and confirms that all demangled
names can be fully reconstructed.
Two open questions:
1. Do we really want a copy of all those test-cases in LLDB? It's
unlikely to be kept in sync with the demangler test-suite. It includes
30,000+ test-cases
2. Do we want to turn the
`GetDemangledBasename`/`GetDemangledScope`/etc. into public APIs (e.g.,
on `TrackingOutputBuffer`) so that we can use the exact same method of
extraction in the tests?
Diffstat (limited to 'clang/lib/Basic/CodeGenOptions.cpp')
0 files changed, 0 insertions, 0 deletions