Currently there's not really a good way to iterate over the language runtimes a
process has. This is sometimes desirable (as seen in my change to Thread).
Additionally, there's not really a good reason to iterate over every available
language, but rather only over languages for which we have a plugin loaded.
Details
Details
Diff Detail
Diff Detail
- Repository
- rLLDB LLDB
Event Timeline
source/Target/Thread.cpp | ||
---|---|---|
2216 | if for (LanguageRuntime *runtime : GetProcess()->GetLanguageRuntimes()) { fits on one line I would get rid of the temporary. |
source/Target/Process.cpp | ||
---|---|---|
1565 | Use auto * to make it clear that this is a pointer (or even LanguageRuntime *, as the type is not that long). Then drop std::move below, as it's useless for pointers. | |
source/Target/Thread.cpp | ||
2217–2218 | It looks like the code already makes sure null pointers don't make it into the list. We should make that a part of the contract and not check it twice. |
Use auto * to make it clear that this is a pointer (or even LanguageRuntime *, as the type is not that long). Then drop std::move below, as it's useless for pointers.