<table><tr><td style="">arrowd created this revision.<br />arrowd added a reviewer: KDevelop.<br />Restricted Application added a project: KDevelop.<br />Restricted Application added a subscriber: kdevelop-devel.<br />arrowd requested review of this revision.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D13613">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>This change fixes <tt style="background: #ebebeb; font-size: 13px;">test_problems</tt> test on FreeBSD. Without that <tt style="background: #ebebeb; font-size: 13px;">/usr/include</tt> isn't added to the default include paths and many system headers become missing.<br />
I do understand that this is probably wrong place to make such a change, but after some research it turns out that Clang devs didn't put the logic for properly setting<br />
default include paths into libclang. It is present in clang itself, but not libclang.</p>

<p>Relevant thread in another libclang consumer: <a href="https://github.com/Valloric/YouCompleteMe/issues/2330" class="remarkup-link" target="_blank" rel="noreferrer">https://github.com/Valloric/YouCompleteMe/issues/2330</a></p>

<p>So, what would be the proper fix for that?</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R32 KDevelop</div></div></div><br /><div><strong>BRANCH</strong><div><div>master</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D13613">https://phabricator.kde.org/D13613</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>plugins/clang/duchain/parsesession.cpp</div></div></div><br /><div><strong>To: </strong>arrowd, KDevelop<br /><strong>Cc: </strong>kdevelop-devel, antismap, iodelay, vbspam, njensen, geetamc, Pilzschaf, akshaydeo, surgenight, arrowd<br /></div>