[clangd] Dont index deeply nested symbols
authorKadir Cetinkaya <kadircet@google.com>
Thu, 22 Apr 2021 14:08:48 +0000 (16:08 +0200)
committerKadir Cetinkaya <kadircet@google.com>
Tue, 27 Apr 2021 10:34:56 +0000 (12:34 +0200)
commit4581bf31bb8333dc1372959f7d650ed940eab710
treeaf078420532855314a8fc8e4a75f406328796959
parent4b13b7581db59adbc0ee4bbf269f3eda96fc9bd7
[clangd] Dont index deeply nested symbols

This is fix for some timeouts and OOM problems faced while indexing an
auto-generated file with thousands of nested lambdas.

Differential Revision: https://reviews.llvm.org/D101066
clang-tools-extra/clangd/AST.cpp
clang-tools-extra/clangd/AST.h
clang-tools-extra/clangd/index/IndexAction.cpp
clang-tools-extra/clangd/unittests/ASTTests.cpp
clang-tools-extra/clangd/unittests/IndexActionTests.cpp