Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't update mLastCursor for unexposed cursors (and other unknowns).
Otherwise the following example doesn't work: struct crap { ~crap() {} }; struct fisk { struct C { C(int) {} crap c; }; }; int main(int argc, char **argv) { fisk::C c = fisk::C(12); return 0; } struct crap { }; struct fisk { struct C { C(int) {} crap c; }; }; int main(int argc, char **argv) { fisk::C c = fisk::C(12); return 0; } If crap has a destructor we get an unexposed expr between the callexpr and the typeref and thus our callexpr constructor uglehack (see ClangIndexer::indexVisitor) falls apart.
- Loading branch information