Use buddy as fallback for headers without explicitly pinned TU.

Review Request #122160 - Created Jan. 20, 2015 and submitted

Information
Milian Wolff
kdev-clang
6425ff8...
Reviewers
kdevelop
In such cases, it's worthwile to use the source buddy as best-guess as
it allows us to get rid of the parse run for the "header TU" which
gets thrown away later on anyways.

Performance wise, this patch improves the index run on a 48 file
project using STL: It goes from ~17s down to ~14s, just b/c we safe
a few needless clang runs on "header TUs".

REVIEW: 122160

  
Sergey Kalinichev
Milian Wolff
Olivier de Gaalon
Milian Wolff
Review request changed

Status: Closed (submitted)

Change Summary:

Submitted with commit 5b3106cd618d9d849787e7075c8142cfbca397a3 by Milian Wolff to branch master.
Loading...