aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.cpp
diff options
context:
space:
mode:
authorPrajwal Nadig <pnadig@apple.com>2025-12-09 23:41:46 +0100
committerGitHub <noreply@github.com>2025-12-09 22:41:46 +0000
commit794218bc53a42bd87048317506e8794deb0dc8be (patch)
treef2fa28e41a2ee086e2db8e5a36fd7c943dafaa1a /lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.cpp
parent9e2b8b0254ccd26dc6f3c7abf053646429d9f15d (diff)
downloadllvm-794218bc53a42bd87048317506e8794deb0dc8be.zip
llvm-794218bc53a42bd87048317506e8794deb0dc8be.tar.gz
llvm-794218bc53a42bd87048317506e8794deb0dc8be.tar.bz2
[ExtractAPI] Format typedef params correctly (#171516)
Typically, pointer types are formatted in a way where the identifier comes right after the type definition without a space separating them, e.g. `int *foo`, where the type is `int *` and the identifier is `foo`. However, if a type alias to a pointer type is used, the emitted declaration fragments are incorrect due to the missing space between the type and identifier, like in the below example: ``` typedef int *T; // The declaration fragment contains `Tbar` instead of `T bar` void foo(T bar); ``` This patch checks if pointer types are aliased, and inserts the space correctly if so. rdar://132022003
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.cpp')
0 files changed, 0 insertions, 0 deletions