diff options
| author | Aleksandr Platonov <platonov.aleksandr@huawei.com> | 2020-09-29 19:54:33 +0300 |
|---|---|---|
| committer | Aleksandr Platonov <platonov.aleksandr@huawei.com> | 2020-09-29 19:54:55 +0300 |
| commit | d8ba6b4ab3eceb6bbcdf4371d4ffaab9d1a5cebe (patch) | |
| tree | dc0968b6ede3bf2680bd638c7e40af8d30f37389 /lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp | |
| parent | 2159ed811f96cb1aefecf3369d80e69e06fd32a3 (diff) | |
[clangd] findNearbyIdentifier(): guaranteed to give up after 2^N lines
As @kadircet mentions in D84912#2184144, `findNearbyIdentifier()` traverses the whole file if there is no identifier for the word.
This patch ensures give up after 2^N lines in any case.
Reviewed By: sammccall
Differential Revision: https://reviews.llvm.org/D87891
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp')
0 files changed, 0 insertions, 0 deletions
