Michael Buch 18e447bb26
[lldb][PlatformDarwin][NFC] Factor sanitization of Python module names into helper function (#185627)
I'm planning on re-using this logic for another API. This patch creates
a `SanitizedScriptingModuleName` that encapsulates the logic that checks
whether a file name would fail to be loaded by a `ScriptInterpreter`. I
called it something more generic despite it being `Python` specific at
the moment, in case the FIXME is eventually going to be addressed.

We have existing unit-tests that check this logic, so I'm relying on
that test coverage to give us confidence that this still works as
expected.
2026-03-11 09:31:30 +00:00
..