<table><tr><td style="">mwolff created this revision.<br />Restricted Application added a subscriber: kdevelop-devel.
</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/D9472" rel="noreferrer">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>This removes the /// and /* ... */ prefixes. Not only does this<br />
make the stuff way more readable, it also fixes our JSON tests...</p>

<p>Return proper non-C++ specific includes/defines for non-project files</p>

<p>When we query the includes/defines for a file outside of any project<br />
we always returned the C++ compiler includes/defines. This was because<br />
we never tried to guess the language type then, since we operated only<br />
on ProjectBaseItems pointers which are obviously nullptr for files<br />
outside of any project. Instead, operate on QString path<br />
representations like elsewhere in the IADM already. This allows us to<br />
guess the language type even for C, ObjC and Cuda files when they are<br />
not part of a project.</p>

<p>No unit test is added, but I found this while working on a separate<br />
feature that has a proper unit test attached.</p>

<p>Handle _Complex types</p>

<p>We just create a delayed type that holds the string representation.<br />
This is enough to get the type displayed in the tooltips and it also<br />
removes the pesky warnings from the command line about unhandled<br />
types.</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/D9472" rel="noreferrer">https://phabricator.kde.org/D9472</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>plugins/clang/duchain/builder.cpp<br />
plugins/clang/tests/files/purec.c<br />
plugins/custom-definesandincludes/compilerprovider/compilerprovider.cpp<br />
plugins/custom-definesandincludes/compilerprovider/compilerprovider.h<br />
plugins/custom-definesandincludes/compilerprovider/settingsmanager.cpp<br />
plugins/custom-definesandincludes/compilerprovider/settingsmanager.h<br />
plugins/custom-definesandincludes/definesandincludesmanager.cpp<br />
plugins/custom-definesandincludes/idefinesandincludesmanager.h</div></div></div><br /><div><strong>To: </strong>mwolff<br /><strong>Cc: </strong>kdevelop-devel<br /></div>