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/unittests/ScriptInterpreter/Python | |
parent | 2159ed811f96cb1aefecf3369d80e69e06fd32a3 (diff) | |
download | llvm-d8ba6b4ab3eceb6bbcdf4371d4ffaab9d1a5cebe.zip llvm-d8ba6b4ab3eceb6bbcdf4371d4ffaab9d1a5cebe.tar.gz llvm-d8ba6b4ab3eceb6bbcdf4371d4ffaab9d1a5cebe.tar.bz2 |
[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/unittests/ScriptInterpreter/Python')
0 files changed, 0 insertions, 0 deletions