<table><tr><td style="">volden added a comment.
</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/D7040" rel="noreferrer">View Revision</a></tr></table><br /><div><div><p>Some initial thoughts:</p>

<p>Unittests are needed. As a minimum testCompilerFilterstrategyUrlFromAction_data should be extended with something that tests this new action.</p>

<p>In the first part of the regex, why use (?:/|\\\\)cmake and not just do (?:)cmake</p>

<p>Did a quick test on the string: <br />
/home/mvo/projects/TestCmake/build> /usr/bin/cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DCMAKE_INSTALL_PREFIX=/usr/local -DCMAKE_BUILD_TYPE=Debug /home/mvo/projects/TestCmake</p>

<p>on regex101. The debugger there says  156 steps vs 146 steps to match to "cmake" for the two regexes respectively. Plus the latter is IMHO much nicer to read.</p>

<p>Again, thanks for looking into this.</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R33 KDevPlatform</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D7040" rel="noreferrer">https://phabricator.kde.org/D7040</a></div></div><br /><div><strong>To: </strong>akellermann, kfunk<br /><strong>Cc: </strong>volden, kdevelop-devel, geetamc, Pilzschaf, akshaydeo, surgenight, arrowdodger<br /></div>