aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.h
diff options
context:
space:
mode:
authorPavel Labath <pavel@labath.sk>2025-01-16 10:49:51 +0100
committerGitHub <noreply@github.com>2025-01-16 10:49:51 +0100
commit7e00e3ae6dd4ba215dad27d1729df533cbb37795 (patch)
tree5bd91fd52cf91272075512454cb32812914d3d3e /lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.h
parent0d6b4cb94f2c3610e0ed5da80f5afa84581f3ea6 (diff)
downloadllvm-7e00e3ae6dd4ba215dad27d1729df533cbb37795.zip
llvm-7e00e3ae6dd4ba215dad27d1729df533cbb37795.tar.gz
llvm-7e00e3ae6dd4ba215dad27d1729df533cbb37795.tar.bz2
[lldb] Fix lookup of types in anonymous namespaces with -gsimple-template-names (#123054)
Anonymous namespaces are supposed to be optional when looking up types. This was not working in combination with -gsimple-template-names, because the way it was constructing the complete (with template args) name scope (i.e., by generating thescope as a string and then reparsing it) did not preserve the information about the scope kinds. Essentially what the code wants here is to call `GetTypeLookupContext` (that's the function used to get the context in the "regular" code path), but to embelish each name with the template arguments (if they don't have them already). This PR implements exactly that by adding an argument to control which kind of names are we interested in. This should also make the lookup faster as it avoids parsing of the long string, but I haven't attempted to benchmark that. I believe this function can also be used in some other places where we're manually appending template names, but I'm leaving that for another patch.
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.h')
0 files changed, 0 insertions, 0 deletions