diff options
Diffstat (limited to 'clang/lib/Index/IndexBody.cpp')
| -rw-r--r-- | clang/lib/Index/IndexBody.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/clang/lib/Index/IndexBody.cpp b/clang/lib/Index/IndexBody.cpp index 01cf559d7057..e4944fd0fc3b 100644 --- a/clang/lib/Index/IndexBody.cpp +++ b/clang/lib/Index/IndexBody.cpp @@ -391,11 +391,13 @@ public: if (C->capturesThis() || C->capturesVLAType()) return true; + if (!base::TraverseStmt(Init)) + return false; + if (C->capturesVariable() && IndexCtx.shouldIndexFunctionLocalSymbols()) return IndexCtx.handleReference(C->getCapturedVar(), C->getLocation(), Parent, ParentDC, SymbolRoleSet()); - // FIXME: Lambda init-captures. return true; } |
