<table><tr><td style="">michalsrb created this revision.<br />Herald added a project: KDevelop.<br />Herald added a subscriber: kdevelop-devel.<br />michalsrb 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/D14838">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>Explicitly typed declaration has the type writen as part of the declaration. The opposite, implicitly typed declaration, has the type deduced by the compiler.</p>
<p>E.g. in C++ variable declarations are explicitly typed unless the "auto" keyword is used.</p>
<p>The intended use is to display inline note with the deduced type next to all implicitly typed declarations.<br />
Another use, maybe a bit of a stretch; Suggestions on the right side of assignment to an explicitly typed declaration should take the declaration type into consideration, but assignments to implicitly typed declaration should ignore the currently deduced type, since it will change into whatever new type will be assigned into it.</p></div></div><br /><div><strong>TEST PLAN</strong><div><p>The plugins/clang/tests/files/variables.cpp was extended to test the basic C++ case.</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/D14838">https://phabricator.kde.org/D14838</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>kdevplatform/CMakeLists.txt<br />
kdevplatform/language/duchain/declaration.cpp<br />
kdevplatform/language/duchain/declaration.h<br />
kdevplatform/language/duchain/declarationdata.h<br />
kdevplatform/tests/json/jsondeclarationtests.h<br />
plugins/clang/duchain/builder.cpp<br />
plugins/clang/tests/files/variables.cpp</div></div></div><br /><div><strong>To: </strong>michalsrb<br /><strong>Cc: </strong>brauch, kdevelop-devel, antismap, iodelay, vbspam, geetamc, Pilzschaf, akshaydeo, surgenight, arrowd<br /></div>