Review Request 119708: Try not to lose imports while reparsing.

Sergey Kalinichev kalinichev.so.0 at gmail.com
Sat Aug 16 10:17:21 UTC 2014


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/119708/
-----------------------------------------------------------

(Updated Aug. 16, 2014, 2:17 p.m.)


Review request for KDevelop.


Changes
-------

Implemented a much better approach.


Summary (updated)
-----------------

Try not to lose imports while reparsing.


Repository: kdev-clang


Description (updated)
-------

Here is what happens:
We are using CXTranslationUnit_PrecompiledPreamble flag, that makes clang internally use pch, but clang_getInclusions doesn't visit pch.

So let's try to extract this information manually


Diffs (updated)
-----

  duchain/clanghelpers.cpp 2c66421 
  duchain/clangindex.cpp bd6c678 
  tests/test_duchain.h 7844c17 
  tests/test_duchain.cpp 563de7a 

Diff: https://git.reviewboard.kde.org/r/119708/diff/


Testing
-------

Added an unit test for it.


Thanks,

Sergey Kalinichev

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kdevelop-devel/attachments/20140816/964d879e/attachment.html>


More information about the KDevelop-devel mailing list