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

Sergey Kalinichev at
Sat Aug 16 10:17:21 UTC 2014

This is an automatically generated e-mail. To reply, visit:

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

Review request for KDevelop.


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 



Added an unit test for it.


Sergey Kalinichev

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the KDevelop-devel mailing list