This is fix for some timeouts and OOM problems faced while indexing an
auto-generated file with thousands of nested lambdas.
Details
Details
- Reviewers
sammccall - Commits
- rG4581bf31bb83: [clangd] Dont index deeply nested symbols
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
clang-tools-extra/clangd/index/IndexAction.cpp | ||
---|---|---|
143 | I'd consider pulling the logic out into isDeeplyNested(unsigned MaxDepth=10) in AST.h, to keep this readable & policy-oriented and as we may well want to apply this in other places where we use SymbolCollector (or other traversals) |
I'd consider pulling the logic out into isDeeplyNested(unsigned MaxDepth=10) in AST.h, to keep this readable & policy-oriented and as we may well want to apply this in other places where we use SymbolCollector (or other traversals)