labath added a comment. The patch makes sense to me, though I can't say I'm that familiar with this code.
The thing I'd really like to get rid of is the need to have `return request.GetNumberOfMatches();` everywhere, but that's a fight for another day.. ================ Comment at: include/lldb/Utility/CompletionRequest.h:88-93 + // Filter out duplicates. + if (m_match_set.find(completion) != m_match_set.end()) + return; + + m_matches->AppendString(completion); + m_match_set.insert(completion); ---------------- Slightly shorter and more efficient: `if (m_match_set.insert(completion).second) m_matches->AppendString(completion);` https://reviews.llvm.org/D49322 _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits