As I was trying to understand what IRExecutionUnit::FindInSymbols was doing, I couldn't help myself but refactor the code a little bit:
- No else after return.
- Move the lambda out of the loop.
- Replace GetSize() == 0 with IsEmpty()
- Eliminate pitfall of not clearing the SymbolContextList by moving it into the lexical scope of the if-clause.
And probably some other small things that bothered me.
clang-tidy: error: 'lldb/Core/Debugger.h' file not found [clang-diagnostic-error]
not useful