<table><tr><td style="">antonanikin requested changes to this revision.<br />antonanikin added a comment.<br />This revision now requires changes to proceed.
</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/D15797">View Revision</a></tr></table><br /><div><div><p>Hi, RenĂ©. Thanks for patch, but your new version also produce new problems :)</p>

<p>Steps to reproduce:</p>

<ol class="remarkup-list">
<li class="remarkup-list-item">Open some project, create empty <tt style="background: #ebebeb; font-size: 13px;">src/test.cpp</tt> source file, add it into <tt style="background: #ebebeb; font-size: 13px;">CMakeLists.txt</tt>.</li>
<li class="remarkup-list-item">Rebuild and start clazy check for <tt style="background: #ebebeb; font-size: 13px;">src</tt> directory - all works well</li>
<li class="remarkup-list-item">Move <tt style="background: #ebebeb; font-size: 13px;">test.cpp</tt> into project's root and create symlink <tt style="background: #ebebeb; font-size: 13px;">test.cpp -> src/test.cpp</tt></li>
<li class="remarkup-list-item">Run clazy again for <tt style="background: #ebebeb; font-size: 13px;">src</tt> directory - error happens.</li>
</ol>

<p>So if we really want handle all possible symlink-cases (like my test and your variants) we should perform additional actions when directory check selected. We should retrieve (recursive) all directory's child files (with using <tt style="background: #ebebeb; font-size: 13px;">KDevelop::ProjectModel</tt> for example) and use it's canonical paths to find correspondent <tt style="background: #ebebeb; font-size: 13px;">compile_commands.json</tt> elements.</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R32 KDevelop</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D15797">https://phabricator.kde.org/D15797</a></div></div><br /><div><strong>To: </strong>rjvbb, KDevelop, antonanikin<br /><strong>Cc: </strong>antonanikin, kdevelop-devel, glebaccon, antismap, iodelay, vbspam, geetamc, Pilzschaf, akshaydeo, surgenight, arrowd<br /></div>