diff options
| author | Michael Buch <michaelbuch12@gmail.com> | 2025-11-21 10:31:35 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-11-21 19:31:35 +0900 |
| commit | bb1b82af395fe4a717c9b10948312e260b5ca666 (patch) | |
| tree | 8acd34395a355a475dfcaa178e6eeb4a9f55e691 /lldb/test/API/functionalities/scripted_process/TestStackCoreScriptedProcess.py | |
| parent | f2cb5d7a05bacb3e39df8dd355b2fbd16f96c856 (diff) | |
[clang][TypePrinter] Replace AppendScope with printNestedNameSpecifier (#168534)
In debug-info we soon have the need to print names using the full scope
of the entity (see discussion in
https://github.com/llvm/llvm-project/pull/159592). Particularly, when a
structure is scoped inside a function, we'd like to emit the name as
`func()::foo`. `CGDebugInfo` uses the `TypePrinter` to print type names
into debug-info. However, `TypePrinter` stops (and ignores)
`DeclContext`s that are functions. I.e., it would just print `foo`.
Ideally it would behave the same way `printNestedNameSpecifier` does.
The FIXME in
https://github.com/llvm/llvm-project/blob/47c1aa4cef638c97b74f3afb7bed60e92bba1f90/clang/lib/AST/TypePrinter.cpp#L1520-L1521
motivated this patch.
See https://github.com/llvm/llvm-project/pull/168533 for how this will
be used by `CGDebugInfo`. The plan is to introduce a new
`PrintingPolicy` that prints anonymous entities using their full scope
(including function/anonymous scopes) and the mangling number.
Diffstat (limited to 'lldb/test/API/functionalities/scripted_process/TestStackCoreScriptedProcess.py')
0 files changed, 0 insertions, 0 deletions
