<table><tr><td style="">gregormi created this revision.<br />Herald added a project: Kate.<br />Herald added a subscriber: kwrite-devel.<br />gregormi 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/D17432">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>I tried to run the current Cppcheck tool also on header files which<br />
resulted in some errors because Cppcheck thought it was a C file.</p>
<p>In the new version of the Cppcheck tool "Cppcheck (C++ only)" the<br />
parameter --language=c++ is set explicitly and header files are included<br />
in the file filter.</p>
<p>With this setting more results were generated, e.g. in katemainwindow.h<br />
several methods were marked as "not used", e.g. closeSplitView, which I<br />
removed with this commit. The code still compiles fine though I am not<br />
sure if the function is maybe supposed to be used from some external<br />
project.</p>
<p>I find the following strange: if Cppcheck is only run on cpp files, it<br />
still reports some issues in header files. But not as much as when I<br />
explicitly feed it with the header files.</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R40 Kate</div></div></div><br /><div><strong>BRANCH</strong><div><div>my_cppcheck2</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D17432">https://phabricator.kde.org/D17432</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>addons/project/CMakeLists.txt<br />
addons/project/tools/kateprojectcodeanalysisselector.cpp<br />
addons/project/tools/kateprojectcodeanalysistoolcppcheck.cpp<br />
addons/project/tools/kateprojectcodeanalysistoolcppcheck2.cpp<br />
addons/project/tools/kateprojectcodeanalysistoolcppcheck2.h<br />
kate/katemainwindow.h</div></div></div><br /><div><strong>To: </strong>gregormi<br /><strong>Cc: </strong>kwrite-devel, hase, michaelh, ngraham, demsking, cullmann, sars, dhaumann<br /></div>