To stay fast, it avoids deserializing anything outside the current file, by
disabling the LoadExternal code completion option added in r3223771, when the
index is enabled.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
nice, LGTM.
By r322377, I think you mean r322371.
We also need to set CollectorOpts.IndexMainFiles to false in FileIndex.cpp::indexAST -- we don't need dynamic index to catch the symbols in current main file since sema does that for us now :)
Comment Actions
Done.
We also need to set CollectorOpts.IndexMainFiles to false in FileIndex.cpp::indexAST -- we don't need dynamic index to catch the symbols in current main file since sema does that for us now :)
This would fix the problem. But it will break index-based go-to-definition for modified files, so I'd rather leave this at least for now, and pursue deduplicating symbols instead.