diff options
| author | Mark Rowe <mrowe@bdash.net.nz> | 2025-05-09 16:16:33 -0700 |
|---|---|---|
| committer | Mason Reed <35282038+emesare@users.noreply.github.com> | 2025-05-09 20:57:33 -0400 |
| commit | 07d0e3f4c4ed089c266b5ccd6ced3f7b109ab2ea (patch) | |
| tree | d6372c7dba7a1a6b2ee27e2fec0b2380fb7f9b53 /python/component.py | |
| parent | 77171115175039b2aef96f754005fea13d2b4375 (diff) | |
[RTTI] Handle type names emitted by GCC with a leading `*`
GCC emits a leading `*` to indicate that the type info is internal and
its name can be compared via pointer equality. It is not part of the
type name. This was only being handled when followed with `N`, but it
can apply to any mangled name.
Additionally, this updates some `std::string::find(...) == 0` calls in
the adjacent code to use `std::string::rfind(..., 0) == 0` as that bails
out of the string comparison as soon as the prefix does not match,
rather than continuing to search the entire string.
Diffstat (limited to 'python/component.py')
0 files changed, 0 insertions, 0 deletions
